Multi-Model Token Comparison
Paste a text and see how many tokens it is for each OpenAI, Anthropic and Google chat model in the site's price file, how far each is from the lowest count, and what sending it 1,000 times costs at each model's list input price. Tokenizing happens in your browser; your text is not uploaded. Prices were checked on 2026-11-12.
How to use the Multi-Model Token Comparison
- Paste the text you plan to send (a typical prompt, a document chunk, a code file), or load one of the three examples: English prose, a TypeScript function, or one sentence in five languages.
- Press Compare. Each row shows the model, the tokenizer used, the token count, how many tokens more than the lowest count it is, and the input cost per 1,000 calls.
- The model with the fewest tokens and the one with the lowest cost are tagged; they are often different models.
The cost column is tokens × list input price per million × 1,000. For example, a 1,000-token text on a model priced at $1.25 per million input tokens costs $1.25 per 1,000 calls; a 2,400-token text at $0.50 per million costs $1.20. Output tokens are not included, because they depend on the answer, not on your text.
Why the same text is a different number of tokens
Every model family splits text into tokens with its own vocabulary. A tokenizer trained mostly on English and code needs few tokens for common English words and many for scripts it saw less often, so the count for the same text varies by model, and the gap usually widens for code, structured data and non-Latin scripts. Try the multilingual example to see this on your own browser.
How each count is made here:
- OpenAI: OpenAI's tokenizer via the open-source js-tiktoken library, loaded from a CDN on first use. All current
OpenAI chat models in the table use
o200k_base, so their counts match and only their prices differ. If the library cannot load, the count falls back to an estimate marked est. - Anthropic: there is no public in-browser Claude tokenizer, so the count is an estimate from character counts. Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5 and Opus 4.7 use a newer tokenizer that produces about 35% more tokens for the same text; that ratio is in the price file and applied here.
- Google: also an estimate from character counts, marked est.
Estimates are fine for comparing orders of magnitude and for budgeting. For exact numbers, use each provider's token-counting endpoint.
Common use cases
- Choosing a model for non-English traffic: paste real user messages in that language and compare the cost column, not the list price.
- Sizing a RAG chunk: check that a chunk fits the token budget you set for every model you might route to.
- Explaining a bill: show why the same workload costs more on one model than its per-token price suggests.
Limits
- Claude and Gemini counts are estimates and are rougher for code and non-Latin scripts.
- Costs are list input prices in USD from the site's price file, checked on 2026-11-12. Cached-input, batch and negotiated prices are not applied.
- The model list is the set of chat models in that file; models it does not list are not shown.
Frequently asked questions
Is my text sent anywhere?
Why do all the OpenAI rows show the same token count?
o200k_base tokenizer. Their cost per 1,000 calls still differs because their prices differ.