In this guide
Tokens are the small chunks of text that AI language models read and produce. A token can be a whole short word, part of a longer word, a punctuation mark or a space. They matter because models process and limit text in tokens, not words, so tokens affect how much you can send, how long a reply can be, and often what a service charges.
What is a token?
A language model cannot work directly with letters or sentences. Before any processing, the text is split into pieces from a fixed list called the model's vocabulary. Each piece is a token, and each token is mapped to a number the model can compute with.
Common short words are often one token. Rare, long or unusual words are usually split into several. For example, a word like "unbelievable" might become pieces such as "un", "believ" and "able", though the exact split depends on the model's tokenizer. Do not memorise splits: different models split text differently.
This process is called tokenization. It is the first step in how a large language model handles your input, and the last step in reverse when it turns its output back into readable text.
Tokens versus words
As a rough guide for ordinary English, a token is usually somewhat shorter than a word, so a passage contains more tokens than words. The exact ratio varies by model and text, so treat any rule of thumb as approximate. Many providers offer a tokenizer tool or a usage display that shows exact counts for their model.
Things that tend to use more tokens than you expect:
- Other languages. Text in languages that the tokenizer handles less efficiently can use noticeably more tokens for the same meaning.
- Code. Symbols, indentation and unusual identifiers split into many tokens.
- Numbers and special characters. Long numbers, URLs and unusual formatting are often broken into many pieces.
- Typos and rare names. Unfamiliar strings fragment into small tokens.
Why tokens matter
Length limits
Every model has a maximum number of tokens it can handle in one go, covering both what you send and what it writes back. This limit is the context window. If a conversation or document exceeds it, something has to be cut, summarised or refused.
Cost and speed
Many AI services bill by token for input and output, and larger inputs and outputs take longer to process. Pricing differs between providers and changes often, so check the current documentation and pricing page rather than relying on older figures. If you are weighing options, free versus paid AI tools explains the usual differences in limits.
Behaviour
Tokenization explains some odd weaknesses. Because the model sees chunks rather than individual letters, tasks like counting the letters in a word or reversing a string can go wrong. It is not being lazy; it never saw the letters separately.
How to use fewer tokens
Short and clear prompts are not only cheaper, they are usually better. Practical steps:
- Cut filler. Remove greetings, repeated instructions and background the task does not need.
- Send only relevant material. Paste the section you need, not the whole document.
- Ask for a format that fits. "Three bullet points under 40 words each" limits output length.
- Summarise long threads. In a long chat, ask for a short summary and start a fresh conversation with it.
- Avoid repeating context. Put standing instructions once, in a single clear block.
This is part of good prompting generally. A structured approach is in how to write good AI prompts.
How to check token counts
- Use the token counter or tokenizer tool the model provider publishes.
- Look at the usage information your app or API returns after each request.
- When estimating, remember to count both your input and the reply you expect.
Counts differ between models, so a number from one tool does not transfer exactly to another.
A worked example
Suppose a model allows a fixed number of tokens in total. You paste a long report that uses most of that allowance and then ask for a detailed analysis. There is little room left for the reply, so the answer may be cut off or the request may fail. The fix is to paste only the relevant sections, or to split the work into stages, such as summarise each section first, then analyse the summaries.
To learn how this fits into practical AI skills, see how the QAM.AI programme is organised across its 8 stages.
Key takeaways
- Tokens are the chunks of text a model reads and writes, often parts of words.
- Token counts differ from word counts, and vary by language, model and content type.
- Input and output share a model's token limit, and many services charge per token.
- Shorter, focused prompts save tokens and usually improve results.
- Check the provider's tokenizer and current pricing documentation for exact figures.
Frequently asked questions
How many tokens are in a word?
It varies. Short common English words are often a single token, while long or rare words split into several. Use the provider's tokenizer tool for an exact count on your text.
Are tokens the same in every AI model?
No. Different models use different tokenizers, so the same sentence can produce different token counts. Compare numbers only within the same model family.
Why does AI struggle to count letters in a word?
The model sees tokens rather than individual letters, so letter-level tasks are not natural for it. Asking it to work step by step or using a code tool usually helps.
This guide is general educational information and is reviewed periodically. AI tools change quickly, so check each vendor's current documentation before relying on specific features or limits.