Home Tools Token Estimator

Token Estimator

Paste any text to estimate how many tokens it uses, and see what that text would cost to send to each major model.

Built and maintained by Adrian Wells · Prices checked 20 July 2026 · Runs entirely in your browser

ADVERTISEMENT

Nothing you paste leaves your browser. There is no upload and no storage.

Prices and tools change. The model prices behind this tool were last checked on 20 July 2026. Providers revise their rates, rename models and retire tiers regularly, so treat every figure here as an estimate and confirm the current price with the provider before you commit to a budget. See our model pricing table and sources.

Estimates only. These tools run entirely in your browser — nothing you type is sent to us or stored anywhere. They are simplified models of how AI providers bill, and they exclude cached-input discounts, batch rates, image and audio tokens, taxes and minimum commitments. They are general information, not procurement or financial advice.

What a token is

Models do not read letters or words. Before anything happens your text is chopped into tokens — chunks usually somewhere between a character and a word. Common words are often a single token; rarer words, names, code and non-English text get split into several. That is why the same sentence costs different amounts in different languages.

Why this is an estimate

This tool uses the standard ~4 characters per token rule of thumb. It is a genuinely useful approximation for ordinary English prose and it is the number most people use for back-of-envelope budgeting. It is not exact. Every model family has its own tokenizer, and the same text can differ by 10–35% between them. Code, JSON, tables, emoji and non-Latin scripts all tokenize less efficiently than plain English, so the true count for those is usually higher than shown.

For an exact number, use the provider's own token-counting endpoint — every major provider offers one, and it is free to call. Use this page to get a feel for the scale, not to reconcile an invoice.

Turning tokens into money

The table below prices your pasted text as a one-off input on each model. Remember that a real request also pays for the model's reply, which is billed at the higher output rate, and that in a conversation you resend the whole history every turn — so a long chat costs far more than the sum of its messages. To model a full workload, take the token count from here and put it into the API cost calculator.

Model prices used by this tool

USD per 1,000,000 tokens. Last verified 20 July 2026. These figures are maintained by hand and will drift — verify with the provider before budgeting.

ModelInput / 1MOutput / 1M
Anthropic
Claude Fable 5$10.00$50.00
Claude Opus 4.8$5.00$25.00
Claude Sonnet 5$3.00$15.00
Claude Haiku 4.5$1.00$5.00
OpenAI
GPT-5.6 Sol$5.00$30.00
GPT-5.6 Terra$2.50$15.00
GPT-5.6 Luna$1.00$6.00
GPT-5.4 mini$0.75$4.50
GPT-5.4 nano$0.20$1.25
Google
Gemini 3.1 Pro$2.00$12.00
Gemini 3.5 Flash$1.50$9.00
Gemini 3 Flash$0.50$3.00
Gemini 3.1 Flash-Lite$0.25$1.50

Sources: OpenAI API pricing · Anthropic (Claude) pricing · Google Gemini API pricing