Get text ready for a model, before a model sees it
Count what a prompt will cost and cut a long document into pieces that fit a context window — on your own device, before anything is pasted anywhere.
- 2 free tools
- Nothing is uploaded
- Runs in your browser
All 2 AI tools
-
AI
Token counter
Estimate how many tokens a prompt costs before you send it, and work out the price from the rates you type in.
-
AI
Text chunker
Split a long document into overlapping chunks sized in tokens, cut at paragraph and sentence boundaries instead of mid-word.
About these AI tools
Most of the work of using a language model happens before the prompt is sent: is this too long, how much will it cost, how should a hundred-page document be split so that a retrieval system can find the right paragraph. These tools answer those questions locally.
Nothing here calls a model. The counting and the chunking are arithmetic done by your browser, so a contract or an internal document can be measured and cut up without being sent to anybody first.
Questions
Do these tools send my text to an AI model?
No. The token count and the chunks are worked out by your browser. No model is called and nothing leaves the page.
Why count tokens instead of words?
Models are priced and limited in tokens, and a token is not a word: code, numbers and non-English text all take more tokens per word than plain English does.
What chunk size should I use for retrieval?
A few hundred tokens with a small overlap is a common starting point. The chunker lets you change both and see where every cut lands before you use it.