How do I count tokens in my text?
Paste it into the box above. The estimated count appears immediately, with nothing to click and nothing uploaded.
Is this free?
Yes. No account, no paste limit, no length cap, since it runs on your own device.
Is my text uploaded anywhere?
No. The count is calculated entirely in your browser. Nothing is transmitted or logged.
Is this exactly what ChatGPT would count?
No. Each model family uses its own tokenizer with its own vocabulary. This is a reasonable estimate, not an exact match to any specific model.
Does it match Claude's or Gemini's count exactly?
No, for the same reason: every model's tokenizer differs. Use this as a planning figure, not the precise number a provider would bill.
Why doesn't my count match what an API actually charged?
The API used its own model-specific tokenizer, which splits text differently than a general estimate, especially for code, symbols or non-English text.
What counts as a token?
Roughly a word or a piece of a longer word, plus punctuation, which often counts separately. It isn't the same as a character or word count.
Why do context windows matter?
A context window is the maximum tokens a model can consider at once, covering your prompt, prior conversation and its reply. Go over it and content gets dropped or the request fails.
Does code tokenise differently than prose?
Yes. Symbols, indentation and unusual identifiers tokenise differently across models, so a word-based estimate is less precise for code.
Does non-English text use more tokens?
It varies by language and model. Some languages tokenise less efficiently than English; others use fewer tokens for the same content.
Can I use this to estimate API costs?
As a rough guide, yes. For an exact bill, use your provider's own reported token count, since pricing follows their tokenizer, not this estimate.
Does punctuation count separately?
Often, yes, which is part of why this estimate counts punctuation apart from the word next to it.
Does it work on long documents?
Yes. No length cap and no run limit.
Does it work on mobile?
Yes, the same way in any modern mobile browser.
Is it safe for confidential text?
Yes, nothing leaves your browser.
Why does adding one word change the count by more than one?
A long or uncommon word can split into several tokens, and it can also change how nearby punctuation is counted.
Is there a batch mode or API?
Not yet. For several documents, paste and read the count for each in turn.
Do I need an extension or install?
No. It's a web page. Open it, paste, read the count.
Is this the same as a word count?
No, they're different units. Word count is usually lower, since many words split into multiple tokens and punctuation adds more.
Can I rely on this for a strict limit?
Treat it as an early warning rather than a guarantee. Near a hard limit, verify with the specific model's own tokenizer.
Does the estimate update as I type, or only once I finish?
It updates continuously as you paste or type, so you can watch the count change in real time rather than waiting for a separate step.