Token and context counter
Paste a prompt, a document or code. The count updates as you type, with how much of each model’s context window it fills and what sending it costs.
Paste text to see how it fits.
| Model | Context used | Input cost |
|---|
How the token estimate works
Counts by kind of text
English words, numbers, code symbols, line breaks and Chinese, Japanese or Korean characters each turn into tokens at different rates. The text is split by kind and each part is counted on its own.
Estimated, within about 10%
Each provider uses its own tokenizer, so exact counts differ by model. The estimate is usually within about 10% of provider counts for prose and code.
Your text stays here
Counting happens on this page as you type. Nothing you paste is sent, saved or logged.
Ready-made setups
Questions
How accurate is the token count?
It is an estimate, typically within about 10% of provider tokenizers for English prose and code. Emoji, rare scripts and unusual symbols can be further off. Use the provider’s own counter when you need an exact figure.
Why do different models give different token counts?
Each provider trains its own tokenizer with its own vocabulary, so the same text splits into slightly different pieces. Counts usually differ by a few percent between providers.
How many tokens is a word?
For English, about 1.3 tokens per word on average, or roughly 4 characters per token. Code and non-English text use more tokens per character.
Is the text I paste stored?
No. It is counted in this page and never sent. Clearing the box or closing the tab removes it.