Comma Separated List to Column

Split comma, semicolon, pipe or tab delimited text into one item per line; the separator is detected automatically.

0 characters

Or drop a .txt file onto the box above.

0 items
Split on

Clean up
Transform

How to use

  1. Paste the list. Comma, semicolon, pipe, tab and new-line separated text is detected automatically; the note under the Separator menu says which one was found.
  2. If detection picked the wrong one, choose the separator yourself, or Custom… for anything else, such as -- or :: .
  3. Leave Remove surrounding quotes on to strip '…', "…" and `…` from each item; tick Remove duplicates or pick a Sort if you need them.
  4. Copy to clipboard, Download .txt, or Join into a list → to send the column to the reverse tool.

When you need a column instead of a list

Data tends to travel as a single line: a comma separated field in a CRM export, a JSON array in an API response, a semicolon separated recipient list in an email header. But spreadsheets, form fields and many scripts want each value on its own row. This tool makes that switch without opening a text editor and doing a find-and-replace, and it strips the brackets and quotes that a JSON array, Python list or SQL IN (…) clause wraps around the values.

Paste into a spreadsheet column

Convert the list, copy the result, click a cell in Excel or Google Sheets and paste. Because each item is on its own line, the spreadsheet fills one cell per row automatically.

Read an ID list out of a query

Copy the contents of an IN (…) clause, paste it here, and the parentheses and quotes are stripped so you are left with the raw IDs, ready for a lookup or a VLOOKUP.

Count and de-duplicate

The item counter shows how many values you actually have. Tick Remove duplicates and the counter shows how many were dropped (a quick sanity check on messy exports). For a column that is already one-per-line, the dedicated Remove Duplicate Lines tool adds case-insensitive matching and keep-last.

Example

A JSON array pasted whole:

["red", "orange", "yellow", "green"]

comes out as one bare value per line. The brackets and quotes are removed and the comma is detected as the separator:

red
orange
yellow
green

Options explained

Edge cases and common errors

Do the same job in a spreadsheet or in code

Excel and Google Sheets

Both applications can split text to columns from the Data menu. To split into rows instead, use a formula:

=TRANSPOSE(SPLIT(A1, ","))          Google Sheets
=TEXTSPLIT(A1, , ",")               Excel 365

Python

items = [s.strip().strip('"\'') for s in text.split(",") if s.strip()]
print("\n".join(items))

Command line

tr ',' '\n' < list.txt                   # Linux / macOS
(Get-Content list.txt) -split ','       # PowerShell

Comma Separated List to Column FAQ

How does automatic separator detection work?

The tool counts how often each common separator (comma, semicolon, pipe, tab, new line) appears in your text and splits on the most frequent one. If none appear it falls back to splitting on spaces. You can always override it from the Separator menu.

My values contain commas inside quotes. Will they be split incorrectly?

Yes. This tool performs a simple split and does not parse quoted CSV fields, so a value like "Smith, John" is broken into two items. For that kind of data, choose a separator that does not appear inside the values, or export tab-separated from the spreadsheet first.

Can I paste a JSON array, a Python list or a SQL IN list directly?

Yes. Surrounding square brackets, parentheses or braces are removed automatically, and the “Remove surrounding quotes” option strips the quote marks from each element and undoes escaped quotes inside it, so ('O''Brien', 'Smith') gives O'Brien and Smith. A comma delimited line copied from a CSV file works the same way, as long as no value contains a comma.

Is anything stored or sent to a server?

No. The page is static and the conversion runs in your browser. Your data never leaves your device.

Runs entirely in your browser: this page is a static file with no server behind it, so nothing you paste can be uploaded. Last reviewed by Parthesh Gupta.