Tools / Token counter
Token counter
How many tokens your text uses, counted with real public tokenizers, and how much of a context window it fills.
privacy Your text never leaves your browser. The tokenizers run on your device.
How much of a context window it fills
Common context window sizes. Check your model’s documentation for its exact limit.
- 8K tokens0%
- 32K tokens0%
- 128K tokens0%
- 200K tokens0%
- 1M tokens0%
See it token by token
What a token is
A language model does not read letters or words. It splits text into pieces called tokens: a word, part of a word or a symbol. Context windows and API usage are measured in tokens, so the same text can “cost” more or less depending on the model and the language. English usually needs fewer tokens than Spanish or code for the same meaning. If you read Spanish, my AI study guide explains how a large language model predicts text token by token, with a glossary entry on tokens.
Which tokenizers this uses
- OpenAI o200k_base and cl100k_base. The public encodings OpenAI publishes in tiktoken: o200k_base for GPT-4o and later models, cl100k_base for GPT-4 and GPT-3.5. OpenAI has not said whether GPT-6 uses o200k_base, so treat GPT-6 counts as an estimate.
- DeepSeek V4. DeepSeek publishes its V4 Pro tokenizer on Hugging Face under the MIT license. The page downloads it from javier.tech the first time you pick it.
- Claude and Gemini. Anthropic and Google do not publish their tokenizers, so no browser tool can count them exactly. Anthropic’s pricing page says Claude 4.7 and later use a new tokenizer that makes about 30% more tokens than the previous one for the same text. Use the o200k_base count as a rough guide.
Tokens also drive usage limits in apps, not only in the API. On my main site I explain how ChatGPT and Codex now share one token-based allowance, and what models like GPT-6.1 Terra cost per token.
Made by Javier Sáez Hurtado. Updated on 16 November 2026.