Claude doesn't publish its tokenizer — here's how to estimate token counts and cost accurately before you send a request.
For Claude 5.5 models (Opus, Sonnet, Haiku), an exact token count requires Anthropic's own token counting (available through the API). For everyday budgeting, the free token counter on this site approximates Claude with the cl100k_base encoder — usually within a few percent for English prose — and shows the resulting cost per model instantly.
| Model | Input price / 1M tokens | Context window | Best for |
|---|---|---|---|
| Claude Opus 5.5 | $4.00 | 1M | Hard reasoning, long-form analysis |
| Claude Sonnet 5.5 | $2.00 | 1M | Default choice — quality/price sweet spot |
| Claude Haiku 5.5 | $0.10 | 1M | High-volume classification, extraction |
List input prices as of Nov 2026. Output tokens cost more; verify on anthropic.com/pricing.
Input price is only half the story — every request also pays for the output, and every multi-turn conversation re-sends the whole history as input:
| Workload | Tokens | Sonnet 5.5 input cost | Opus 5.5 input cost |
|---|---|---|---|
| Short chat turn | ≈ 2,000 | $0.004 | $0.008 |
| 20-page document review | ≈ 30,000 | $0.06 | $0.12 |
| Codebase slice | ≈ 200,000 | $0.40 | $0.80 |
| Near-full context | ≈ 900,000 | $1.80 | $3.60 |
The multi-turn trap: ten follow-up questions on a 30K-token document re-send roughly 30K tokens each turn, so the session costs ten times the first message — about $0.60 on Sonnet, before any output.
Chinese, Japanese and Korean text usually runs near one token per character — roughly 3–4× the token density of English. A “short” Chinese prompt can cost a long English one.
Indentation, brackets and JSON keys are token-dense. A 500-line file can exceed 5,000 tokens — count it before pasting a whole module into a conversation.
Long personality/instruction blocks are re-billed every turn. Trimming a 1,500-token system prompt to 400 tokens saves 1,100 input tokens × every request — the single cheapest optimisation in most Claude deployments.
Not exactly — Anthropic doesn't publish its tokenizer. This site approximates with cl100k_base and labels Claude rows as ≈. For billing-critical counts use Anthropic's API.
$2.00 input, $4.00 for Opus 5.5 and $0.10 for Haiku 5.5 (list prices, Nov 2026).
Different tokenizer vocabularies. Neither count is “wrong” — each is correct for its own provider.