How Claude tokenization works
Anthropic uses a proprietary tokenizer that is not publicly available, so no third-party tool can give exact offline Claude counts. Tools claiming exact Claude counts without an API call are estimating too.
Claude tokenization is broadly similar to other modern BPE tokenizers: roughly 4 characters per English token, with heavier tokenization for code and non-English text.
For exact counts, the Anthropic API offers a free count_tokens endpoint; this page is for instant, no-API-key planning.
Claude context windows in this catalog range from 200,000 tokens on Sonnet 4.5 and Haiku 4.5 up to 1 million tokens on the Claude 5 family, Opus 4.8, and Sonnet 4.6.