AI

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.

Input tokens
0
Output tokens
500
Estimated cost
$0.007500
Claude 3.5 Sonnet

How to use Claude Token Calculator

  1. Paste your text.
  2. Pick a Claude model (Opus 4.5, Sonnet 4.5, Haiku 4.5, and older).
  3. 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.

Related tools