Text/Clean

Add line breaks (split)

Splits lines at a delimiter, at sentence ends or at a fixed character width.

Example

  • Options used
  • Default options
Input
red, green, blue,yellow, purple
Output
red
green
blue
yellow
purple

Symbols in examples: ⇥ tab · · trailing space · ⍽ NBSP · □ full-width space · ◌ zero-width character

Open this operation in the tool

What it does

Spreads content crammed into one line across multiple lines. It is the opposite of Remove line breaks (join into one line).

Options

  • Delimiter: starts a new line wherever the given string appears. The default is a comma, and spaces at the start of each resulting line are removed. Enter \t to split on tabs. Turn on 'Keep the delimiter' to leave the delimiter at the end of the preceding line.
  • Sentence end: breaks the line when a period, question mark, exclamation mark or ellipsis is followed by a space. A dot with no space after it, as in 3.14, does not split. Japanese and Chinese 。!? split even without a following space.
  • Line width: wraps lines so none is longer than the given number of characters. Text with spaces is wrapped at word boundaries; text without spaces is cut by character count.

When to use it

Use it first when you want to spread comma-separated tags or email addresses one per line before applying Remove duplicate lines or Sort. It is also useful for splitting a long paragraph into sentences to build a translation table or a subtitle script.

Sentence detection is a simple punctuation-based rule, so it also splits after abbreviations like Dr. Kim. Skim the result once.