AI Tools
AI Token Counter
See how many tokens your prompt uses for GPT, Claude, and Gemini, and whether it fits each model's context window.
Count tokens in three steps
- 01
Paste your textA prompt, document, code, or a whole chat transcript. Nothing is uploaded.
- 02
Read the countsOpenAI tokenizers are counted exactly. Claude, Gemini, and GPT-6 are labeled estimates.
- 03
Check the fitSee how much of each model's context window your text would use.
Why counts differ by model
Text o200k_base cl100k_base
日本語 2 tokens 4 tokens
👋🏽 4 tokens 6 tokens
Supercalifragilisticexpialidocious
10 tokens 11 tokens
Each tokenizer splits text with its own vocabulary, so the same prompt uses a different number of tokens on each model. Non-English text and emoji differ the most.
Frequently asked questions
Which counts are exact?
The two OpenAI tokenizers, o200k_base (GPT-5, GPT-4.1, GPT-4o, o-series) and cl100k_base (GPT-4, GPT-3.5 Turbo), are counted with OpenAI's published vocabulary and match OpenAI's own tiktoken library token for token.
Why are Claude and Gemini estimates?
Anthropic and Google don't publish their tokenizers for offline use. Exact counts come from their APIs: Claude's count_tokens endpoint and Gemini's countTokens. The estimates here follow each provider's own guidance and say how they're calculated.
Why is GPT-6 an estimate?
OpenAI hasn't published GPT-6's tokenizer, and OpenAI's tiktoken library doesn't support it yet. The page shows the o200k_base count as a guide until it does.
Is my text sent anywhere?
No. The page downloads the tokenizer vocabulary from this site once, then counts on your device. Your text never leaves the browser tab.
How current are the model limits?
Context windows come from each provider's documentation, checked on the date shown under the table, with links to the sources. Providers change models often, so check the source before relying on a limit.