AI token counter
Paste a prompt, see tokens per model and how much of each context window it fills. The GPT row is exact; the others are honest estimates. Models as of October 2026.
Counts update as you type. Nothing is sent anywhere. · Saved in this browser
AI tokens
Loading the tokenizer (≈1.5 MB, once)…
| Model | Tokens | Context window |
|---|---|---|
| GPT-5.6 · 5.5 · 5.4 (OpenAI) | 0 | |
| Claude Opus 5.5 · Sonnet 5.5 · Haiku 5.5 · Fable 5.1 | 0 | |
| Gemini 3.8 Flash · 3.1 Pro | 0 | |
| Grok 4.7 (xAI) | 0 | |
| DeepSeek V4 Pro · V4.1 Flash | 0 | |
| Llama 4 Maverick · Scout (Meta) | 0 |
The GPT row runs OpenAI's real tokenizer (o200k_base, used by GPT-5.x, 4.1 and 4o) in your browser. Anthropic, Google, xAI, DeepSeek and Meta don't ship browser tokenizers, so those rows are calibrated estimates (±15–20%) — enough to size a prompt, not to bill. Model names and context windows as of Oct 2026.
Exact vs. estimate
OpenAI publishes its tokenizers: GPT-5.6, 5.5, 5.4, 4.1 and 4o all use o200k_base, so that row is computed exactly, in your browser, with the same table the API uses. Anthropic (Claude 5.5 / Fable 5.1), Google (Gemini 3.8 Flash, 3.1 Pro), xAI (Grok 4.7), DeepSeek (V4 Pro, V4.1 Flash) and Meta (Llama 4) don't ship browser tokenizers; those rows multiply the o200k count by a factor calibrated on English and Korean text (Claude ≈ 1.15× / 1.3×, Gemini ≈ 1.05× / 1.2×, Grok ≈ 1.05× / 1.3×, DeepSeek ≈ 1.05× / 1.45×, Llama 4 ≈ 1.0× / 1.2×). Expect ±15–20%. For billing, use each provider's own token-count endpoint.
Context windows shown: GPT-5.6 1.05M, Claude 5.5 1M, Gemini 1M, Grok 4.7 500K, DeepSeek V4 1M, Llama 4 Maverick 1M (Scout goes to 10M). Checked against provider docs on 20 Oct 2026.
Why Korean costs more tokens
Tokenizers are trained mostly on English, so one English word is often one token while one Korean syllable block can be one or two. The same meaning in Korean typically needs 1.5–2.5× the tokens — which is why the context bar fills faster.
The word and character counts above come from the word counter.
What a token is
Language models do not read letters or words; they read tokens — chunks of text from a fixed vocabulary of tens of thousands to a few hundred thousand pieces. Common English words are usually one token, rarer words split into two or three, and a space is often glued to the next word. As a rule of thumb, English runs about four characters per token.
Why the count matters
- Cost: APIs bill per token, for both what you send and what comes back.
- Context window: every model has a maximum it can read at once; the bars show how much of it your text would fill.
- Speed: longer prompts take longer to process before the first word of the answer.
Making a prompt lighter
- Remove repeated instructions and boilerplate you copied in "just in case".
- Paste the relevant section of a document instead of the whole thing.
- Tables and JSON with long repeated keys are token-heavy; plain lists are lighter.
How the estimates work
The OpenAI row runs the published o200k tokenizer in your browser, so it is exact. The other rows start from that count and multiply it by a factor for each model, blended by how much of your text is Korean, Chinese or Japanese — so a mixed text gets a mixed factor. Treat them as within about ten percent.