Token Counter
Count exact tokens for OpenAI models, and compare against Claude and Gemini estimates.
A token is the unit a language model actually reads — roughly 4 characters, or about 0.75 words of English. Providers bill per token and cap each request by token count, so the number matters for both cost and whether a prompt fits. This tool counts exactly for GPT models and estimates for Claude and Gemini.
44 characters · 9 words
gpt-4o, gpt-4o-mini, gpt-4.1, gpt-5 and newer
Exact Token Count
…
AI cost workflow
- Count tokens
- Check it fits
- Estimate cost
About Token Counter
Language models process text as tokens, not characters or words, and every provider bills by token count — so knowing how many tokens your prompt uses matters for both cost and context-window limits. This tool uses the real tiktoken byte-pair-encoding tokenizer (the same library OpenAI publishes) to give an exact count for GPT-4o, GPT-4.1, GPT-5, GPT-4, and GPT-3.5-turbo. Anthropic and Google don't publish an offline tokenizer, so Claude and Gemini counts shown here are estimates based on their own published characters-per-token guidance — clearly labeled as such, never presented as exact. Switch to Compare mode to see how the same text tokenizes across all four side by side, which is useful when deciding which model's context window a document will fit into.