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. 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.
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 |