Column to comma separated list
- Copy a column in Excel or Google Sheets and paste it here. Each cell becomes one item.
- 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.
- Copy it.
For SQL, code and search
| Settings | Result |
|---|---|
| Quotes: single, Wrap in: ( ) | ('apple', 'banana', 'cherry') for WHERE id IN (...) |
| Quotes: double, Wrap in: [ ] | ["apple", "banana", "cherry"] for JSON or Python |
| Separator: OR | apple OR banana OR cherry for search boxes |
| Items per line: 10 | Ten 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.