Free tool

Token Counter

Count real tokens for your text, per Claude model — different models tokenize differently.

Get started
  • Real per-model API counts, not a single shared estimate.
  • Shows cost if that count were used as input or output, per model.
  • Falls back to a clearly-labeled approximate count if the API is briefly unavailable.
Get started

Frequently asked questions

Each model family uses its own tokenizer, so the same text can split into a different number of tokens depending on the model — Claude Sonnet 5 and Claude Haiku 4.5 will often report different counts for identical input.

Pricing comes from Costiva's admin-editable price list. Always confirm against Anthropic's official pricing page before making a purchasing decision.

This tool falls back to an approximate character-based estimate, clearly labeled as approximate, so you always get a number even during a brief outage.