How do I estimate the tokens in my text?
Paste it into the input field. The estimated count is calculated immediately.
Is this free?
Yes. There's no signup, no length cap and no run limit, because the work happens on your own device rather than on a server we're metering.
Is my text uploaded anywhere?
Not by this tool. The estimate is calculated entirely client-side. Other tools on this site that rewrite or generate text send content to a server, and say so on those pages.
Does this match a specific model's exact token count?
No. Each model family uses its own tokenizer with its own vocabulary. This produces a reasonable estimate, not an exact match to any specific model.
Why might this differ from what a provider's API actually billed?
The API applied its own model-specific tokenizer, which splits text differently than a general estimate, particularly for code, symbols or non-English text.
What constitutes a token?
Roughly a word or a segment of a longer word, plus punctuation, which frequently counts separately. It is distinct from a character or word count.
Why do context windows matter?
A context window is the maximum token count a model can process at once, covering the prompt, prior conversation and the reply. Exceeding it causes content to be dropped or the request to fail.
Does source code tokenise differently than prose?
Yes. Symbols, indentation and unconventional identifiers tokenise differently across models, making a whitespace-based estimate less precise for code.
Does non-English text require more tokens?
It varies by language and model. Some languages tokenise less efficiently than English; others require fewer tokens for equivalent content.
Can this estimate be used to project API costs?
As a rough guide, yes. For an exact figure, use the token count a provider's own API response reports, since billing follows their tokenizer.
Is punctuation counted separately?
Frequently, yes, which is reflected in how this estimate treats punctuation apart from adjacent words.
Is there a length limit on this tool?
No. There is no length cap and no run limit.
Does it function on mobile devices?
Yes, the layout adapts and the estimate calculates identically on mobile.
Is it suitable for confidential or unpublished text?
Yes, nothing is transmitted or retained by this tool.
Why does adding one word sometimes change the count by more than one?
A long or uncommon word may split into multiple tokens, and its addition can also affect how adjacent punctuation is counted.
Is there a batch mode or an API?
Not currently. This is a single-document, browser-based tool with no account and no API.
Is this equivalent to a word count?
No, they are distinct units. Word count is typically lower, since many words map to multiple tokens and punctuation adds further tokens.
Can this figure be relied on for a strict limit?
Treat it as an early indicator rather than a guarantee. Near a hard limit, verify against the specific model's own tokenizer.
Does it store or retain submitted text?
No. Nothing is retained. Reloading the page clears the input.
Does the estimate change based on formatting like line breaks?
Yes, since whitespace, including line breaks, is one of the boundaries the estimate splits on.