AI token counter
Paste text into this AI token counter to see characters, words and tokens side by side, with exact counts for OpenAI’s GPT-5 models, labelled estimates for Claude, Gemini, Mistral and Llama, and the cost of each request.
Free, no sign-up. Your text is counted in your browser, with no AI calls.
Your counts
Paste or type text to count it.
- Characters
- 0
- Words
- 0
- GPT-5 tokens, exact
- 0
- Characters per token
- 0
A token is the unit of text a language model reads and bills for: “Hello world, this is a test.” is 8 tokens on OpenAI’s GPT-5 models. OpenAI publishes that o200k encoding, so its counts here are exact. Claude, Gemini, Mistral and Llama counts are labelled estimates from each maker’s published rule, or a range where none exists.
How to use this tool
- Exact OpenAI counts
- OpenAI publishes o200k, the encoding its GPT-5 models use, and the open source gpt-tokenizer package implements it. gpt-oss uses a variant with the same token table. GPT-6 models get the same count marked not confirmed, because OpenAI has not published their encoding.
- Estimates for other makers
- Claude, Gemini and Mistral rows apply the rule of thumb each maker publishes, with a link to it. Anthropic gives about 3.5 characters per token and about 30 percent more tokens on Claude 4.7 and later. Google and Mistral give about 4. Where a maker publishes no rule, as with Meta’s Llama, the row shows a range.
- Cost per request
- Your tokens times the input price, plus the answer length you set times the output price, from the AIGROW model list and its check date. Long prompt rates, caching and batch discounts change the bill, and each model page lists them.
- Token highlighting
- The first 3,000 GPT-5 tokens are shaded in turn, so you can see where each one starts and ends. A space usually belongs to the word after it. Switch on token IDs to see the numbers the model receives.
- Your text stays here
- The tokenizer loads into your browser the first time you type and counts there. Nothing you paste is sent to a server or stored.
Questions before you start
See how AI assistants describe your business
Run the free visibility scan to check which sources assistants use. If you need regular monitoring, compare the plans before choosing one.