Tokens: how AI reads text

Why AI tools count tokens instead of words, how that explains limits, costs and a few odd mistakes, and what you can do about it in everyday use.

Beginner8 min readUpdated November 29, 2026

What a token is

AI language models do not read text letter by letter, and not exactly word by word either. Before a model sees your text, it is chopped into small pieces called tokens. A token can be a whole common word, part of a longer word, a single character, a punctuation mark or a chunk that includes the space in front of a word.

Common words usually get one token each. Longer or rarer words get split into several pieces. A name the model rarely saw might be broken into three or four fragments. Numbers, code and text in some languages are often split into more pieces than ordinary English prose.

OpenAI's help center gives a rough rule for English text: one token is about four characters, or about three quarters of a word, so 100 tokens is roughly 75 words. It stresses these are estimates, and that other languages and other models split text differently. That is a good way to hold it in your head: tokens are a bit smaller than words, and the exact count depends on the text and the model.

Why models use tokens at all

A model needs a fixed vocabulary of pieces it knows. If it worked only with whole words, it would need an impossibly large list and would be stuck on any word it had never seen. If it worked only with single letters, texts would become extremely long and harder to learn patterns from.

Tokens are the compromise. A vocabulary of word pieces can build any word, including new names, typos and words in other languages, while keeping common text compact. The model learns patterns over these pieces during training, and it writes its replies token by token too.

Why you should care

For most chats you never need to think about tokens. They start to matter in four situations.

  • Limits. Every model has a maximum amount of text it can handle at once, called its context window, and that limit is counted in tokens. Your messages, its replies, any pasted documents and any standing instructions all count. The next lesson covers context windows in detail.
  • Reply length. Models also have a limit on how much they can write in one reply. Very long outputs may stop partway, and you have to ask it to continue.
  • Cost. If you use AI through an API, as developers do, you usually pay per token, often at different rates for the text you send and the text it writes. OpenAI's token page says input and output tokens can be priced differently and points to its pricing page for current rates.
  • Usage limits in apps. Chat apps often have usage limits that depend on your plan. Long documents and long replies use more of whatever allowance you have.

How a reply is written, token by token

Tokens are not only how a model reads. They are also how it writes. A reply is produced one token at a time: the model looks at everything so far, picks the next token, adds it, and repeats. That is why replies in chat apps appear gradually, as if being typed.

This explains a couple of things you may have noticed.

  • Early choices shape the rest. Once the model has started a reply in a certain direction, say with "Yes, you can...", the following tokens tend to continue that direction. This is one reason asking for "the answer first, then the reasons" can help: you see the commitment immediately and can judge it.
  • It does not plan the whole reply in advance in the way a person might. Newer models are better at keeping long replies coherent, but very long outputs can still wander, repeat themselves or lose track of a list. Asking for a structure up front, such as numbered sections, gives the reply a frame to follow.

Some odd mistakes, explained

Tokens help explain a few mistakes that look strange from a model that otherwise seems very capable.

  • Counting letters. Ask how many times a letter appears in a long word and models sometimes get it wrong. The model never saw the word as separate letters, only as a few chunks, so counting characters is awkward for it.
  • Exact word counts. "Write exactly 100 words" often lands near 100 rather than on it. The model writes in tokens and does not keep a precise running word count.
  • Spelling rare names. An unusual surname may be split into odd pieces, which makes small spelling changes more likely. Check names carefully.
  • Long numbers. Numbers can be split into chunks in ways that do not match how we read digits, which is one reason precise arithmetic is a weak spot without a calculator or code tool.
  • Other languages. Text in some languages takes more tokens for the same meaning. Long documents in those languages hit limits sooner.

Newer models and tools have reduced some of these problems, often by quietly using a code tool for counting and arithmetic. But if exact counts or exact spelling matter, check them yourself.

Worked example: a document that is too long

Say you paste a long report and the tool says it is too long, or the reply only covers the first part. That is a token limit at work. Some ways to handle it:

Work in parts prompt
I'm going to paste a long report in three parts. After each part, reply only with "Got part 1" (or 2, or 3). After part 3, give me a summary of the whole report with the five most important findings.

This works if the whole report fits in the model's context window once all parts are in. If it does not, summarize in stages instead:

Summarize in stages prompt
Summarize this section of the report in about 150 words, keeping any numbers exactly as written. [paste one section]

Do that for each section in a fresh message or chat, then paste the section summaries together and ask for an overall summary. You lose some detail, but each step stays well within the limits, and keeping numbers exactly as written makes the final result easier to check.

Saving tokens without losing quality

You do not need to write telegraph-style prompts to save tokens. Clear sentences help the model. But a few habits keep long work efficient:

  • Paste only what is needed. If the question is about one chapter, paste that chapter.
  • Remove repeated boilerplate. Email signatures, legal footers and repeated headers in long threads add tokens without adding meaning.
  • Start a new chat for a new task. Old messages in a long chat keep counting toward the limit.
  • Ask for the length you need. If you want five bullets, say so, rather than getting a long reply and asking for a shorter one.

Tokens you do not see

Some newer models do extra working before they answer. OpenAI's help page calls these reasoning tokens: the model uses them internally before producing the visible answer, and they count toward usage even though you do not see them as text. So a short visible answer from such a model can use more tokens than its length suggests.

Chat apps also add text you never type: system instructions from the company, your custom instructions or memory if you use them, and the results of tools such as web search. All of it shares the same context window. That is part of why very long chats eventually feel slower or less focused.

Counting tokens

If you are curious or need precise numbers, OpenAI's help center points to its Tokenizer tool, which shows how a piece of text is split. Other model makers have their own tools and their own ways of splitting text, so a count from one model will not exactly match another.

For everyday use, the rough rule is enough. A one-page letter is a few hundred tokens. A long report can be tens of thousands. If you are working with documents that size, check the limits for the model you are using in its own documentation.

Try it

  1. Ask an assistant how many times the letter "r" appears in a long word of your choice, then count yourself.
  2. Ask it to write exactly 50 words on any topic, and count the result.
  3. If you have a long document, try the "summarize in stages" approach above and compare the result with a single summary request.

These small tests show where token-based reading helps and where it trips up, which makes you better at deciding when to check.

Questions people ask

Do images and files use tokens too?

In many tools, yes. OpenAI's token page notes that images and files can affect the input count in its API. How each app counts them varies, so check the documentation for your tool if limits matter.

Is a token the same in every AI model?

No. Each model family has its own way of splitting text, so the same sentence can be a different number of tokens in different models.

Should I write shorter prompts to save tokens?

Write prompts as long as they need to be to be clear. Cut repetition and irrelevant material, not useful context. A clear prompt that gets it right the first time uses fewer tokens than three vague attempts.

Why does the tool sometimes stop in the middle of a long answer?

It probably reached its limit for a single reply. Ask it to continue from where it stopped, or ask for the answer in parts from the start, for example one section per message.

Source: OpenAI Help Center: Understanding and counting tokens