How to Split Long Text Into Chunks (By Characters, Words, Lines or Paragraphs)
Split long text into chunks by characters, words, lines or paragraphs for texts, posts, AI context limits and subtitles, without cutting words or sentences.
Updated November 25, 20267 min read
To split long text into chunks, paste it into the Text Splitter, choose Into chunks, set the size and the unit (characters, words or lines), and press Split text. Each part appears on its own card with its length and its own copy and download buttons. The one setting that separates a useful split from a messy one is where a cut is allowed to land: counting every 500 characters will usually cut a word in half, while asking for the cut to fall between words or between sentences keeps every part readable and still inside the limit. This guide covers the unit, the size and the boundary for the places people most often split text.
Start with how the limit is measured
Every limit you are splitting for is counted in something: characters, words, lines, or for AI models, tokens. Split in the same unit the destination counts in, and leave a little room, because the place you paste into may count spaces, line breaks or emoji differently from a plain count.
| Splitting for | How the limit is counted | Setting to start from |
|---|---|---|
| A single SMS | 160 characters, or 70 if any character falls outside the basic SMS alphabet (emoji, for example) | Into chunks, Characters, 150, Between words |
| A post or a thread on X | 280 characters per post on a standard account | Into chunks, Characters, about 270, Between sentences |
| An AI chat with a context limit | Tokens; in English roughly four characters per token | Into chunks, Characters, well under the limit, Between sentences |
| Subtitle lines | Often 42 characters per line, two lines at most | Into chunks, Characters, 42, Between words |
| A form or import field | A fixed number of characters or words | Into chunks in that unit, a little under the limit |
| Batches of records | A number of lines | Into chunks, Lines, the batch size |
The numbers above are the commonly published ones; check the current rule for your platform. The guide to word and character limits explains why the same text can count differently on different sites, and the word counter measures it before you split.
Splitting long text, step by step
Add the text
Open the Text Splitter, paste into the box and press Use this text, or press Choose file to open a .txt, .md, .csv, .log, .srt or another plain-text file. A Word document has to be turned into text first; see the guide to converting Word to plain text.
Choose the split mode
For a size limit, pick Into chunks under Split mode. For a fixed number of pieces, pick Into equal parts and set the Number of parts instead.
Set the unit and the size
Under Measure chunks in, choose Characters, Words or Lines, then set the Chunk size. The control only offers sizes your text can actually produce.
Decide where a cut can land
When measuring in characters, set Cut can land to Anywhere, Between words or Between sentences. Words and lines are already whole units, so they never cut a word.
Split and take the parts
Press Split text. Copy or download any single part from its card, or use Copy all and Download for the whole set in the output format you chose.
Seven split modes, word- and sentence-safe chunks, five output formats and per-part copy and download. Free: 10 MB of text and up to 50,000 parts. Runs on your device, not our servers.
Split text into chunksCharacters, words, lines or paragraphs
Chunks are for size limits, but sometimes the boundary you want is already in the text. The splitter has seven modes under Split mode, and these are the ones that matter for long prose:
- Into chunks by characters. For limits counted in characters. Pair it with Between sentences for prose and Anywhere for data that has to reassemble exactly.
- Into chunks by words or lines. For word limits and for batches of rows: 100 words per part, or 500 lines per file.
- Into equal parts. When you need a set number of pieces, say a transcript divided among four people, and the size can follow.
- By lines. One part per line, for lists and logs. A Windows line ending counts as one break, so no part ends with a hidden carriage return.
- Paragraphs. There is no separate paragraph mode: choose By delimiter and type
\n\n(two line breaks), or By regular expression with\n\s*\nif the blank lines contain spaces. Turn on Trim each part to remove leftover whitespace.
The statistics above the parts are the quickest check that a setting is wrong. Parts far higher than expected usually means the delimiter appears inside the text as well as between sections. A Shortest of 0 means empty parts, which Keep empty parts turned off will drop.
Splitting text for an AI model's context limit
Language models measure input in tokens, not characters, and the splitter counts characters, words and lines. For English, a common rule of thumb is about four characters per token, so a model that accepts 4,000 tokens takes very roughly 16,000 characters. Other languages and code use more tokens per character. Treat that conversion as an estimate and choose a chunk size well below it, which also leaves space for your own instructions and the model's reply.
Set Cut can land to Between sentences, so no part stops mid-thought and the model does not have to guess how a sentence ended. Paste the parts in order, and tell the model first that more are coming. With Pro, Add part headers does that for you: each part is wrapped in [START PART n/N] and [END PART n/N] markers, and a short line at the top asks the model to wait for the last part before replying.
Text messages, posts and subtitle lines
A text message longer than one SMS is sent as several linked segments, and each segment holds a little less than a single message because part of it is used to join them up: 153 characters instead of 160, or 67 instead of 70 once an emoji or another special character is involved. Splitting yourself, between words, gives you control over where each message breaks. For a thread of posts, split Between sentences a little under the post limit, then add numbering such as 1/5 by hand if you want it. For subtitles, splitting a transcript into lines of 42 characters Between words gives a first draft of subtitle text; the timing still has to be set in a subtitle editor.
Output formats and limits on the free plan
Under Output format, Joined puts the parts in one block with a Separator between parts you choose, One per line and Numbered suit lists and review, and JSON array and CSV row suit scripts and spreadsheets. Free handles 10 MB of text and up to 50,000 parts from one file at a time, with every mode, boundary and format. Pro removes both ceilings, takes up to 100 files at once, downloads every part as its own file in one ZIP, and adds text before and after each part. To join parts back together, use the Text Merger; to clean up spacing before splitting, the Text Trimmer.
Frequently asked questions
How do I split long text into chunks without cutting words?
Choose Into chunks, measure in Characters, set the size, and set Cut can land to Between words or Between sentences. The cut moves back to the nearest space or sentence end, and no part goes over the size you set.
Can I split text by word count instead of characters?
Yes. Under Measure chunks in, choose Words and set the chunk size, for example 300. Each part then holds that many words, and words are never broken.
How do I split text into paragraphs?
Choose By delimiter and type \n\n, which splits on a blank line. If the blank lines contain spaces, use By regular expression with \n\s*\n instead, and turn on Trim each part.
What chunk size should I use for ChatGPT or another AI model?
Models count tokens, and in English one token is roughly four characters. Convert the model's limit to characters, choose a size well below it to leave room for your instructions, and set Cut can land to Between sentences.
Can I split text into a set number of equal parts?
Yes. Choose Into equal parts and set the Number of parts. If a word or sentence boundary runs out of text first, the tool tells you it produced fewer parts rather than adding empty ones.
Is my text uploaded when I split it?
No. The text is read, split and written back on your own device, and nothing is sent to a server. Once the page has loaded, it keeps working offline.