Token Calculator

Count tokens in your text and estimate LLM API cost — instantly, right in your browser.

Your text

0
Estimated tokens
Estimate
0
Characters
0
Characters (no spaces)
0
Words
0
CJK characters

How the estimate works: English ≈ 1 token per 4 characters (≈ 0.75 words per token). Chinese, Japanese and Korean ≈ 1 token per 1–2 characters. Your text is mixed and weighted automatically.

Cost estimator

—
Input price / 1M tokens
—
Output price / 1M tokens
Input cost$0.0000
Output cost$0.0000
Estimated total$0.0000
Prices are approximate list prices as of December 2026, in USD, and can change at any time. Token counts here are estimates from a simple heuristic — the exact count depends on each model's own tokenizer. Always check the provider's current pricing page before budgeting.

How to use this token calculator

  1. Paste or type the text you plan to send to an AI model into the box above. Counts update as you type.
  2. Read the estimated token count, plus the character and word counts, to see how big your prompt is.
  3. Pick the model you plan to use. The input and output prices per 1M tokens update automatically.
  4. Enter how long you expect the model's reply to be, in tokens. A short answer is roughly 100–300 tokens; a long one can be 1,000 or more.
  5. Check the estimated total cost. Shorten your text or switch models to see how the price changes.

What is a token?

A token is the unit AI models read and write. It is not a word or a character: models split text into chunks — common words are often one token, while longer or rarer words split into two or three. You pay per token, and model context limits are measured in tokens, so knowing your token count tells you both the cost and whether your text fits.

Typical token counts

TextCharacters~ Tokens
“Hello, world!”13~4
One English sentence (about 20 words)~110~28
A short post / tweet (280 characters)280~70
One paragraph (about 100 words)~550~135
A short email (about 200 words)~1,100~270
One full page (about 500 words)~2,700~670
A 10-page document~27,000~6,700
100 Chinese / Japanese / Korean characters100~50–100

Counts are rough guides for English unless noted. Code, URLs, numbers and unusual symbols usually take more tokens per character than plain prose.

Frequently asked questions

Is this token count exact?

No. This tool uses a transparent heuristic — about 1 token per 4 characters for English and 1 token per 1–2 characters for CJK text. Each model has its own tokenizer, so the exact count from OpenAI, Anthropic or Google can differ, usually by a small margin for plain text and more for code or mixed languages. Use this for planning and budgeting, not for billing reconciliation.

Why do Chinese, Japanese and Korean use more tokens?

Most tokenizers were trained heavily on English, so common English words compress well. A single Chinese, Japanese or Korean character often becomes one token — sometimes two — so 100 CJK characters can cost as many tokens as a full English sentence. That is why the same message can cost noticeably more in CJK languages.

How is the cost calculated?

Cost = (input tokens ÷ 1,000,000 × input price) + (output tokens ÷ 1,000,000 × output price). Input is the text you send; output is the model's reply, which is why output tokens are priced higher on most models — and why a long reply can cost more than a long prompt.

Does my text leave my device?

No. Everything runs in your browser on this page. Nothing you paste is uploaded, stored or tracked by this tool, so it is safe to test with drafts and working documents. Still, avoid pasting passwords or secrets into any web page as a general habit.

Which model is cheapest?

Of the models listed here, GPT-5 nano is the cheapest, and the smaller models — GPT-5 mini, Gemini 3 Flash and Claude Haiku 4.5 — cost a fraction of the flagship models per token and are plenty for summarising, drafting and classification. Flagships like GPT-5, Claude Sonnet 4.5, Claude Opus 4.5 and Gemini 3 Pro cost more but are stronger at complex reasoning, coding and long documents. Gemini 3 Pro prices shown are for prompts up to 200k context.

What counts toward the token total?

Everything the model reads and writes: your prompt, any system instructions, the conversation history you resend, and the reply itself. In a long chat, the history is re-sent with every message, so token use grows quickly — trimming old context is the easiest way to cut cost.