You have found the perfect article for the question you want to ask: a long, detailed piece that would give the model everything it needs. You paste it into the chat, add your question, and press send. Then the model refuses the message, or accepts only part of it, because the input was longer than its context limit allows. The article did not look that big. Your editor said a few thousand words. The problem is that the model never saw words at all. It saw tokens, and the token count was larger than the word count suggested.
This guide explains why a long article's size in tokens is the number that matters, and how to measure it before you paste, using the free Token Counter on Ovatly. The counter runs a real BPE tokenizer in your browser, shows characters, words, sentences and paragraphs alongside the token count, and never uploads your text.
Contents
- Quick answer
- Why articles are measured in tokens, not words
- Why the token count runs ahead of the word count
- How to count the tokens in an article, step by step
- Worked example: three counted texts
- Exact for GPT, approximate for other families
- What to do when the count is too high
- Limitations and honest notes
- Common mistakes
- FAQs
- Conclusion
Quick answer
Before pasting a long article into an AI chat, count its tokens. Open the Token Counter, paste the article text, click Count tokens, and read the token count together with the character and word counts. That token figure is what the model's context limit and per-token price are based on. If you need to know how much of a specific model's window the article would fill, take the count to the Context Window Checker; if you need a price, take it to the Prompt Cost Calculator. The count is exact for the GPT-4o family tokenizer and a close approximation for other model families.
Why articles are measured in tokens, not words
A token is a piece of text as a tokenizer splits it: sometimes a whole word, sometimes part of a word, sometimes punctuation attached to a neighbouring piece. Models read tokens, so everything about capacity is expressed in them. A context limit is a token limit. A per-token price is charged per token. When you paste an article, the model spends tokens on the article plus your question, and the total has to fit.
Word counts mislead because the ratio between words and tokens is not fixed. For ordinary English prose it is fairly steady, but an article full of technical terms, names, numbers or quoted code drifts upward, and the longer the article, the more that drift adds up. Counting the actual tokens replaces the guess with the real number.
Why the token count runs ahead of the word count
Tokenizers split text into sub-word pieces. Frequent words tend to be single tokens, because the tokenizer has a ready-made piece for them. Unusual words become several pieces. Punctuation and spaces attach to neighbouring tokens rather than standing alone. Three consequences matter for articles:
- Rare and technical vocabulary costs more. A specialist term the tokenizer has no single piece for is split into fragments, each one a token.
- Code and data cost more. Quoted code, URLs, tables of figures and similar material usually take more tokens per word than plain prose.
- Non-English text costs more. Text in other languages usually takes more tokens per word than English does under this encoding.
None of this is visible in a word count, which is why two articles with the same word count can have noticeably different token counts.
How to count the tokens in an article, step by step
- Copy the full text of the article, exactly as you plan to paste it into the chat, including any headings or quoted sections you intend to keep.
- Open the Token Counter and paste the text into the box.
- Click Count tokens.
- Read the token count together with the character and word counts. The token count is the size the model will charge against its context limit; the other figures help you sanity-check that the paste arrived complete.
- 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 own reference examples show how tokens and words diverge even in short texts:
- "Hello, world!" counts as 4 tokens, with 13 characters, 12 characters without spaces, 2 words and 1 sentence. Two words, but four tokens, because the punctuation and spacing attach as separate pieces.
- "The quick brown fox jumps over the lazy dog" is 9 tokens. Nine very common words, each familiar enough to be a single token, so here tokens and words nearly match.
- "Prompt engineering is the practice of writing instructions for AI models." is 12 tokens. Still ordinary English, but a longer sentence with less frequent words, so the count rises above the nine words on the page.
Scale that pattern up to an article of several thousand words and the gap between the word count and the token count becomes the difference between a paste that fits and one that is refused. That is the whole reason to count first.
Exact for GPT, approximate for other families
The counter uses the gpt-tokenizer package with the o200k encoding, which is the GPT-4o family tokenizer. For GPT-4o family models, the count it shows is the exact count. Claude, Gemini and other families split text differently, so for them the same figure is a close approximation, not an exact number. That is still useful for judging whether an article is in the right size range, but when a precise figure decides the matter for another provider's model, that provider's own counter is the authority.
What to do when the count is too high
If the token count says the article will not fit, or leaves too little room for the reply you want, you have honest options. Paste the sections that matter instead of the whole piece. Split the article and work through it in parts. Shorten it first; the Prompt Shortener exists for exactly that job. Or take the count to the Context Window Checker and pick a model whose window fits the text with room to spare. What does not work is pasting anyway and hoping; an over-limit input is refused or cut, and you will not always be told where.
Limitations and honest notes
The counter counts the raw text you paste. Real chat APIs add a few tokens per message for role markers and structure, so treat the result as the content size, not the final API payload. Very long pastes are counted on your own device, and a full book can take a moment. And as covered above, exactness is a GPT-4o family property; other families get an approximation.
Common mistakes
- Trusting the word count. Words are a hint; tokens are the limit. Count the tokens.
- Pasting first and checking later. A refused or truncated paste wastes the attempt. Thirty seconds of counting prevents it.
- Forgetting your own prompt. The article is not the whole input. Your question, and any earlier messages in the chat, spend tokens too.
- Assuming one count fits every model. The figure is exact for one family and approximate for the rest. Near a limit, that difference matters.
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 long a text can I count? Very long pastes are counted on your own device, so even a full book can be measured; it may take a moment to finish.
Conclusion
A long article is only paste-ready when its token count says so. Count it first with the Token Counter, compare the figure against the room you actually have, and trim, split or switch models before the chat refuses your message. For the companion problem, a prompt that gets cut off mid-conversation, see Why Is My Prompt Being Cut Off? Token Limits Explained. More guides like this live in the AI and Prompt Tools guides.