Anthropic Token Counter
Count Anthropic tokens online and see what your text costs across all 15 models, including Claude Fable 5.2, Claude Fable 5.1 and Claude Fable 5. Everything runs in your browser and nothing you paste leaves the page. Counts are estimates made with the cl100k_base encoding, since Anthropic has not released a browser-ready tokenizer. Estimated counts are marked with a tilde (~).
| Model | Tokens | Input Cost | Output Cost |
|---|---|---|---|
| Claude Fable 5.2 | — | — | — |
| Claude Fable 5.1 | — | — | — |
| Claude Fable 5 | — | — | — |
| Claude Opus 5.5 | — | — | — |
| Claude Opus 5 | — | — | — |
| Claude Opus 4.8 | — | — | — |
| Claude Opus 4.7 | — | — | — |
| Claude Opus 4.6 | — | — | — |
| Claude Opus 4.5 | — | — | — |
| Claude Haiku 5.5 | — | — | — |
| Claude Sonnet 5.5 | — | — | — |
| Claude Sonnet 5 | — | — | — |
| Claude Sonnet 4.6 | — | — | — |
| Claude Sonnet 4.5 | — | — | — |
| Claude Haiku 4.5 | — | — | — |
Type or paste text above to see token counts and per-request costs for every Anthropic model.
Anthropic Model Pricing
| Model | Input /1M | Output /1M |
|---|---|---|
| Claude Fable 5.2 | $8.00 | $40.00 |
| Claude Fable 5.1 | $10.00 | $50.00 |
| Claude Fable 5 | $10.00 | $50.00 |
| Claude Opus 5.5 | $4.00 | $20.00 |
| Claude Opus 5 | $5.00 | $25.00 |
| Claude Opus 4.8 | $5.00 | $25.00 |
| Claude Opus 4.7 | $5.00 | $25.00 |
| Claude Opus 4.6 | $5.00 | $25.00 |
| Claude Opus 4.5 | $5.00 | $25.00 |
| Claude Haiku 5.5 | $0.100 | $0.500 |
| Claude Sonnet 5.5 | $2.00 | $10.00 |
| Claude Sonnet 5 | $2.00 | $10.00 |
| Claude Sonnet 4.6 | $3.00 | $15.00 |
| Claude Sonnet 4.5 | $3.00 | $15.00 |
| Claude Haiku 4.5 | $1.00 | $5.00 |
Frequently Asked Questions
Common questions about counting Anthropic tokens
Which tokenizer does Anthropic use?
Anthropic does not publish the Claude tokenizer, so no browser tool can count Claude tokens exactly. This counter estimates using OpenAI's cl100k_base encoding, which is usually close. For exact numbers, use the count_tokens endpoint in the Claude API.
Are these Anthropic token counts exact or estimated?
Estimated. Anthropic has not released its tokenizer for browser use, so this tool approximates counts with OpenAI's cl100k_base encoding. Estimates are usually close for English text but can drift for code, JSON, and non-English languages. Estimated counts are marked with a tilde (~).
How is Anthropic API cost calculated?
Cost equals tokens divided by one million, multiplied by the model's per-million-token rate. Each Anthropic model has separate input and output rates, and this page shows both: what your text would cost as a prompt (input) and what the same number of tokens would cost as a response (output).
Why do token counts matter for Anthropic API costs?
Anthropic bills API usage per token, not per word or character. A token is roughly 4 characters or about three quarters of a word in English. Knowing the token count of your prompts lets you predict spend, stay inside context windows, and compare Anthropic models like Claude Fable 5.2, Claude Fable 5.1 and Claude Fable 5 before you commit.