Token Chunker
Split text into token chunks with overlap. OpenAI encodings are exact. No model API.
Added 2026-10-24
What it does
Token Chunker splits text into windows of at most the chunk size you set, and it repeats an overlap on the next window. The overlap must be smaller than the chunk size. If the two numbers are equal, the next window starts where this one started and never moves forward. o200k_base and cl100k_base use the same OpenAI encodings as Token Counter, so those counts are exact for the models that use them. Claude and Gemini use that page local estimate, and a character is never cut in half. Overlap is shared on purpose: joining the chunks counts those tokens twice. That repeated span is context, not a duplicated file. Nothing is uploaded, and no model API is called.
How to use it
- Chunk size is the most tokens in one piece. Overlap is how many tokens the next piece repeats, and it has to be smaller than the chunk size.
- o200k_base matches GPT-4o, GPT-4.1, the o-series, and the GPT-5 family. cl100k_base matches GPT-4, GPT-3.5, and the common embedding models.
- Claude and Gemini use the same local estimate as Token Counter. A character is never split.
Common mistakes
- Overlap has to leave room to move forward. If the overlap is the same as the chunk size, the next window starts where this one started.
- Neighboring chunks share the overlap on purpose. Joining the chunks with overlap counts those tokens twice. That is the repeated context, not a duplicated file.
The text stays in this tab. Splitting uses a tokenizer bundled with the page. It is not sent to a model.
Related guides
- Count tokens without a model API
o200k_base and cl100k_base count OpenAI tokens locally. Claude and Gemini here are estimates. Chunk overlap is repeated context.