Token Counter & Token Calculator
Paste text (or upload a file) to get the token count and see exactly what it costs to send
to GPT, Claude, Gemini, DeepSeek and 950+ other models — using a real BPE tokenizer
(o200k_base), not a word-count estimate. Everything runs in your browser; nothing is uploaded.
Counts are exact for OpenAI models (o200k_base is GPT-4o/4.1/5's tokenizer). For Claude, Gemini and other vendors — whose tokenizers are not public — treat the count as a close estimate (typically within ±15%).
Cost of this text across popular models
| Model | Input $/1M | Output $/1M | This text (input) | +500 output tokens |
|---|---|---|---|---|
| Genie 4 | 1.50 | 9.00 | $0 | $0 |
| Gemini 4 Neon | 3.00 | 15.00 | $0 | $0 |
| GPT-6.2 Sol | 2.00 | 10.00 | $0 | $0 |
| GPT-6.2 Astra | 8.00 | 40.00 | $0 | $0 |
| Qwen4 Max | 1.50 | 4.50 | $0 | $0 |
| Gemini 4 Hydrogen | 1.50 | 7.50 | $0 | $0 |
| Gemini 4 Carbon | 2.00 | 10.00 | $0 | $0 |
| Muse Ember | 0.10 | 0.50 | $0 | $0 |
Need a different model? Every priced model has its own calculator.
What is a token?
LLM APIs don't bill by word or character — they bill by token, the unit the model actually reads. A token is a common chunk of text: whole short words ("the", "and"), pieces of longer words ("token" + "izer"), punctuation, or whitespace. In English, one token averages about 4 characters or ¾ of a word, but the exact split depends on the tokenizer — which is why a real BPE count beats any rule of thumb.
This tool runs o200k_base, the byte-pair-encoding scheme used by OpenAI's current
models, directly in your browser. Your text never leaves the page.
FAQ
What is the difference between a token counter and a token calculator?
A token counter gives you the token count of a piece of text. A token calculator goes one step further and turns that count into money: it multiplies the input tokens (and the output tokens you expect back) by the model's per-1M-token price. This page does both: paste text for the token count, pick a model, and read the cost per request.
How accurate is this token counter?
For OpenAI models (GPT-4o, GPT-4.1, GPT-5 family) it is exact: we run the same o200k_base byte-pair encoding the API uses. Anthropic, Google and most other vendors do not publish their tokenizers, so for Claude, Gemini and others the o200k count is a close estimate — typically within about 15% of the billed figure.
Is my text uploaded anywhere?
No. The tokenizer is a JavaScript bundle that runs entirely in your browser. Nothing you paste or upload leaves your device — you can verify in your browser's network tab.
How is API cost calculated?
Cost = (input tokens ÷ 1,000,000) × the model's official input price, plus (expected output tokens ÷ 1,000,000) × the output price. Prices are official list prices in USD per million tokens, sourced from models.dev and LiteLLM and refreshed daily.
Why do tokens matter more than words?
Every LLM API bills per token, and context windows are measured in tokens. Two prompts with the same word count can differ meaningfully in tokens — code, non-English text and unusual formatting all tokenize differently.
How many tokens is a typical page of text?
A full English page (~500 words) is roughly 650-700 tokens. A rule of thumb is 1 token per 4 characters, but the whole point of this tool is that you don't need rules of thumb — paste the actual text and get the actual number.
Which models can I estimate costs for?
Every model in our comparison database that publishes pricing — 950+ models from OpenAI, Anthropic, Google, Meta, DeepSeek, Alibaba, Mistral, xAI and more. See the full sortable table on the Model Prices page, or jump straight to a per-model counter from the directory at the bottom of this page.
Looking for full price and performance data on all models? See the model comparison table.
Token counters by model
Every priced model gets its own token counter, pre-filled with its price — jump straight to one instead of picking it from the list above.
Jamba token counter (AI21 Labs)
Qwen token counter (Alibaba)
- QwQ Plus
- Qwen Flash
- Qwen MT Plus
- Qwen Max
- Qwen Plus
- Qwen Turbo
- Qwen-Omni Turbo
- Qwen-VL Max
- Qwen-VL Plus
- Qwen3 235B-A22B
- Qwen3 32B
- Qwen3 8B
- Qwen3 Coder Flash
- Qwen3 Coder Plus
- Qwen3 Max
- Qwen3 VL 235B A22B Instruct
- Qwen3 VL 235B A22B Thinking
- Qwen3-Coder 30B-A3B Instruct
- Qwen3-Coder 480B-A35B Instruct
- Qwen3-Next 80B-A3B (Thinking)
- Qwen3-Next 80B-A3B Instruct
- Qwen3-VL Plus
- Qwen3.5 122B-A10B
- Qwen3.5 27B
- Qwen3.5 35B-A3B
- Qwen3.5 397B-A17B
- Qwen3.5 Flash
- Qwen3.5 Plus
- Qwen3.6 27B
- Qwen3.6 35B-A3B
- Qwen3.6 Flash
- Qwen3.6 Max Preview
- Qwen3.6 Plus
- Qwen3.7 Flash
- Qwen3.7 Max
- Qwen3.7 Plus
- Qwen3.8 2.4T A95B
- Qwen3.8 27B
- Qwen3.8 Flash
- Qwen3.8 Max
- Qwen3.8 Max 0902
- Qwen3.8 Omni Flash
- Qwen4 Max
Nova token counter (Amazon)
Claude token counter (Anthropic)
- Claude Fable 5
- Claude Fable 5.1
- Claude Fable 5.2
- Claude Haiku 4.5
- Claude Haiku 4.5 (latest)
- Claude Haiku 5.5
- Claude Mythos 5
- Claude Mythos 5.1
- Claude Opus 4.5
- Claude Opus 4.5 (latest)
- Claude Opus 4.6
- Claude Opus 4.7
- Claude Opus 4.8
- Claude Opus 5
- Claude Opus 5.5
- Claude Sonnet 4.5
- Claude Sonnet 4.5 (latest)
- Claude Sonnet 4.6
- Claude Sonnet 5
- Claude Sonnet 5.5
Cohere token counters
DeepSeek token counters
Gemini token counter (Google)
- Deep Research Max Preview
- Gemini 2.5 Computer Use Preview
- Gemini 2.5 Flash
- Gemini 2.5 Flash Native Audio Preview 12-2025
- Gemini 2.5 Flash-Lite
- Gemini 2.5 Pro
- Gemini 3 Flash Preview
- Gemini 3.1 Flash Lite
- Gemini 3.1 Flash Lite Preview
- Gemini 3.1 Flash Live Preview
- Gemini 3.1 Flash TTS Preview
- Gemini 3.1 Pro Preview
- Gemini 3.1 Pro Preview Custom Tools
- Gemini 3.5 Flash
- Gemini 3.5 Flash Lite
- Gemini 3.5 Live Translate Preview
- Gemini 3.5 Transcribe
- Gemini 3.5 Transcribe Live
- Gemini 3.6 Flash
- Gemini 3.7 Flash
- Gemini 3.8 Flash
- Gemini 3.8 Flash Lite TTS
- Gemini 3.8 Flash TTS
- Gemini 3.8 Live
- Gemini 3.8 Live Extended Thinking
- Gemini 4 Argon
- Gemini 4 Carbon
- Gemini 4 Hydrogen
- Gemini 4 Neon
- Gemini Deep Research Preview
- Gemini Flash Latest
- Gemini Flash-Lite Latest
- Gemini Omni 1.1 Flash
- Gemini Omni 1.2 Flash
- Gemini Omni Flash Preview
- Gemini Robotics-ER 2 Preview
- Gemini Robotics-ER 2 Streaming Preview
- Genie 4
- Nano Banana
- Nano Banana 2
- Nano Banana 2 Lite
- Nano Banana 2.1
- Nano Banana Pro
Mercury token counter (Inception)
Llama token counter (Meta)
MiniMax token counters
Mistral token counters
- Codestral (latest)
- Codestral 25.08
- Devstral 2
- Devstral 2 (latest)
- Magistral Medium (latest)
- Ministral 3 14B
- Ministral 3 3B
- Ministral 3 8B
- Mistral Large (latest)
- Mistral Large 3
- Mistral Large 4
- Mistral Medium (latest)
- Mistral Medium 3
- Mistral Medium 3.5
- Mistral Small (latest)
- Mistral Small 3.2
- Mistral Small 4
- Pixtral 12B
- Voxtral Small (latest)
Kimi token counter (Moonshot AI)
Morph token counters
GPT token counter (OpenAI)
- GPT-3.5-turbo
- GPT-4
- GPT-4 Turbo
- GPT-4.1
- GPT-4.1 mini
- GPT-4.1 nano
- GPT-4o
- GPT-4o (2024-05-13)
- GPT-4o (2024-08-06)
- GPT-4o (2024-11-20)
- GPT-4o Mini Transcribe
- GPT-4o Transcribe
- GPT-4o Transcribe Diarize
- GPT-4o mini
- GPT-5
- GPT-5 Chat (latest)
- GPT-5 Mini
- GPT-5 Nano
- GPT-5 Pro
- GPT-5 Search API
- GPT-5-Codex
- GPT-5.1
- GPT-5.1 Chat
- GPT-5.1 Codex
- GPT-5.1 Codex Max
- GPT-5.1 Codex mini
- GPT-5.2
- GPT-5.2 Chat
- GPT-5.2 Codex
- GPT-5.2 Pro
- GPT-5.3 Chat (latest)
- GPT-5.3 Codex
- GPT-5.3 Codex Spark
- GPT-5.4
- GPT-5.4 Pro
- GPT-5.4 mini
- GPT-5.4 nano
- GPT-5.5
- GPT-5.5 Instant
- GPT-5.5 Pro
- GPT-5.6 Cyber
- GPT-5.6 Luna
- GPT-5.6 Sol
- GPT-5.6 Terra
- GPT-6 Astra
- GPT-6 Cyber
- GPT-6 Luna
- GPT-6 Sol
- GPT-6.1 Sol
- GPT-6.1 Terra
- GPT-6.2 Astra
- GPT-6.2 Sol
- GPT-Audio
- GPT-Audio Mini
- GPT-Audio-1.5
- GPT-Image-1.5
- GPT-Realtime
- GPT-Realtime Mini
- GPT-Realtime-1.5
- GPT-Realtime-2
- GPT-Realtime-2.1
- GPT-Realtime-2.1 Mini
- o1
- o1-pro
- o3
- o3-deep-research
- o3-mini
- o3-pro
- o4-mini
- o4-mini-deep-research