Tokenizers: Why a Million Tokens Is Not a Million Words

Every API price is per million tokens, every context limit is in tokens, and every cache is a prefix match on tokens. Here is what a token actually is and why the ratio keeps moving.

A million tokens is not a million words. The ratio changes without notice, and that shift breaks your token budget, misses your prompt cache, and surprises your bill.

Every frontier API prices per million tokens. Every context limit is a token ceiling. Every prompt cache is a prefix match on token IDs. The industry runs on tokens — and tokens do not map to words the way you think.

A token is not a word. It is not a character. It is not a fixed slice of text. The conversion between tokens and human-readable text varies by language, by content type, and by which tokenizer the provider shipped this month. That variability is the reason your estimates fail.

What a token actually is

Modern tokenizers use byte-pair encoding. The algorithm:

  1. Starts with raw bytes.
  2. Finds the most frequent byte pairs across a training corpus.
  3. Merges them, repeatedly, until the vocabulary hits a target size.

The result is a lookup table of sub-word units. One token might be “the,” another “tokeniz,” another “。” — a punctuation mark, a byte escape, or a multi-byte character. Common English words compress to single tokens. Rare words fracture into several. Non-Latin scripts inflate because the vocabulary is overwhelmingly English.

Token count correlates with computational cost, not length. The same 1M-token budget buys 750,000 words of English prose under the old Anthropic tokenizer, but only 555,000 under the new one. It buys even less for code, and far less for Japanese or Arabic.

The actual ratios, from vendor docs

Anthropic publishes the conversion. Current tokenizer: 1M tokens ≈ 555,000 words ≈ 2.5M Unicode characters. 200K tokens ≈ 150K words. That is roughly 1.8 tokens per English word. The previous tokenizer ran at ~1.33 — a 35% jump in token count for identical text.

OpenAI publishes limits, not conversions. GPT-6.2 Astra and Sol offer a 1,050,000-token window (922K input, 128K output). Translating that to words requires multiplying by your content’s ratio — which is exactly the problem. You cannot know the ratio without measuring.

The tokenizer changed under everyone’s feet

The current Anthropic tokenizer was introduced with Claude Opus 4.7 in April 2026 and produces approximately 30% more tokens for the same text than the one it replaced.

The direction is worth emphasising: tokenizers normally get more efficient over time, so a fixed context window holds more text. This one moved the other way.

Whatever the reason — broader coverage of code and non-English scripts, or some capability trade-off — the effect on users is concrete. A system that fit 600,000 words inside its window now needs roughly 780,000 tokens for the same text, and no longer fits. We covered the consequences in Claude Opus 4.7 and the tokenizer reset.

Four places the number shows up

Billing. Prices are per million tokens. A token estimate that is 30% low is a bill that is 30% high. This is the most common cause of an inference bill that surprises its owner.

Context windows. The window is a token limit, not a word limit. A 128,000-token output limit is a lot of tokens and a much less legible number than “about 85,000 words” — and it is also a ceiling that is rarely reached in practice, because the useful output is bounded by the task.

Cache keys. A prompt cache matches on the token sequence at the start of your prompt. Two requests with identical text produce identical token sequences and hit the cache; two requests differing by one character do not. The cache is also sensitive to model version, because a different tokenizer produces a different sequence for the same text.

Rate limits. Most providers limit requests per minute by input and output tokens per minute. An application that assumed a request was a fixed size will hit its rate limit at a different point than planned.

How to estimate without guessing

The practical advice is to stop estimating from character counts and measure with the provider’s own tokenizer. Both labs publish a tokenizer endpoint or library for exactly this purpose, and both are cheap to run.

The workflow that works:

  1. Measure your real payloads — not samples, the actual distribution including outliers.
  2. Segment by content type. Prose, code, and non-English text have materially different ratios, and a single average will mislead you in both directions.
  3. Re-measure after every model upgrade. A tokenizer change moves the number without any change on your side.
  4. Add headroom, because the largest payload in your distribution is what sets the context budget, and the average is what sets the bill.

The alternative — a character-count heuristic — is a rough estimate that happens to work well enough on English prose with a stable tokenizer. “About four characters per token” is a rule of thumb, not a measurement, and the new Anthropic tokenizer is exactly the case where the rule of thumb stops being safe.

The part that is genuinely counter-intuitive

A token is not a unit of meaning. It is a unit of computation, and the model does not experience it as a word.

Two consequences follow. First, the same concept expressed in different language or with different formatting can cost wildly different amounts. “Explain recursion” might be three tokens; a request that spells the concept out carefully might be twenty, and the second one gets a better answer for reasons that have nothing to do with token count.

Second, and more importantly: token count is a poor proxy for difficulty. A 5,000-token prompt containing a dense stack trace and a precise error message can be easier than a 200-token prompt containing an ambiguous request. The model reads the whole prompt on every request, and the cost of that reading scales with tokens — but the quality of the answer scales with the information density, not the token count.

This is why the practical advice is not “write shorter prompts”. It is “write precise prompts, and cache the stable parts”. Shortening a prompt to save tokens is often the more expensive choice, because a vague prompt costs more in retries and mistakes than it saved.

Why it matters for pricing comparisons

When you see two models with the same context window and different prices, the per-token price is only half the comparison. The other half is how many tokens each charges for the same job.

OpenAI’s claim that GPT-6.2 Astra reaches the same quality as GPT-6 Astra at lower cost, and that the 5% cost figure on Agents’ Last Exam reflects a task that consumed fewer tokens rather than a cheaper model, is a claim about token efficiency as much as about price. Two labs can publish identical per-million-token rates and still differ by a factor of several on a real workload, purely on how many tokens each emits.

That is why per-task cost is the only comparison that matters, and why you cannot derive it from a pricing page.

Sources