Free online text tool

Column to Comma

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.

Column to Comma Tool

0Character Count
0Character Count (without spaces)
0Word Count
0Sentence Count
0Paragraph Count
0Line Count

Column to Comma Example

Before
apple
banana
cherry
After
apple, banana, cherry

Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.

Suggest a New ToolProvide Feedback on This Tool

What does Column to Comma do?

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.

Column to comma examples

Each example shows the options used. The items are joined on one line.

SettingBeforeAfter
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

How to convert a column to commas

  1. 1
    Paste your column
    Paste your text into the first box, with one item on each line, or import a text file.
  2. 2
    Choose the options
    Pick the separator, add quotes if you need them and choose whether to skip empty lines.
  3. 3
    Read the result
    The comma separated list appears in the second box as you type.
  4. 4
    Copy it
    Click Copy and paste the list where you need it.

When to use a column to comma tool

Good for

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.

Check first

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.

Other tools

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.

Column to comma FAQ

What does the Column to Comma tool do?

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.

How do I convert a column to a 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.

Can I choose between a comma and a comma with a space?

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.

Can I put quotes around each item?

Yes. Use the Wrap each item in option to add single or double quotes. This is useful for lists in SQL, code and spreadsheets.

What happens to empty lines?

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.

Does it add a comma at the end?

No. Commas are only added between items, so the list does not end with a comma.

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

Use a comma to column tool. It does the opposite and puts each item of a comma separated list on its own line.

Is this tool free and is my text private?

Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.

Looking for more text tools?

Browse Modify Tools

Last updated: 27 October 2026