ANTHROPIC MODEL TOKEN COUNTER

claude-sonnet-5 Token Counter

Count tokens for claude-sonnet-5 and estimate API cost before you send a request. Anthropic does not publish this tokenizer, so counts are calibrated estimates for planning. Your text never leaves the browser.

PROMPT

Paste text to count claude-sonnet-5 tokens.

Tokens

0

Words

0

Characters

0

Input cost

$0.00

Output cost

$0.00

Total request

$0.00

1,000,000 token context window 0%

Need optimization suggestions, a token heatmap, monthly cost projection, or a side-by-side model comparison? Open the full analyzer with claude-sonnet-5 preselected.

claude-sonnet-5 at a glance

Provider. Anthropic

Context window. 1,000,000 tokens (about 750,000 English words).

API pricing. $3.00 input / $15.00 output per 1M tokens.

Tokenizer. Not public; counts on this page are calibrated estimates.

Pricing source. The community-maintained LiteLLM pricing dataset, refreshed 2026-07-01. Community-tracked rates can lag provider changes; confirm with the provider before budgeting.

Other Anthropic model token counters

See the Claude Token Counter for all Anthropic models in one counter. Or browse the full model token counter directory and the LLM pricing comparison table to see how claude-sonnet-5 prices against other providers.

FAQ

claude-sonnet-5 token counter FAQ

How do I count tokens for claude-sonnet-5?

Paste your prompt into the counter on this page. Anthropic does not publish the claude-sonnet-5 tokenizer, so the count is a calibrated estimate based on text length, language, and structure. Treat it as planning guidance rather than an exact billing number.

How much does claude-sonnet-5 cost per token?

claude-sonnet-5 costs $3.00 per 1 million input tokens and $15.00 per 1 million output tokens, based on the community-maintained LiteLLM pricing dataset checked 2026-07-01.

What is the context window of claude-sonnet-5?

claude-sonnet-5 has a context window of 1,000,000 tokens, which is roughly 750,000 English words of combined prompt and response. The counter above shows how much of that window your text consumes.

Is this claude-sonnet-5 token count exact?

No. It is a clearly labeled estimate, because Anthropic has not released a public tokenizer for claude-sonnet-5. Estimates are usually within a reasonable range for English text but can drift for code, JSON, or non-English languages.