AI Token Counter
Count tokens for GPT, Claude and Gemini, then estimate your API cost — instantly and privately
| Model | Input / 1M | Output / 1M | This prompt |
|---|
Count tokens for GPT, Claude and Gemini, then estimate your API cost — instantly and privately
| Model | Input / 1M | Output / 1M | This prompt |
|---|
Large language models like GPT, Claude and Gemini do not read text as words or letters — they break it into tokens, small chunks that are often a few characters long. A token is roughly four characters or 0.75 words of English. Every API call is billed per token, and every model has a maximum context window measured in tokens, so knowing your token count tells you both how much a request will cost and whether it will fit.
Paste or type your prompt into the box above. The counter instantly shows the token count for the GPT-4o/GPT-5 tokenizer (o200k_base) and the older GPT-4/GPT-3.5 tokenizer (cl100k_base), along with character and word counts. The cost table then estimates what this text would cost as input across popular models. Everything runs locally in your browser using the real tiktoken vocabulary, so your text stays private.
Because tokenizers are trained mostly on English, languages such as Korean, Japanese and Chinese are split into many more tokens for the same meaning. A sentence that is 10 tokens in English can easily be 20–30 tokens in Korean. If you build apps for non-English users, this counter helps you see the real cost before you ship.