Convert Text With Commas To Lines replaces every comma in your text with a line break. Paste your text, choose the options and copy the result. It is free and runs in your browser.
red, green, blue, yellow
red green blue yellow
Bookmark: press Ctrl+D (Windows) or Cmd+D (Mac) to save this tool.
This tool replaces every comma in your text with a line break. A list that is written on one line, with commas between the items, becomes a list with one item on each line.
Spaces at the start and end of each line are removed and empty lines are taken out by default, and you can turn both off. Line breaks that are already in your text are kept, and the words themselves are not changed.
Use it to turn a list from an email, a CSV row or a form into lines that are easy to read, sort or paste into a spreadsheet.
Each example shows the options used. The words themselves are not changed.
| Setting | Before | After |
|---|---|---|
| Default options | apple, banana, cherry | apple banana cherry |
| A sentence | Hello, world. How are you, friend? | Hello world. How are you friend? |
| Trim spaces off | a, b | a b |
| Remove empty lines (default) | a,,b | a b |
| Keep empty lines | a,,b | a b |
| Text with line breaks | a,b c,d | a b c d |
Turning a comma separated list into one item per line, preparing a list to sort or count, pasting items into a spreadsheet column and reading a long list more easily.
Every comma is replaced, so a comma inside a sentence, a number such as 1,000 or a quoted CSV field is split too. Use Undo right after if the result is not what you wanted.
To keep the result in a second box, try Comma to Column. To join lines back into a comma separated list, try Column to Comma.
It replaces every comma in your text with a line break, so each part of the text goes on its own line. For example, red, green, blue becomes three lines.
Type or paste your text, choose the options and click Convert Commas to Lines. The new text replaces the text in the box. Click Copy to use it, or Undo to go back.
Yes, by default. Spaces at the start and end of each line are removed, so red, green gives red and green. Untick Trim spaces around each line to keep them.
By default empty lines are removed. This stops commas that sit next to each other, or at the end of a line, from making blank lines. It also removes blank lines that were already in your text. Untick Remove empty lines to keep them.
Existing line breaks are kept. Each comma adds one more line break, so a text with commas on several lines still ends up with one item on each line.
No. Only commas are replaced. A semicolon or any other mark stays in the text.
Yes. Every comma becomes a line break, even in a sentence, so a sentence such as Hello, world is split in two. The words themselves are not changed.
Yes. It is free, needs no account and runs in your browser, so your text is not uploaded to a server.
Last updated: 28 October 2026