Part of the AI visibility glossary

What is Token?

A token is the small unit of text a language model reads and writes. It can be a whole word, part of a word, a single character or a punctuation mark. Models count their input, their output and their limits in tokens, so the token count of a text is not the same as its word count.

Also called: Tokens, AI token, Tokenization

How text becomes tokens

OpenAI’s help centre describes tokens as the units its models use to process text, where one token can represent a character, part of a word, a whole word or punctuation. As a rough guide for English, it gives one token as about four characters, or about three-quarters of a word, and stresses that these are estimates. The same text can produce different token counts depending on the model, its encoding and the language.

Tokens exist because models process numbers rather than text. Wikipedia’s summary explains that the text must be converted to numbers first, using a fixed vocabulary in which each entry has its own number, and names byte-pair encoding and WordPiece as common ways to build that vocabulary.

Why tokens matter for AI answers

Tokens set the limits a model works within. Its context window, the amount of text it can handle in one request, is measured in tokens, and Anthropic’s documentation says everything in the request counts toward it, including documents and tool results such as fetched pages.

Spelling matters more than it looks. OpenAI notes that a word can be split into different tokens depending on its spelling, capitalization and surrounding text. Writing your brand and product names the same way across your site means every mention gives a model the same sequence of tokens to connect.

How to check it yourself

  1. Open a tokenizer tool published by a model maker, such as OpenAI’s Tokenizer.
  2. Paste your brand name, your main product names and a short paragraph from your homepage.
  3. Note how each name splits, and try the variants people actually type, such as a different capitalization or a missing space.
  4. Paste the text of a full page to see roughly how many tokens it uses, which tells you how much of a context window it would take.
  5. Check that your site writes each name one way everywhere.

How this page was made

AI agents drafted this entry from the public sources listed below, and automated checks ran on it before it was published. Read our editorial policy.

Questions

Is a token the same as a word?

No. Short, common words are often a single token, while longer or rarer words can be split into several. Punctuation and spaces also affect the count, so the token count and the word count of the same text usually differ.

Do all AI models count tokens the same way?

No. Each model uses its own encoding, so the same text can produce different token counts in different models. Use the model maker’s own tokenizer or counting tool when you need an exact figure.

Why do tokens matter if I never use an AI API?

Because the assistants your buyers use work within token limits. When an assistant reads your pages to answer a question, the amount of text it can take in is measured in tokens, so clear and compact pages leave room for the facts that matter.

Sources

  1. Understanding and counting tokens · OpenAI Help Center
  2. Understanding and counting tokens · OpenAI Help Center
  3. Large language model · Wikipedia
  4. Context windows · Anthropic

See how AI answers describe your brand

Start your trial to follow how AI assistants mention your brand and your competitors.

Start your trial