OnlineNotes Logo

    Text Splitter

    Paste text and choose where to cut it: at a separator, every N characters, at sentences or at words. Each piece goes on its own line.

    Options

    About this tool

    Data often arrives in one long line: a comma list from an email, tags from a form, values from a CSV cell. A text splitter puts each item on its own line, so you can sort it, remove duplicates or paste it into a spreadsheet column. The separator can be any text, such as a comma, a semicolon, a pipe or a word. Type \t for a tab.

    Splitting every N characters is useful when a system has a length limit, such as a text message, a database field or a post. The tool counts characters the way people see them, so an emoji with a skin tone or a flag counts as one character and is never cut in half. Sentence mode uses the same rules as the sentence counter on this site: it skips common abbreviations such as Dr. and e.g.

    How it works

    1. Paste your text into the input box.
    2. Choose how to split: at a separator, every N characters, at each sentence or at each run of spaces (words).
    3. Each piece goes on its own line. Trim removes spaces at the ends of each piece, and empty pieces can be dropped.
    4. Copy the result. The stats show how many pieces there are.

    Worked example

    Input

    red, green,blue,,yellow

    Output

    red
    green
    blue
    yellow

    The comma is the separator. Trim removes the space before green, and the empty piece between the two commas is dropped.

    Edge cases and limits

    • In "every N characters" mode, line breaks in the input are changed to spaces first, and pieces can cut through the middle of a word.
    • Trim runs after the cut, so a piece that starts or ends with a space can be shorter than N characters.
    • The separator is plain text, not a regular expression. Only \t (tab) and \n (new line) have a special meaning.

    Frequently asked questions

    How do I split text by comma?

    Keep the separator as a comma and paste your text. Each item goes on its own line, with spaces trimmed.

    How do I split text into chunks of a set length?

    Choose "Every N characters" and type the length, for example 160. Each line is at most that many characters.

    Can I split text into sentences?

    Yes. Choose Sentences. The tool splits after . ! and ? when the next word starts with a capital letter or a digit, and skips abbreviations such as Mr. and etc.

    Related tools