Pro Calculators and Guides

How to Split Long Text into Chunks for AI Chats, Forms and Posts

Choose the right chunk unit, size and overlap to split long documents for AI assistants, embeddings, character-limited forms and social posts.

Saizul Amin
Saizul Amin3 Nov 2026 · 4 min read
How to Split Long Text into Chunks for AI Chats, Forms and Posts

How to Split Long Text into Chunks for AI Chats, Forms and Posts

Sooner or later every long text meets a limit. A chat assistant accepts only so many tokens, a web form stops at 2,000 characters, a social post at 280 and an SMS at 160. Cutting the text by hand is slow and tends to break sentences in awkward places. This guide explains how to choose a unit, a size and an overlap, and how to do the cutting in seconds with the free text chunk splitter.

Pick the unit that matches the limit

Start from the limit you are working against.

  • A form or post with a character limit: split by characters, and keep whole words so no word is cut in half.
  • An AI model with a token limit: split by approximate tokens.
  • A reading or translation task where meaning matters: split by sentences or paragraphs, which never cut a thought in the middle.
  • A data pipeline that expects fixed-size pieces: split by words, the most predictable unit.

The splitter shows the whole text's counts in all five units at the top, so you can see at once how many parts each choice would create.

Understand token estimates

Language models read tokens, fragments of words. For ordinary English prose one token is about four characters, roughly three quarters of a word. The splitter estimates tokens word by word on that rule, counting at least one token per word. Real tokenizers differ by model, and code, numbers, URLs and many non-English languages use more tokens per word. Leave 10 to 20 % headroom: if a model accepts 8,000 tokens and you also need room for instructions and the reply, parts of about 6,000 estimated tokens are safer.

Use overlap to keep context

When text is cut, the beginning of a part loses what came before. Overlap repeats the last few units of each part at the start of the next. For summaries and question answering over documents (the retrieval set-up often called RAG), a common choice is 10 to 20 % overlap, such as 300-word chunks with 50 words repeated. For posts and forms, use no overlap, because readers would see repeated text.

The splitter measures overlap in the same unit as the size and keeps it smaller than the part size automatically.

Label the parts

When parts travel separately, readers and assistants need to know the order. The label template adds text such as "[Part 2/5]" to every part: {n} is the part number, {total} the count and {name} the file or project name. A separate header can be added to every part after the first. For a chat assistant, a header like "This is part of a longer document. Reply only OK until you receive the last part." stops it from answering too early.

Work through the parts

The Parts tab shows every chunk with its own character, word and token counts. Copy next part copies the first part that is not yet marked done and ticks it off, so you can paste parts into a chat window one after another without losing your place. A bar chart on the settings tab shows the size of every part and which ones you have done.

Download everything

Three downloads cover most needs. Download ZIP saves each part as a numbered .txt file, ready to attach or upload. One .txt joins all parts with separators, which is handy for review. JSONL writes one JSON object per line with the text and its counts, which many embedding and indexing scripts read directly.

A short example

A 12,000-word interview transcript must go into a chat assistant that handles about 2,000 words at a time, with room for questions. Choose Words, a size of 1,500 and an overlap of 100. Each new part begins 1,400 words after the previous one, so the transcript becomes 9 parts. Add the label "[Part {n}/{total}]" and a header for parts 2 to 9 asking the assistant to wait. Paste the parts one by one with Copy next part, then ask your questions after the last one.

For a Twitter thread from a blog post, the X post preset uses 265 characters with whole words and leaves space for a "1/7" style label.

Tips for cleaner chunks

Tidy the text first. Extra blank lines and trailing spaces inflate counts; the Tidy spacing button removes them. If a document has headings, splitting by paragraphs keeps each section together. For legal or technical documents where every sentence matters, sentence mode with one sentence of overlap is a good compromise between size and context.

Limits

Token numbers are estimates and will not match a specific model's tokenizer exactly. Sentence detection uses punctuation and line breaks, so abbreviations such as "e.g." or "Dr." can end a sentence early. The screen lists up to 300 parts to stay responsive, while downloads include every part. All splitting runs in your browser and nothing is uploaded, but check what you paste into third-party AI tools if the text is confidential.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages