What is a token in AI?
A token is the unit of text a language model reads and writes. It can be a whole word, part of a word, a space or a punctuation mark. Models have limits measured in tokens, and APIs charge by the token. That's why counting them matters more than counting words.
How many tokens is my text?
For ordinary English, use these rough conversions.
| Tokens | English words | About the length of |
|---|---|---|
| 100 | 75 | A short email |
| 1,000 | 750 | A page and a half |
| 10,000 | 7,500 | A long report |
| 100,000 | 75,000 | A novel |
Estimates drift quickly with code, tables, emoji or languages such as Hindi and Japanese. Paste the actual text when accuracy matters.
Why do token counts differ between models?
Each company trains its own tokenizer, so the same sentence splits differently. OpenAI publishes the one used by GPT-4o, and this counter runs it in your browser. Claude and Gemini don't publish an equivalent for browsers. Their counts here are estimates, marked as such, and can be off by 10% to 20%. For billing, use the vendor's own counting endpoint.
What counts toward the context window?
Everything you send does. That includes the system prompt, earlier messages, tool definitions, pasted documents and the space reserved for the reply. People often count the question and forget the rest.
If you're close to the limit, cut old chat turns first, then shorten documents. When the payload is structured, try the JSON token counter to see which keys take the most room. To turn tokens into money, move to the LLM cost calculator.