Free token counter for Claude, GPT and Gemini
The Token Counter shows how many tokens your text uses in GPT, Claude, Gemini, DeepSeek, Llama and more, how much of each context window it fills, and what it costs to send. It also detects the language of your text and shows how much more or less that language costs than English, with a table comparing about 100 languages. Counting runs in your browser; nothing is uploaded.
| Model | Tokens | Context window used | Input cost |
|---|---|---|---|
| GPT-4oOpenAI | 0Exact | 0.00% of 128K | $0.00 |
| GPT-4o miniOpenAI | 0Exact | 0.00% of 128K | $0.00 |
| GPT-4 / GPT-3.5OpenAI | 0Exact | — | — |
| Claude Opus 5.5Anthropic | ~0Estimate | 0.00% of 1M | $0.00 |
| Claude Sonnet 5.5Anthropic | ~0Estimate | 0.00% of 1M | $0.00 |
| Claude Haiku 4.5Anthropic | ~0Estimate | 0.00% of 200K | $0.00 |
| Gemini 3.6 FlashGoogle | ~0Estimate | 0.00% of 1.05M | $0.00 |
| Gemini 3.1 ProGoogle | ~0Estimate | 0.00% of 1.05M | $0.00 |
| DeepSeek V4-FlashDeepSeek | ~0Estimate | 0.00% of 1M | $0.00 |
| Llama 3 / 4Meta | ~0Estimate | — | — |
| Mistral LargeMistral | ~0Estimate | — | — |
| GrokxAI | ~0Estimate | — | — |
OpenAI counts use OpenAI's published tokenizers and are exact. Other providers don't publish a tokenizer that runs in a browser, so their counts (marked ~) are scaled from the GPT-4o count and typically land within 10–15% for English text; code and non-English text can drift further. Cost is one input-only call at list prices as of September 2026; "—" means no price on file.
Compare languages
The same 20 sentences, translated into 108languages, counted with OpenAI's two published encodings. The ratio is a language's token total divided by the English total for the same sentences, so English is 1.00.
Ratio to English: highest and lowest
The 8 languages with the highest ratio, then the 5 with the lowest, of those measured. English = 1.00.
- Santali15.29×
- Dzongkha9.49×
- Tibetan8.98×
- Lao8.78×
- Tigrinya6.20×
- Amharic6.12×
- Odia5.51×
- Khmer3.79×
- Danish1.38×
- Dutch1.33×
- Indonesian1.30×
- Chinese (Simplified)1.29×
- Portuguese1.29×
| Santali | Ol Chiki | 349.4 | 15.29× |
|---|---|---|---|
| Dzongkha | Tibetan | 216.9 | 9.49× |
| Tibetan | Tibetan | 205.3 | 8.98× |
| Lao | Lao | 200.7 | 8.78× |
| Tigrinya | Ethiopic | 141.7 | 6.20× |
| Amharic | Ethiopic | 139.9 | 6.12× |
| Odia | Odia | 125.8 | 5.51× |
| Khmer | Khmer | 86.7 | 3.79× |
| Burmese | Myanmar | 78.4 | 3.43× |
| Central Kurdish | Arabic | 68.8 | 3.01× |
| Punjabi | Gurmukhi | 67.8 | 2.97× |
| Sinhala | Sinhala | 65.3 | 2.86× |
| Uyghur | Arabic | 62.0 | 2.71× |
| Yoruba | Latin | 58.7 | 2.57× |
| Greek | Greek | 53.7 | 2.35× |
| Sanskrit | Devanagari | 51.5 | 2.25× |
| Belarusian | Cyrillic | 49.5 | 2.17× |
| Kannada | Kannada | 49.0 | 2.15× |
| Assamese | Bengali | 48.7 | 2.13× |
| Tamil | Tamil | 48.2 | 2.11× |
| Thai | Thai | 48.1 | 2.11× |
| Northern Kurdish | Latin | 47.5 | 2.08× |
| Maltese | Latin | 47.4 | 2.07× |
| Malayalam | Malayalam | 47.4 | 2.07× |
| Samoan | Latin | 47.4 | 2.07× |
| Telugu | Telugu | 46.9 | 2.05× |
| Tajik | Cyrillic | 46.0 | 2.01× |
| Maithili | Devanagari | 45.5 | 1.99× |
| Macedonian | Cyrillic | 45.5 | 1.99× |
| Māori | Latin | 45.0 | 1.97× |
| Serbian | Cyrillic | 44.9 | 1.96× |
| Georgian | Georgian | 44.4 | 1.94× |
| Irish | Latin | 44.4 | 1.94× |
| Armenian | Armenian | 44.3 | 1.94× |
| Albanian | Latin | 44.3 | 1.94× |
| Mongolian | Cyrillic | 44.1 | 1.93× |
| Marathi | Devanagari | 43.7 | 1.91× |
| Pashto | Arabic | 43.4 | 1.90× |
| Bhojpuri | Devanagari | 43.3 | 1.90× |
| Sindhi | Arabic | 43.0 | 1.88× |
| Gujarati | Gujarati | 43.0 | 1.88× |
| Bengali | Bengali | 42.9 | 1.88× |
| Hungarian | Latin | 42.8 | 1.87× |
| Latvian | Latin | 42.8 | 1.87× |
| Ukrainian | Cyrillic | 42.8 | 1.87× |
| Uzbek | Latin | 42.1 | 1.84× |
| Kinyarwanda | Latin | 42.0 | 1.84× |
| Welsh | Latin | 41.9 | 1.83× |
| Somali | Latin | 41.8 | 1.83× |
| Slovak | Latin | 41.5 | 1.81× |
| Cebuano | Latin | 41.4 | 1.81× |
| Bulgarian | Cyrillic | 41.3 | 1.81× |
| Romanian | Latin | 41.1 | 1.80× |
| Luganda | Latin | 41.0 | 1.80× |
| Urdu | Arabic | 41.0 | 1.79× |
| Icelandic | Latin | 40.9 | 1.79× |
| Azerbaijani | Latin | 40.7 | 1.78× |
| Tagalog | Latin | 40.5 | 1.77× |
| Zulu | Latin | 40.3 | 1.76× |
| Nepali | Devanagari | 40.0 | 1.75× |
| Lithuanian | Latin | 40.0 | 1.75× |
| Wolof | Latin | 39.9 | 1.75× |
| Shona | Latin | 39.8 | 1.74× |
| Basque | Latin | 39.5 | 1.73× |
| Hindi | Devanagari | 39.5 | 1.73× |
| Kyrgyz | Cyrillic | 39.5 | 1.73× |
| Polish | Latin | 39.1 | 1.71× |
| Japanese | Han + Kana | 39.0 | 1.71× |
| Czech | Latin | 38.8 | 1.70× |
| Lingala | Latin | 38.7 | 1.69× |
| Igbo | Latin | 38.5 | 1.69× |
| Chichewa | Latin | 38.2 | 1.67× |
| Estonian | Latin | 38.1 | 1.67× |
| Xhosa | Latin | 38.1 | 1.67× |
| Persian | Arabic | 37.7 | 1.65× |
| Finnish | Latin | 37.5 | 1.64× |
| Kazakh | Cyrillic | 37.4 | 1.64× |
| Catalan | Latin | 36.8 | 1.61× |
| Croatian | Latin | 36.5 | 1.60× |
| Slovenian | Latin | 36.3 | 1.59× |
| Hebrew | Hebrew | 35.9 | 1.57× |
| Italian | Latin | 35.9 | 1.57× |
| Swahili | Latin | 35.9 | 1.57× |
| Korean | Hangul | 35.8 | 1.57× |
| Dari | Arabic | 35.8 | 1.56× |
| Hausa | Latin | 35.2 | 1.54× |
| Vietnamese | Latin | 34.6 | 1.52× |
| Afrikaans | Latin | 34.4 | 1.51× |
| Chinese (Traditional) | Han (Traditional) | 34.3 | 1.50× |
| Turkish | Latin | 34.0 | 1.49× |
| Cantonese | Han (Traditional) | 34.0 | 1.49× |
| Egyptian Arabic | Arabic | 33.7 | 1.47× |
| Norwegian (Bokmål) | Latin | 33.4 | 1.46× |
| French | Latin | 33.3 | 1.46× |
| Spanish | Latin | 33.3 | 1.46× |
| Russian | Cyrillic | 33.0 | 1.45× |
| Arabic | Arabic | 32.8 | 1.43× |
| German | Latin | 31.9 | 1.40× |
| Javanese | Latin | 31.9 | 1.40× |
| Sundanese | Latin | 31.9 | 1.40× |
| Malay | Latin | 31.6 | 1.39× |
| Swedish | Latin | 31.5 | 1.38× |
| Danish | Latin | 31.4 | 1.38× |
| Dutch | Latin | 30.4 | 1.33× |
| Indonesian | Latin | 29.8 | 1.30× |
| Chinese (Simplified) | Han (Simplified) | 29.5 | 1.29× |
| Portuguese | Latin | 29.4 | 1.29× |
| English | Latin | 22.9 | 1.00× |
Sentences come from the FLORES-200 devtest set (NLLB Team, Meta AI), licensed CC BY-SA 4.0. 20 fixed sentences per language is a small sample, so read the ratios as a comparison between languages on this text, not as a promise for yours. Counts are exact for these two encodings; Claude, Gemini and other models use different tokenizers that may behave differently.
Models and tokenizers supported
Every model below is counted on each paste. “Exact” means the count comes from the provider's published tokenizer; “Estimate” means it is scaled from the GPT-4o count.
| Model | Provider | Tokenizer | Accuracy |
|---|---|---|---|
| GPT-4o | OpenAI | o200k_base | Exact |
| GPT-4o mini | OpenAI | o200k_base | Exact |
| GPT-4 / GPT-3.5 | OpenAI | cl100k_base | Exact |
| Claude Opus 5.5 | Anthropic | Claude tokenizer | Estimate |
| Claude Sonnet 5.5 | Anthropic | Claude tokenizer | Estimate |
| Claude Haiku 4.5 | Anthropic | Claude tokenizer | Estimate |
| Gemini 3.6 Flash | Gemini tokenizer | Estimate | |
| Gemini 3.1 Pro | Gemini tokenizer | Estimate | |
| DeepSeek V4-Flash | DeepSeek | DeepSeek tokenizer | Estimate |
| Llama 3 / 4 | Meta | Llama tokenizer | Estimate |
| Mistral Large | Mistral | Mistral tokenizer | Estimate |
| Grok | xAI | Grok tokenizer | Estimate |