Comma Separator

Split comma-separated values into a clean list, one item per line. Remove duplicates, add quotes, or build an HTML list. No signup.

Remove Ads
Remove Ads

Share on Social Media:

A comma separator splits comma-separated values into a clean list, one item per line — free, with no account. Paste values separated by commas, semicolons, or any character you choose, and this tool puts each value on its own line, removes duplicates and empty items, and can wrap the result in quotes or turn it into an HTML list. One thing to know upfront: despite the name, this tool splits values apart rather than joining them together. It does not turn a list of lines into one comma-separated line.

On this page

  1. How to Split Comma-Separated Values Step by Step
  2. What a Comma-Separated List Is For
  3. Comma-Separated Versus a Plain List
  4. Who Uses a Comma Separator
  5. Pro Tips for Comma-Separated Lists
  6. Common Comma Separator Mistakes to Avoid
  7. Related Tools You May Need Next
  8. Frequently Asked Questions

How to Split Comma-Separated Values Step by Step

  1. Paste your values. Paste comma-separated values into the box above, for example apple,banana,cherry. The box also accepts values separated by another character, such as a semicolon.
  2. Set the Delimiter. Type the character your values are separated by into the Delimiter box — a comma for comma-separated values, or a semicolon for semicolon-separated values. If your items are already one per line, leave Delimiter blank: a blank delimiter splits on line breaks.
  3. Pick quotes and case if you need them. Choose None, Double, or Single quotes to wrap every item, and Original, Uppercase, or Lowercase to change the case of every item.
  4. Check the four cleanup boxes. Remove Line Breaks, Remove Double Spaces, Remove All Whitespace, and Remove Duplicates are all on by default. Uncheck Remove All Whitespace if your items contain spaces, such as New York — otherwise the spaces inside your items are deleted too.
  5. Click Generate List. The tool splits your values and shows the result below, one item per line.
  6. Copy or save it. Use Copy to Clipboard to copy the list, or Save as TXT to download it as a comma-separator.txt file.

What a Comma-Separated List Is For

A comma-separated list is a series of values joined by commas, such as red,green,blue. It is a compact way to write a list in one line, and it is the format spreadsheets, databases, code, and data files expect. The trouble starts when you need to read it, edit it, or use it somewhere that wants one item per line. Reading a long comma-separated string is hard, spotting a duplicate in it is harder, and pasting it into a form that expects separate lines does not work at all.

That is what this tool is for. It takes the comma-separated string apart and hands you back a clean list, one item per line, with duplicates and empty items removed. The same Delimiter box also handles values separated by other characters: paste a;b;c, set the delimiter to a semicolon, and you get the same clean list.

Two built-in options go further. The Quotes setting wraps every item in single or double quotes, which is what you need when pasting values into code or a database query. The List Prefix, List Suffix, Item Prefix, and Item Suffix boxes turn the list into an HTML list: set them to <ul>, </ul>, <li>, and </li> and the result is a ready-to-paste bulleted list for a web page.

OptionWhat it doesDefault
DelimiterThe character the input is split on. Blank splits on line breaks.Blank
List Prefix / SuffixText wrapped around the whole result, for example the opening and closing ul tags of an HTML listBlank
Item Prefix / SuffixText wrapped around each item, for example the li tags of an HTML listBlank
QuotesWraps every item in no quotes, double quotes, or single quotesNone
Text CaseKeeps the original case, or makes every item uppercase or lowercaseOriginal
Reverse listReverses the order of the itemsOff
Remove Line BreaksDeletes line breaks from the input before splittingOn
Remove Double SpacesCollapses runs of more than one spaceOn
Remove All WhitespaceDeletes every space, including spaces inside itemsOn
Remove DuplicatesRemoves repeated items. Matching is case-sensitive: Apple and apple count as different items.On

Worked example, checked on 2026-11-18 — paste apple,banana,Apple,banana,,cherry with the delimiter set to a comma and the default options. The result is four lines — apple, banana, Apple, cherry — one per line.

Three things happened. The second banana was removed as a duplicate, the empty item between the two commas was dropped, and Apple was kept, because duplicate matching is case-sensitive and Apple is not the same as apple.

Worked example — an HTML list. Paste red,green,blue with the delimiter set to a comma, List Prefix <ul>, List Suffix </ul>, Item Prefix <li>, and Item Suffix </li>. The result is <ul>, <li>red</li>, <li>green</li>, <li>blue</li>, </ul> — each on its own line.

Worked example — quotes and case. Paste Apple,BANANA,Cherry with the delimiter set to a comma, double quotes, and lowercase. The result is "apple", "banana", "cherry", one per line — ready to paste into code.

Comma-Separated Versus a Plain List

Comma-separated values and a plain list hold the same items in different shapes. One line of comma-separated values is compact and easy for software to read, but hard for a person to scan. A plain list, one item per line, is easy for a person to read, edit, and check, but takes more lines. Converting between the two is a matter of picking the shape that fits where the list is going next.

AspectComma-separatedPlain list
FormatValues joined by commas, on one lineOne item per line
Common inData files, code, spreadsheets, database queriesForms, documents, checklists, pasted input
CompactnessOne line, however many itemsOne line per item
Easy to readHard, once the line gets longEasy: each item stands alone
Easy to spot duplicatesHardEasy, especially after sorting
This tool producesNo — it takes comma-separated values inYes — a clean list is the output

Be clear about the direction before you start. This tool converts comma-separated values into a list. If you have a list of lines and need them joined into a single comma-separated line, this tool cannot do that: pasting a line-separated list with the delimiter set to a comma merges the lines instead of joining them (see the mistakes section below). For a line-separated list, leave the Delimiter box blank and the tool will split it on the line breaks.

Who Uses a Comma Separator

People preparing data. Someone with a comma-separated export from a spreadsheet or database splits it into a list to read it, check it, or paste it into a form that wants one value per line.

People writing code. A developer turns a comma-separated string into a list to check each value, or wraps every value in quotes for use in code or a database query.

People building web pages. Someone turns a comma-separated set of items into an HTML bulleted list with the <ul> and <li> prefix and suffix boxes, ready to paste into a page.

Anyone cleaning up a list. A person with a messy list of values uses the duplicate removal and whitespace cleanup to get a tidy list with no repeats and no empty items.

Pro Tips for Comma-Separated Lists

Leave the delimiter blank for a one-item-per-line list. A blank delimiter splits on line breaks, which is the correct setting when your items are already on separate lines.

Uncheck Remove All Whitespace for multi-word items. City names, full names, and phrases keep their spaces only when this box is off. With it on, New York becomes NewYork.

Use the quote setting for code and queries. Single or double quotes around every item saves adding them by hand, and the result pastes straight into code or a database query.

Build the HTML list in one step. Set the four prefix and suffix boxes to <ul>, </ul>, <li>, and </li> instead of adding the tags by hand afterwards.

Expect a tab at the start of each line after the first. The result puts a tab character before every item except the first. If you paste the result into code and the indentation looks wrong, that tab is the cause — delete the leading tabs or paste as plain text.

Reverse the list when the newest item comes first. If your values run newest-first and you need them oldest-first, tick Reverse list instead of reordering them by hand.

Clear the prefix and suffix boxes before a new list. The Delimiter and prefix/suffix boxes keep what you typed when you run the tool again, so clear them first if you do not want the same wrapping applied to your next list.

Common Comma Separator Mistakes to Avoid

Pasting a line-separated list with the delimiter set to a comma. Remove Line Breaks is on by default, so it deletes the line breaks first and the whole list collapses into a single item, for example applebananaApplebananacherry. Leave the Delimiter box blank for line-separated input.

Leaving Remove All Whitespace on for items with spaces. It deletes every space, including the ones inside items. New York,Los Angeles comes out as NewYork and LosAngeles. Uncheck it before converting lists of names, places, or phrases.

Expecting it to join lines into comma-separated values. This tool splits values apart; it does not join lines together. If you paste lines and set a comma delimiter expecting a comma-separated line back, you will get one merged item instead.

Assuming duplicates are matched without caring about case. Duplicate matching is case-sensitive, so Apple and apple are treated as two different items and both are kept. Normalise the case first with the Lowercase setting if you want case-insensitive duplicates removed.

Submitting an empty box. Submitting with nothing pasted reloads the blank form with no result and shows the message “The list field is required.” Paste your values first, then click Generate List.

Not checking the result. A wrong delimiter or a wrong checkbox gives a wrong list. Read the result before you copy it, especially the first line, which has no leading tab, and the lines after it, which do.

Related Tools You May Need Next

For working with lists, our Sort Text Lines sorts a list into order, Remove Duplicate Lines removes repeated lines, and Remove Empty Lines drops blank lines. Remove Line Breaks handles line breaks in a list, Whitespace Remover cleans up extra spaces, and Find and Replace Text edits text across a whole list at once. To check the text itself, use the Word Counter, Character Counter, Case Converter, and Keyword Density Checker.

Frequently Asked Questions

What does the Comma Separator do?

It splits delimiter-separated values into a clean list, one item per line. Paste values separated by commas, set the delimiter to a comma, and click Generate List.

How do I convert comma-separated values into a list?

Paste the values into the box, type a comma in the Delimiter box, and click Generate List. The result appears below, one item per line, with duplicates and empty items removed.

Can it turn a list of lines into comma-separated values?

No. This tool only splits values apart into a list; it does not join lines together with commas. Pasting a line-separated list with a comma delimiter merges the lines into one item instead.

What should I put in the Delimiter box?

The character your values are separated by: a comma for comma-separated values, or a semicolon for semicolon-separated values. If your items are already one per line, leave it blank and the tool splits on the line breaks.

My list is one item per line. What do I do?

Leave the Delimiter box blank. A blank delimiter splits the input on line breaks, so each line becomes one item in the result.

Why did “New York” become “NewYork”?

Remove All Whitespace is on by default and deletes every space, including spaces inside items. Uncheck it before converting lists of names, places, or phrases, and New York stays as New York.

Why did my whole list become a single item?

Remove Line Breaks is on by default and deletes line breaks before the tool splits the input. A line-separated list pasted with the delimiter set to a comma collapses into one item. Leave the Delimiter box blank for line-separated input.

Does it remove duplicates?

Yes, when Remove Duplicates is ticked, which it is by default. Matching is case-sensitive, so Apple and apple count as different items and both are kept.

Can I make an HTML bulleted list?

Yes. Set List Prefix to <ul>, List Suffix to </ul>, Item Prefix to <li>, and Item Suffix to </li>. Pasting red,green,blue then gives a ready-to-paste HTML list.

Can I save or copy the result?

Yes. Copy to Clipboard copies the result list, and Save as TXT downloads it as a comma-separator.txt file. No account or signup is needed for either.

Is the Comma Separator free?

Yes, it is free and needs no account. You can convert up to 50 lists a day as a guest, or 1,000 a day when signed in. Paste your values, set the delimiter, and click Generate List.