Split text

Cut a text into parts and put every part on its own line. Split on a delimiter, on sentences, on words or after a number of characters. Everything is done in your browser and nothing is uploaded.

Split on

How it works

  1. Paste your text

    Type or paste the text in the left box, or open a .txt file. No text to hand? Click Example.

  2. Instant result

    The result appears as you type. Change the options and see straight away what changes.

  3. Copy or download

    Copy the result with one click, save it as a file or use it as input for a next step.

Four ways to split

  • Separator: a comma, semicolon, pipe or any text, such as in apple, pear, banana, kiwi, mango.
  • Every N characters: pieces of a fixed length, for example for a limit of 160 characters.
  • Sentences: each sentence on its own line, such as The cat sat., The dog ran! and Why?.
  • Words: one word per line.

Example

apple, pear, banana, kiwi, mango split on a comma gives five lines. The note says how many parts there are.

Options

  • Remove spaces around each part (default on).
  • Leave out empty parts (default on), useful when a list ends with a trailing comma.

Uses

Turn a comma list into one item per line, then remove duplicates. Prepare a word list for counting or sorting, and a long text for a tool with a character limit. The opposite is join lines. To count the words afterwards, use the word counter.

Frequently asked questions

How do I split a comma-separated list?

Choose *Separator* and enter a comma. `apple, pear, banana` becomes three lines. Spaces around each part are trimmed by default.

Can I use a tab or a new line as delimiter?

Yes. Type `\t` for a tab and `\n` for a new line in the delimiter field.

How can I cut a text into pieces of 160 characters?

Choose *Every N characters* and enter 160. The text is cut after each 160th character, even in the middle of a word, so use [wrap text](/en/text/wrap-text) if you want to cut between words.

How are sentences found?

A sentence ends at a full stop, exclamation mark, question mark or ellipsis, and the mark stays with the sentence. Abbreviations with a full stop can make the tool cut too early.