Free online text tool

Convert Text With Commas To Lines

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.

Convert Text with Commas to Lines Tool

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

Convert Text with Commas to Lines Example

Before
red, green, blue, yellow
After
red
green
blue
yellow

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

Suggest a New ToolProvide Feedback on This Tool

What does Convert Text With Commas To Lines do?

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.

Convert text with commas to lines examples

Each example shows the options used. The words themselves are not changed.

SettingBeforeAfter
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

How to convert text with commas to lines

  1. 1
    Add your text
    Type or paste text that has commas into the box, or import a text file.
  2. 2
    Choose the options
    Choose whether to trim spaces around each line and whether to remove empty lines.
  3. 3
    Click Convert Commas to Lines
    Every comma in the box becomes a line break at once. Use Undo if you change your mind.
  4. 4
    Copy it
    Click Copy and paste the lines where you need them.

When to convert commas to lines

Good for

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.

Check first

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.

Other tools

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.

Convert text with commas to lines FAQ

What does the Convert Text With Commas To Lines tool do?

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.

How do I convert text with commas to 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.

Are the spaces after the commas removed?

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.

What happens to empty lines?

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.

What if my text already has line breaks?

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.

Does it work with other separators such as semicolons?

No. Only commas are replaced. A semicolon or any other mark stays in the text.

Does it work on normal sentences?

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.

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: 28 October 2026