Text Chunk Splitter (Characters, Words, Sentences, Tokens)
Cut a long text into parts of a set size, repeat a little context between parts, label them [Part 2/5] and copy or download every part.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Add the text
Paste text into the editor or press Open text file to load a .txt, .md, subtitle or other text file.
- 2Choose the unit
Pick characters, words, sentences, paragraphs or tokens, or press a preset such as AI prompt or SMS.
- 3Set size and overlap
Enter the maximum size per part and how much should repeat between parts.
- 4Set labels
Edit the label template and an optional header for parts after the first.
- 5Copy the parts
Open the Parts tab and press Copy next part, or copy any part and mark it done.
- 6Download
Press Download ZIP for separate files, One .txt for a single file or JSONL for data pipelines.
About this tool
Long documents rarely fit where you need them: an AI chat window has a context limit, a form field stops at 1,000 characters, a social post at 280 and an SMS at 160. This splitter cuts any text into parts that fit. Choose the unit (characters, words, sentences, paragraphs or approximate tokens), the maximum size of each part and an overlap that repeats the end of one part at the start of the next, so nothing loses its context at the cut. Character mode can keep whole words or cut exactly at the limit. Every part can carry a label built from a template such as [Part {n}/{total}], and parts after the first can start with a header line, for example an instruction to an AI assistant to wait for the rest. Copy parts one by one, mark them done, or download them all as numbered text files in a ZIP, one combined file or JSONL.
Units and how they are counted
Characters are counted as typed, including spaces. Words are runs of non-space characters. Sentences end at a full stop, question mark, exclamation mark or line break, so headings count as sentences too. Paragraphs are blocks separated by an empty line. Tokens are estimated per word at about four characters per token, the rule of thumb OpenAI gives for English; each word counts at least one token. The statistics bar shows all five counts for the whole text, and every part shows its own counts.
Overlap without duplication errors
Overlap is measured in the same unit as the size. With 300-word parts and a 50-word overlap, each new part starts 50 words before the previous one ended. Overlap must be smaller than the part size, and the splitter caps it automatically. Sentence and paragraph modes never cut inside a sentence or paragraph, which keeps quotes and lists intact for retrieval systems (RAG) and summaries.
Presets
One-click presets cover SMS (150 characters, leaving room for a label), X posts (265 characters), AI prompts of about 2,000 and 8,000 tokens with overlap, 300-word chunks with 50 words of overlap for embedding pipelines, five sentences per part and one paragraph per part.
Worked example
A 12,000-word interview transcript must go into a chat assistant in parts of at most 1,500 words with 100 words of overlap. Each new part starts 1,400 words after the previous one, so the parts begin at word 1, 1,401, 2,801 and so on. The ninth part starts at word 11,201 and reaches the end, giving 9 parts. With the header "Part of a longer transcript: reply OK and wait for the last part" on parts 2 to 9, you paste them in order and press Copy next part each time.
Limits
Token counts are estimates, not the exact output of a specific model's tokenizer; code, numbers and non-English text often use more tokens per word, so keep 10-20 % headroom. The sentence splitter does not know abbreviations such as "Dr." and may cut after them. The page shows the first 300 parts on screen; downloads contain all of them. Your text is processed in this browser and is not uploaded.
Worked example
12,000 words in 1,500-word parts with 100 words of overlap gives 9 parts; parts start every 1,400 words.
Quick facts
- Category: Text & Writing
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: OpenAI tiktoken tokenizer and OpenAI guidance that one token is about 4 characters of English text
Frequently asked questions
Why add overlap between chunks?
A sentence cut in half loses meaning. Repeating the end of one part at the start of the next keeps context for readers, AI assistants and search systems that look at one part at a time.
How accurate is the token estimate?
It assumes about four characters per token for English, which is close for normal prose. Real tokenizers differ by model and language, so leave some headroom below the model's limit.
Can I keep sentences or paragraphs whole?
Yes. Choose Sentences or Paragraphs as the unit and set how many go into each part; the splitter never cuts inside one.
How do I download all the parts?
Download ZIP saves one numbered .txt file per part. One .txt joins all parts with separators, and JSONL saves one JSON line per part with its counts.
What can I put in the label template?
{n} is the part number, {total} the number of parts and {name} the file or project name, for example "{name} part {n} of {total}".
Is there a size limit?
Only your device's memory. Very long texts of several megabytes split in a moment; the screen lists the first 300 parts to stay fast.
