A private workspace for messages, project instructions, files and output headroom. Local estimates, clearly labeled.
gpt-tokenizer 3.x · o200k_base. Exact for this encoding only. No matching tokenizer has been verified for catalog models. This is not an exact API bill or Claude token count. Chat wrappers, tools and multimodal content can add overhead.
Add text to see token IDs.
Use Anthropic’s token counting endpoint from your own environment. It sends the content to Anthropic; this website does not submit it or collect an API key.
curl https://api.anthropic.com/v1/messages/count_tokens \ -H "x-api-key: $ANTHROPIC_API_KEY" \ -H "anthropic-version: 2023-06-01" \ -H "content-type: application/json" \ -d '{"model":"YOUR_MODEL_ID","messages":[{"role":"user","content":"Hello"}]}'
Text tokens are only one part of a request. Chat formatting, tool definitions, images and hidden provider overhead can change the billed total.
Only numeric counts and workload settings move to the calculator or comparison. Your text and file names never go into the URL.