Count tokens in text with local tokenizers and compare the available model estimates.
List prices as of June 2026, per 1M tokens. Verify current rates with each provider.
| Model | Tokens | Total cost |
|---|---|---|
GPT-5 OpenAIexact | 119 | $0.00515 |
GPT-5 mini OpenAIexact | 119 | $0.00103 |
GPT-4.1 OpenAIexact | 119 | $0.00424 |
GPT-4o OpenAIexact | 119 | $0.00530 |
GPT-4o mini OpenAIexact | 119 | $0.00032 |
o3 / o4-mini OpenAIexact | 119 | $0.00424 |
GPT-4 Turbo OpenAIexact | 119 | $0.0162 |
GPT-3.5 Turbo OpenAIexact | 119 | $0.00081 |
Claude Opus 4 Anthropicest | 133 | $0.0132 |
Claude Sonnet 4 Anthropicest | 133 | $0.00790 |
Claude Haiku 4.5 Anthropicest | 133 | $0.00263 |
Gemini 3 Pro Googleest | 119 | $0.00624 |
Gemini 3 Flash Googleest | 119 | $0.00156 |
Gemini 2.0 Flash Googleest | 119 | $0.00021 |
Llama 3.1 405B Metaest | 126 | $0.00056 |
DeepSeek V3 DeepSeekest | 129 | $0.00058 |
Grok 4 xAIest | 123 | $0.00787 |
Mistral Large Mistralest | 129 | $0.00326 |
Measure a prompt or document excerpt before deciding how much text to include in a model request. Token boundaries differ from words and characters, so the selected tokenizer matters. Use the count as an input to planning rather than assuming all models tokenize identically.
Compare a short English paragraph with a code snippet of similar character length. Their token counts may differ substantially.
Some supported models use estimates. Plain-text counts do not include every message wrapper, tool definition, image, or other request overhead.
Paste the text you want to measure. Choose a model or tokenizer from the available options. Review the token count and any displayed estimate before planning your prompt.
Some supported models use estimates. Plain-text counts do not include every message wrapper, tool definition, image, or other request overhead.
No registration, no tracking of your content, no server uploads. Don't just take our word for it:
Your files and text are processed entirely on your device. Nothing is ever sent to us.
Once loaded, this tool keeps working with your Wi-Fi turned off. Try it.
Open your browser's DevTools → Network tab. You'll see zero requests carrying your data.
Discover other powerful utilities designed to supercharge your workflow and boost productivity.
Encode JWT header and payload data in a local workspace for development and inspection.
Decode a JWT header and payload locally to inspect the token's visible claims.
Turn JSON data into TypeScript interface declarations ready to review and copy.