Column to Comma turns a column of text, one item per line, into a comma separated list. Paste your column, choose the options and copy the result. It is free and runs in your browser.
apple banana cherry
apple, banana, cherry
Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.
This tool turns a column of text into a comma separated list. Each line of your text becomes one item, and the items are joined with commas on a single line.
You can choose a plain comma or a comma with a space, and you can put single or double quotes around each item. Empty lines are skipped by default, and spaces at the start and end of each item are removed.
Use it to turn a list from a spreadsheet column into a list for code, SQL, a form or an email.
Each example shows the options used. The items are joined on one line.
| Setting | Before | After |
|---|---|---|
| Comma and space | apple banana cherry | apple, banana, cherry |
| Comma only | apple banana cherry | apple,banana,cherry |
| Comma only, single quotes | red green blue | 'red','green','blue' |
| Comma and space, double quotes | a b c | "a", "b", "c" |
| Skip empty lines (default) | 1 2 | 1, 2 |
| Keep empty lines | 1 2 | 1, , 2 |
Turning a spreadsheet column into a list, building an IN list for SQL, making an array for code and putting a list of names or emails on one line.
Each line becomes one item, so an item that contains a comma is not escaped. Spaces at the start and end of each item are removed. Check the result before you use it in code.
To turn a comma separated list back into a column, try Comma to Column. To add a comma to the end of every line, try Add Comma to End of Every Line.
It turns a column of text, with one item on each line, into one line of items separated by commas. For example, three lines of words become a single comma separated list.
Paste your column into the first box, with one item on each line. The comma separated list appears in the second box at once. Click Copy to copy it.
Yes. Use the Separator option to choose a comma with a space after it, such as apple, banana, or a plain comma, such as apple,banana.
Yes. Use the Wrap each item in option to add single or double quotes. This is useful for lists in SQL, code and spreadsheets.
By default empty lines are skipped, so you do not get extra commas. Untick Skip empty lines if you want them kept as empty items.
No. Commas are only added between items, so the list does not end with a comma.
Use a comma to column tool. It does the opposite and puts each item of a comma separated list on its own line.
Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.
Last updated: 27 October 2026