Tokens Explained: Why AI Models Count Pieces of Words

Tokens Explained: Why AI Models Count Pieces of Words 1
⏱ 2 min readUpdated 13 October 2026

Every AI chat tool and API talks about tokens: limits in tokens, prices per million tokens. A token is simply the unit a language model reads and writes.

In this article
  1. What a token is
  2. Why it varies
  3. Why it matters
  4. Saving tokens

What a token is

Models don’t see letters or whole words. Their tokenizer splits text into common chunks. Frequent words are one token (“the”, “Excel”), rarer words are split (“reconciliation” might be 3–4 tokens), and spaces and punctuation are usually attached to the next chunk.

Advertisement

As a rough guide for English, 1 token ≈ ¾ of a word, so 1,000 words ≈ 1,300–1,400 tokens. The exact ratio depends on the model’s tokenizer.

Why it varies

  • Other languages: Hindi, Tamil and other scripts often need more tokens per word, because tokenizers saw less of them during training.
  • Code and numbers: symbols, indentation and long numbers split into many tokens.
  • Formatting: tables and JSON add tokens for every bracket and quote.

Why it matters

  • Price: APIs charge per input token (what you send) and per output token (what comes back) — output is usually several times more expensive.
  • Context window: the maximum tokens a model can consider at once — your prompt, documents and the conversation so far.
  • Speed: output is generated token by token, so long answers take longer.

Saving tokens

  • Send only the relevant part of a document (see RAG).
  • Ask for the format you need — “a 5-row table” — instead of an essay.
  • Remove repeated boilerplate from prompts you send thousands of times.

Want to see a tokenizer from the inside? Build one in lesson 2 of Build Your Own LLM.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong