Token counter
Paste text to see how many tokens it is for any model in the catalog, and what it would cost as input. Counting runs in your browser: your text is never sent anywhere.
The counter needs JavaScript. The explanation and the model list below do not.
- Tokens
- 0
- Count
- —
- As input
- $0
- Context window used
- 0%
- Characters
- 0
- Words
- 0
- Lines
- 0
The same text on every model
Each family has its own tokenizer, so one text is a different number of tokens on different models. The cost is for sending this text as input at each model’s current rate, per its page.
| Model | Provider | Tokens | Count | As input |
|---|---|---|---|---|
| Qwen 3.7 Max | Alibaba (Qwen) | — | — | — |
| Qwen 3.8 Flash | Alibaba (Qwen) | — | — | — |
| Qwen 3.8 Max | Alibaba (Qwen) | — | — | — |
| Qwen 3.8 Omni Flash | Alibaba (Qwen) | — | — | — |
| Nova 2 Lite | Amazon | — | — | — |
| Nova 2 Pro | Amazon | — | — | — |
| Nova Lite | Amazon | — | — | — |
| Nova Micro | Amazon | — | — | — |
| Nova Pro | Amazon | — | — | — |
| Claude Fable 5 | Anthropic | — | — | — |
| Claude Fable 5 2 | Anthropic | — | — | — |
| Claude Fable 5.1 | Anthropic | — | — | — |
| Claude Haiku 4.5 | Anthropic | — | — | — |
| Claude Haiku 5.5 | Anthropic | — | — | — |
| Claude Opus 4.5 | Anthropic | — | — | — |
| Claude Opus 4.6 | Anthropic | — | — | — |
| Claude Opus 4.7 | Anthropic | — | — | — |
| Claude Opus 4.8 | Anthropic | — | — | — |
| Claude Opus 5 | Anthropic | — | — | — |
| Claude Opus 5.5 | Anthropic | — | — | — |
| Claude Sonnet 4.5 | Anthropic | — | — | — |
| Claude Sonnet 4.6 | Anthropic | — | — | — |
| Claude Sonnet 5 | Anthropic | — | — | — |
| Claude Sonnet 5.5 | Anthropic | — | — | — |
| Command A | Cohere | — | — | — |
| Command R | Cohere | — | — | — |
| Command R+ | Cohere | — | — | — |
| DeepSeek V4 Flash | DeepSeek | — | — | — |
| DeepSeek V4 Pro | DeepSeek | — | — | — |
| Gemini 2.5 Flash | — | — | — | |
| Gemini 2.5 Flash-Lite | — | — | — | |
| Gemini 2.5 Pro | — | — | — | |
| Gemini 3 Flash Preview | — | — | — | |
| Gemini 3.1 Flash Lite | — | — | — | |
| Gemini 3.1 Pro | — | — | — | |
| Gemini 3.5 Flash-Lite | — | — | — | |
| Gemini 3.6 Flash | — | — | — | |
| Gemini 3.8 Flash | — | — | — | |
| Gemini 4 Argon | — | — | — | |
| Gemini 4 Carbon | — | — | — | |
| Gemini 4 Hydrogen | — | — | — | |
| Mercury 2 | Inception | — | — | — |
| Mercury 2.5 | Inception | — | — | — |
| Muse Spark 1.3 | Meta | — | — | — |
| Muse Wonder 1.0 | Meta | — | — | — |
| MAI-Thinking-1 | Microsoft | — | — | — |
| MiniMax M2 | MiniMax | — | — | — |
| MiniMax M2.1 | MiniMax | — | — | — |
| MiniMax M2.5 | MiniMax | — | — | — |
| MiniMax M3 | MiniMax | — | — | — |
| Codestral 25.08 | Mistral AI | — | — | — |
| Mistral Large 3 | Mistral AI | — | — | — |
| Mistral Large 4 | Mistral AI | — | — | — |
| Mistral Large 4.0 | Mistral AI | — | — | — |
| Mistral Medium 3.5 | Mistral AI | — | — | — |
| Kimi K2.6 | Moonshot AI | — | — | — |
| Kimi K2.7 Code | Moonshot AI | — | — | — |
| Kimi K3 | Moonshot AI | — | — | — |
| Kimi K3.1 Pro | Moonshot AI | — | — | — |
| GPT-4.1 | OpenAI | — | — | — |
| GPT-4.1 Mini | OpenAI | — | — | — |
| GPT-4o | OpenAI | — | — | — |
| GPT-4o Mini | OpenAI | — | — | — |
| GPT-5 | OpenAI | — | — | — |
| GPT-5 Mini | OpenAI | — | — | — |
| GPT-5 Nano | OpenAI | — | — | — |
| GPT-5 Pro | OpenAI | — | — | — |
| GPT-5.1 | OpenAI | — | — | — |
| GPT-5.2 | OpenAI | — | — | — |
| GPT-5.2 Pro | OpenAI | — | — | — |
| GPT-5.4 | OpenAI | — | — | — |
| GPT-5.4 Mini | OpenAI | — | — | — |
| GPT-5.4 Nano | OpenAI | — | — | — |
| GPT-5.4 Pro | OpenAI | — | — | — |
| GPT-5.5 | OpenAI | — | — | — |
| GPT-5.5 Pro | OpenAI | — | — | — |
| GPT-5.6 Luna | OpenAI | — | — | — |
| GPT-5.6 Sol | OpenAI | — | — | — |
| GPT-5.6 Terra | OpenAI | — | — | — |
| GPT-6 Astra | OpenAI | — | — | — |
| GPT-6 Luna | OpenAI | — | — | — |
| GPT-6 Sol | OpenAI | — | — | — |
| GPT-6.1 Sol | OpenAI | — | — | — |
| GPT-6.1 Terra | OpenAI | — | — | — |
| o3 | OpenAI | — | — | — |
| o3-pro | OpenAI | — | — | — |
| Grok 3 | xAI | — | — | — |
| Grok 4 | xAI | — | — | — |
| Grok 4.1 Fast | xAI | — | — | — |
| Grok 4.20 | xAI | — | — | — |
| Grok 4.3 | xAI | — | — | — |
| Grok 4.5 | xAI | — | — | — |
| Grok 4.6 | xAI | — | — | — |
| Grok 4.7 | xAI | — | — | — |
| Grok Build 0.1 | xAI | — | — | — |
| MiMo V2.6 Flash | Xiaomi (MiMo) | — | — | — |
| MiMo V2.6 Pro | Xiaomi (MiMo) | — | — | — |
| GLM-4 32B | Z.ai (GLM) | — | — | — |
| GLM-4.5 | Z.ai (GLM) | — | — | — |
| GLM-4.5-Air | Z.ai (GLM) | — | — | — |
| GLM-4.5-AirX | Z.ai (GLM) | — | — | — |
| GLM-4.5-X | Z.ai (GLM) | — | — | — |
| GLM-4.6 | Z.ai (GLM) | — | — | — |
| GLM-4.7 | Z.ai (GLM) | — | — | — |
| GLM-5 | Z.ai (GLM) | — | — | — |
| GLM-5 Code | Z.ai (GLM) | — | — | — |
| GLM-5.1 | Z.ai (GLM) | — | — | — |
| GLM-5.2 | Z.ai (GLM) | — | — | — |
| GLM-5.3 | Z.ai (GLM) | — | — | — |
| GLM-5.3 Flash | Z.ai (GLM) | — | — | — |
What a token is
Language models read and bill in tokens: pieces of words rather than whole words. A short common word is usually one token; a long or rare word, a number or a line of code is several. As a rough guide, English text averages somewhere around four characters per token, and code and non-Latin scripts use more tokens for the same number of characters.
Exact and estimated counts
For OpenAI-family models this page runs the real tokenizer in your browser, so the count is exact for the text. For other families the vendor’s tokenizer is not available in a browser, so the count is an estimate from a calibrated characters-per-token ratio, and it is labeled as one.
What the count leaves out
Counts the text only. A real request also bills message framing, tool definitions and any images. The cost shown is for sending the text as input; the reply is billed separately as output tokens, usually at a higher rate. Cached input, batch discounts, long-context tiers and tool fees are not included. For a full estimate use the calculator.
Common questions
How many tokens is my text?
Paste it into the counter above. It shows the token count for the model you pick, and the same text on every model in the catalog, because each family has its own tokenizer.
Does my text leave my device?
No. The counting runs in your browser. The page sends your text nowhere, keeps it in no storage and puts none of it in the address. The only file it fetches is the tokenizer itself, from this site, the first time an OpenAI-family model needs it.
Are the token counts exact?
For OpenAI-family models the real tokenizer runs in your browser, so the count is exact for the text you pasted. For other families the vendor's tokenizer is not available in a browser, so the count is an estimate from a calibrated characters-per-token ratio and is labeled as one. Neither includes the message framing, tool definitions or images a real request also bills.
How much will this text cost?
The counter shows the cost of sending the text as input at the model's current rate. The reply is billed separately as output tokens, usually at a higher rate, and cached input, batch discounts, long-context tiers and tool fees are not included. The calculator on the home page includes them.