ToolLineup

Single Line to Multiline Converter

This tool splits a single run-together line into one item per line, breaking on whatever delimiter the text actually uses. That is the inverse of building a delimited list, and it is what you need when someone sends you a comma-separated blob that has to become a column in a spreadsheet, or when a log line packs several values into one field. Regular expressions are available for the common case where the delimiter is inconsistent — a mixture of commas and semicolons with unpredictable spacing around them. Keeping the delimiter attached to each piece matters when splitting sentences or statements, where the punctuation is part of the item.

How it works

Splits a run-together line into one item per line. Use \t for a tab, or turn on regular expressions to split on a pattern such as \s*[;,]\s* when the delimiter is inconsistent.

Keeping the separator attaches it to the end of each piece, which matters when you are splitting sentences or statements and need the punctuation to stay.

Everything runs in your browser — nothing you paste is sent to a server.

Single line or block
Paste or type your text here…
One item per line

0 items.

When the delimiter is not consistent

Real data rarely uses one delimiter cleanly. A list assembled by hand over time might read:

alpha, beta;gamma , delta;  epsilon

Splitting on a plain comma leaves the semicolons embedded and the spacing ragged. Turn on regular expressions and use \s*[;,]\s* — split on either delimiter, absorbing any whitespace around it — and every item comes out clean.

Keeping the delimiter

Splitting prose into sentences is the clearest case. Split on \.\s+ and every full stop is thrown away; keep the separator and each sentence retains its punctuation.

Common use cases

  • Turning a comma-separated blob into a spreadsheet column.
  • Breaking a packed log field into readable parts.
  • Splitting a query string or a path into its segments.

Frequently asked questions

How do I split a line into multiple lines?

Paste the line into the left panel and set the delimiter. Each piece appears on its own line in the result.

Can I split on a tab?

Yes. Type \t as the delimiter. \n also works if you need to split on existing newlines.

What if the delimiter is inconsistent?

Turn on regular expressions and use a pattern such as \s*[;,]\s* which handles commas and semicolons with any amount of surrounding whitespace.

Why would I keep the separator?

When splitting sentences or statements, the punctuation belongs to the item before it. Keeping it attaches the delimiter to the end of each piece rather than discarding it.

Are empty pieces removed?

Yes by default, which handles doubled delimiters and a trailing one. Untick the option if the empty positions are meaningful.

Is my text uploaded?

No. Splitting happens entirely in your browser.

Related tools