Claude Token Calculator
Count tokens and estimate the cost of Anthropic Claude Opus 4.5, Sonnet 4.5, Haiku 4.5, Opus 4.1/4, Sonnet 4, 3.7 Sonnet, 3.5 Sonnet/Haiku, 3 Opus and 3 Haiku — free tokenizer that runs in your browser.
How to use Claude Token Calculator
- Paste your text.
- Pick a Claude model (Opus 4.5, Sonnet 4.5, Haiku 4.5, and older).
- View token count and estimated USD cost.
Frequently asked questions
Which Claude models are supported?
Claude Opus 4.5, Sonnet 4.5, Haiku 4.5, Opus 4.1, Opus 4, Sonnet 4, Claude 3.7 Sonnet, 3.5 Sonnet, 3.5 Haiku, 3 Opus, and 3 Haiku.
How does Claude tokenize text?
Anthropic uses a BPE tokenizer similar to OpenAI's. The approximation is ~4 characters per token for English text.
How much does Claude Sonnet 4.5 cost per 1M tokens?
Approximately $3 for input and $15 for output per million tokens. Confirm current pricing on Anthropic's pricing page.
How much does Claude Opus 4.5 cost?
About $15 input and $75 output per 1M tokens — Anthropic's flagship tier.
Is Claude cheaper than GPT-5.5?
Claude Sonnet 4.5 is priced similarly to GPT-4o and cheaper than GPT-5.5. Claude Haiku 4.5 is cheaper still for high-volume workloads.