Last updated:
Paste a prompt, document or piece of code to estimate how many tokens it uses in ChatGPT (OpenAI GPT), Claude, Gemini, DeepSeek and open models such as Llama. The result is an estimate, and everything runs in your browser: your text is never sent anywhere.
Rule-of-thumb estimates (about 4 characters per token in English), not exact counts. Real counts depend on the tokenizer and the text. Anthropic states that Claude 4.7 and later models produce about 30% more tokens for the same text than earlier Claude models; the other factors are approximations. For an exact number use the provider’s own token counting tool.
What is a token?
Language models do not read letters or words. They read tokens: chunks of text such as a short word, part of a longer word, a number or a punctuation mark. As a rule of thumb, one token is about four characters or three quarters of a word in English, so 1,000 words come to roughly 1,300 tokens. Other languages, code and numbers usually need more tokens per word.
Why the same text gives different counts per model
Every model family has its own tokenizer, so the same text produces a different number of tokens. Anthropic notes that Claude 4.7 and later models use a newer tokenizer that produces approximately 30% more tokens for the same text than earlier Claude models. Token counts matter because context windows and API prices are both measured in tokens. Use the API cost calculator to turn a token count into dollars.
Frequently asked questions
How many tokens is 1,000 words?
About 1,300 tokens for English prose with a typical tokenizer. Code, other languages and text full of numbers can be 1.5 to 2 times higher.
Is this token counter exact?
No. It estimates from character counts. It is accurate enough to judge whether a text fits a context window or to budget API costs, but billing is always based on the provider’s own count.
Is my text stored or sent anywhere?
No. The calculation runs in your browser and nothing you paste leaves your device.
Source: Anthropic, Claude pricing documentation (tokenizer note).