Split Text into Lines
Splits text into separate lines at commas, other separators, spaces or the end of each sentence. Use it to turn a comma-separated list into one item per line, or to break a paragraph into sentences so they are easier to read and edit.
How to use the Split Text into Lines
- Paste delimited text, such as a comma-separated list.
- Choose where to split: The separator below (a comma by default), Any spaces, tabs or line breaks, or The end of each sentence.
- Spaces around items are trimmed and empty items are skipped by default.
Rules applied
- The separator is matched exactly as typed; it is not a pattern. Use
\tfor a tab. - To join lines back together, use Join Lines.
Limitations
- Sentence splitting uses your browser’s built-in rules for English plus a list of common titles (Dr., Mr.); less common abbreviations may still end a sentence.
- Quoted values containing the separator (as in CSV files) are split too.
Worked examples
Input
apple, banana,cherry ,, date
Result
apple banana cherry date
Input
First sentence. Second one? Third!
Result
First sentence. Second one? Third!
Practical uses
-
Turning a comma-separated list into rows
An office administrator receives a list of names in one long comma-separated line. They choose to split at the separator, which is a comma by default, and the spaces around each name are trimmed. The result is one name per line, ready to paste into a spreadsheet column.
-
Putting each sentence on its own line
An editor reviewing a long paragraph chooses to split at the end of each sentence. Each sentence appears on its own line. Reading and commenting on one sentence at a time is easier, though an unusual abbreviation may occasionally split a sentence too early.
Related tools
Privacy: this tool runs entirely in your browser. Your text is not uploaded, logged or saved, and it is never sent to analytics. Maximum input: 1 MiB.