Skip to main content
TokenCost logoTokenCost

Anthropic Token Counter

Count Anthropic tokens online and see what your text costs across all 13 models, including Claude Fable 5, Claude Opus 5 and Claude Opus 4.8. 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 (~).

ModelTokensInput CostOutput Cost
Claude Fable 5
Claude Opus 5
Claude Opus 4.8
Claude Opus 4.7
Claude Opus 4.6
Claude Opus 4.1
Claude Opus 4.5
Claude Sonnet 5
Claude Sonnet 4.6
Claude Sonnet 4.5
Claude Haiku 4.5
Claude Haiku 3.5
Claude 3.7 Sonnet

Type or paste text above to see token counts and per-request costs for every Anthropic model.

Anthropic Model Pricing

ModelInput /1MOutput /1M
Claude Fable 5$10.00$50.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.1$15.00$75.00
Claude Opus 4.5$5.00$25.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
Claude Haiku 3.5$0.800$4.00
Claude 3.7 Sonnet$3.00$15.00

Frequently Asked Questions

Common questions about counting Anthropic tokens

Related Tools