Your prompt was not especially long. A few paragraphs, maybe a pasted document. Yet the model cut it off, refused it, or answered as if the second half never existed. Nothing in the text looked wrong, and the word count seemed modest. The mismatch is in the unit: the model does not budget in words or characters. It budgets in tokens, inside a fixed-size context window, and your input spent more tokens than the window had room for.
This guide explains what a context limit actually counts, the three reasons a normal-looking prompt overflows it, and how to check your size before sending with the free Token Counter on Ovatly, which runs a real BPE tokenizer in your browser and never uploads your text.
Contents
- Quick answer
- What a context limit actually counts
- Reason one: tokens are not words
- Reason two: formatting adds tokens on top
- Reason three: other families count differently
- How to check your size before you send, step by step
- Worked example: three counted texts
- How to stop it happening
- Limitations and honest notes
- Common mistakes
- FAQs
- Conclusion
Quick answer
A prompt gets cut off when the input, measured in tokens, exceeds the model's context limit. Three things push a modest-looking prompt over that line: tokens are not words, so rare words, code and non-English text cost more tokens than the word count suggests; chat formatting adds a few tokens per message on top of your raw text; and if you estimated the size with one family's tokenizer while sending to another family, their count can be higher. Count your actual text with the Token Counter before you send, and compare the figure against the window using the Context Window Checker.
What a context limit actually counts
Every model has a context window: the total amount of text, in tokens, it can take in at once. Your prompt has to fit inside it, alongside everything else the conversation sends. When the input passes the limit, something has to give. Depending on the service, the message is refused outright, or the input is trimmed, which is the cut-off you see: the model answers the part it received and ignores the rest, often without saying so.
Because the budget is tokens, the only reliable way to know whether you fit is to count tokens. Character counts and word counts are proxies, and they drift exactly where long, technical or multilingual prompts live.
Reason one: tokens are not words
Tokenizers split text into sub-word pieces. Frequent words tend to be single tokens. Unusual words become several. Punctuation and spaces attach to neighbouring tokens. So the token count of a text is almost always higher than its word count, and the gap grows with exactly the material people paste into prompts: specialist vocabulary, names, numbers, quoted code and text in other languages, all of which usually take more tokens per word than plain English prose.
A prompt that reads as 800 words can therefore be well over 1,000 tokens before anything else is added. If the window you are sending to is nearly full already, that invisible extra is enough to cut you off.
Reason two: formatting adds tokens on top
Your raw text is not the whole payload. Real chat APIs add a few tokens per message for role markers and structure: the scaffolding that tells the model who said what. It is a small amount per message, but it is real, and it means the count of your text alone is the content size, not the final size of what is sent. In a long conversation with many messages, the per-message overhead accumulates along with the messages themselves.
Reason three: other families count differently
There is no single universal tokenizer. The counter on Ovatly uses the gpt-tokenizer package with the o200k encoding, the GPT-4o family tokenizer, so its counts are exact for that family. Claude, Gemini and other families split text differently, and for them the same count is a close approximation, not an exact figure. If you measured with one family's ruler and sent to another family's model, the receiving model may count your text as larger than your estimate, and a prompt you believed had headroom can arrive already over the line. Providers' own counters are the authority for their models.
How to check your size before you send, step by step
- Assemble the exact text you plan to send: the prompt itself plus any document or article you are pasting in.
- Open the Token Counter and paste the text.
- Click Count tokens.
- Read the token count together with the character and word counts. Compare the token figure with the room you believe the window has, remembering that formatting adds a little more and that other families' counts are approximations.
- If you need fill levels or prices, use the count with the Context Window Checker or the Prompt Cost Calculator, as the tool itself suggests.
Worked example: three counted texts
The counter's reference examples show why word counts understate size:
- "Hello, world!" is 4 tokens, with 13 characters, 12 characters without spaces, 2 words and 1 sentence. Double the tokens of the word count, in the shortest possible text.
- "The quick brown fox jumps over the lazy dog" is 9 tokens: nine common words, each a single token, the best case.
- "Prompt engineering is the practice of writing instructions for AI models." is 12 tokens for a nine-word sentence, because less frequent words split into more pieces.
A real prompt sits somewhere on that scale, and only counting tells you where.
How to stop it happening
Count first, and leave headroom rather than aiming exactly at the limit. If the count is too high, trim the text (the Prompt Shortener is built for this), paste only the sections the question needs, or split the material across messages or sessions. If the work genuinely needs a large input, check the count against a larger window in the Context Window Checker before you start, not after the refusal.
Limitations and honest notes
The counter counts raw text only; it does not add the per-message formatting tokens a chat API applies, so treat its figure as the content size. Its exactness holds for the GPT-4o family; other families get a close approximation. Very long pastes are counted on your own device, and a full book can take a moment. This guide deliberately names no per-model limits: window sizes are the providers' figures to publish and change, and the entry this guide is based on states none.
Common mistakes
- Judging size by eye. A prompt that looks short can be token-heavy. Count it.
- Counting only the document. Your instructions, the pasted material and the formatting overhead all spend from the same window.
- Trusting another family's count near the limit. An approximation is fine with headroom and risky without it.
- Re-sending the same oversized prompt. It will be cut the same way. Shrink the input or change the window first.
FAQs
Why does the token count differ from the word count? Tokenizers split text into sub-word pieces. Frequent words tend to be single tokens, unusual words become several, and punctuation and spaces attach to neighboring tokens.
Is this the exact count for Claude or Gemini? No. It is exact for the GPT-4o family encoding it uses, and an approximation for other families. Providers' own counters are the authority for their models.
Does chat formatting add tokens? Yes, real chat APIs add a few tokens per message for role markers and structure. This tool counts the raw text only, so treat the result as the content size, not the final API payload.
Is my text uploaded for counting? No. The tokenizer runs in your browser; nothing leaves the page.
How can I check whether my text fits before sending? Count the text in the Token Counter, then use the count with the Context Window Checker to see how much of a model's window it fills and how many tokens remain.
Conclusion
Cut-off prompts are a counting problem, not a writing problem. Measure your text in tokens with the Token Counter, keep real headroom under the limit, and remember the small overheads and the other-family approximation before you blame the model. For the step-by-step counting routine for long documents, see How to Count Tokens in a Long Article Before Pasting It Into AI. More guides like this live in the AI and Prompt Tools guides.