AI Tools › Token Counter for ChatGPT, Claude and Gemini
Token Counter for ChatGPT, Claude and Gemini
Paste a text: the number of tokens, characters and words shows up instantly, along with what this text costs in each API.
- Nothing is sent
- No API key
- Free, no limits
- No sign-up
Everything happens in your browser: your text is not sent to any AI or any server, and there is no account, no API key and no limit.
What is a token?
AI models do not read letters or words, but tokens: chunks of text a few characters long. A short, common word ("the", "house") is often a single token; a long or rare word is split into several. Spaces, punctuation and emojis count too. Check "Show the tokens" to see each token in color.
Tokens matter for two things: API billing (a price per million input and output tokens) and the context limit (how much text a model can read at once).
An exact count for GPT, an estimate for Claude and Gemini
The counter uses the o200k_base tokenizer, the one used by OpenAI's GPT-4o and later models, through the open source gpt-tokenizer library, loaded from this site. The count is therefore exact for those models. Anthropic and Google have not published their tokenizers for offline use: they offer token counting through their API (with a key). For Claude and Gemini, the number shown is an estimate: the real number may be a little different.
Do other languages use more tokens than English?
Often, yes, because tokenizers were trained mostly on English text: accented letters and words from other languages are split into pieces more often. Paste the same text in two languages to compare: the "characters per token" figure shows the gap.
To estimate a monthly budget (number of requests, caching), go to the API pricing calculator.
Frequently asked questions
Is my text sent anywhere?
No. The tool runs entirely in your browser, on your device: nothing is sent to ChatGPT, Claude, Gemini or to our servers, and nothing is saved. You can check it in the Network tab of your browser's developer tools.
How many tokens is a word?
It depends on the text and the language. Paste yours: the tool shows the exact number of tokens and the number of characters per token, which is better than a rule of thumb.
Is this counter exact for ChatGPT?
Yes for the text itself: it uses the same tokenizer (o200k_base) as recent GPT models. In a real conversation, a few formatting tokens are added (roles, system instructions).
Why does an emoji count as several tokens?
An emoji is encoded on several bytes, and the tokenizer often splits it into 2 to 4 tokens. Rare characters behave the same way.
Is there a size limit?
No, apart from your device's memory. A whole book works on a computer; the color view is limited to the first 3,000 tokens to stay smooth.
Related guides
- Why ChatGPT Gives Bad Answers (and How to Fix It)
- Summarize a PDF, Word File or Text With ChatGPT
- What Are Tokens in AI?
- What Is Claude Code?
- How Does Generative AI Work?
More AI tools
- Prompt generatorFill in a few fields, or pick a template if you like: your prompt builds itself as you type, ready to copy.
- Prompt improverPaste your prompt: the tool checks 12 points and tells you what to add to get better answers.
- API pricingEnter the size of your requests and your volume: the cost of each model is shown, from cheapest to most expensive.
- ChatGPT text cleanerNo more ** and ### in your documents: paste the text and get a clean version, or formatting ready for Word.
- Markdown to HTMLPaste some Markdown: you get the matching HTML code, a preview, or plain text without any marks.
- Image promptDescribe your subject, pick the style, the lighting and the framing: the prompt is tailored to the tool you use.