Text Tool

Comma to Lines

Comma to Lines helps clean or transform pasted text quickly in the browser. Use it online on EasyTools99.

Tool area

Everything runs in the browser.

Reference results

InputResult
York, Bath, BristolYork Bath Bristol
rent, lighting, gas rent lighting gas
paper,,ink,paper ink
room A;room B, foyerroom A;room B foyer
York,York,BathYork York Bath
"Portland, Maine", Boston"Portland Maine" Boston

How it works

Each comma splits the input. The tool trims each item, drops empty items and outputs one value per line in the original order. Semicolons stay in the text, so check the source delimiter first.

Using the result

Before importing a list, check the source fields for punctuation that belongs inside a value. A place name such as Portland, Maine is split even if wrapped in quotes. If the empty positions or quoted fields carry meaning, read the file with a CSV parser and review the imported columns.

Worked examples

  1. Paste product codes into a spreadsheet column. A stock clerk puts one code per cell and compares the row count with the order.
  2. Prepare a filter from a loosely formatted list of labels. An operator spots a repeated label and decides whether to merge it before applying a filter.
  3. Put each city in a short list on its own line. An editor checks that each row contains one city before pasting the list into a spreadsheet.

Common mistakes

  • Quotes offer no protection for embedded commas.
  • Use a CSV parser for quoted fields.
  • Duplicate entries remain in the output.
  • Avoid using the row count to reconstruct the positions of empty fields.

FAQ

How do I turn a comma-separated list into lines?

Paste the list. Each nonempty item becomes a separate line.

Are duplicate entries removed?

Duplicates stay. Only items that are empty after trimming are discarded.

Does it split on semicolons?

It splits on commas. Semicolons remain inside the item.

Related tools

Browse all text tools

Related guides

Next tool CSV to Lines