Home / Comma separator

Comma separator

Paste a column from Excel or a list, one item per line, and get a comma separated list. Add quotes for SQL, or go the other way: comma list to column.
Your lists never leave your device: everything runs in this page. No upload, no sign-up.

Your column or list

Empty

Result

Column to comma separated list

  1. Copy a column in Excel or Google Sheets and paste it here. Each cell becomes one item.
  2. The comma separated list appears on the right. Pick another separator if you need one: comma without a space, semicolon, | bar, tab, space, OR, or your own.
  3. Copy it.

For SQL, code and search

SettingsResult
Quotes: single, Wrap in: ( )('apple', 'banana', 'cherry') for WHERE id IN (...)
Quotes: double, Wrap in: [ ]["apple", "banana", "cherry"] for JSON or Python
Separator: ORapple OR banana OR cherry for search boxes
Items per line: 10Ten items per line, for long lists that must stay readable

Quotes inside an item are doubled (O'Brien becomes 'O''Brien'), which is how SQL expects them.

Comma separated list to column

Choose Comma list to column and paste a list like apple, banana, cherry. Each item goes on its own line, ready to paste into a spreadsheet column. Auto detects commas, semicolons, tabs and | bars, and quotes around items are removed. Commas inside quotes ("Smith, John", "Lee, Ann") stay inside the item.

Related tools

Questions

How do I convert a column to a comma separated list?

Paste the column here. The list with commas appears on the right; copy it.

How do I add quotes around each item?

Choose Quotes: single or double. For an SQL IN clause also choose Wrap in ( ).

How do I turn a comma separated list into a column?

Choose Comma list to column, paste the list and copy the result into a spreadsheet.

Can I remove duplicates at the same time?

Yes, switch on Remove duplicates.