Skip to the content
Start free

Tokens (in AI)

Tokens are the small pieces of text an AI model reads and writes. OpenAI’s rule of thumb for English: 1 token is about 4 characters, or about three quarters of a word, so 100 tokens are about 75 words. Everything a large language model does is counted in tokens: how much it can read at once, how much it can write, and what it costs to use.

What is a token? #

A model does not read letters or whole words. It splits text into tokens: a short word may be one token, a long word several. Google says Gemini and other generative AI models process input and output “at a granularity called a token”. The split depends on the model’s tokenizer, so the same sentence can be a different number of tokens in different models. See natural language processing and generative AI.

How many words is a token? #

The companies give slightly different rules of thumb, because their tokenizers differ.

Company What it says
OpenAI 1 token is about 4 characters, or about three quarters of a word. 100 tokens are about 75 words.
Google (Gemini) A token is about 4 characters. 100 tokens are about 60 to 80 English words.
Anthropic (Claude) Claude Opus 4.7 and later models use a newer tokenizer: the same text gives about 30 percent more tokens than on earlier Claude models.

OpenAI also says other languages can have different relationships between characters, words and tokens. Treat every rule of thumb as an estimate.

Are pictures and sound tokens too? #

Yes. Google says that in Gemini, an image of up to 384 pixels in both dimensions counts as 258 tokens, and larger images are cut into 768 by 768 pixel tiles of 258 tokens each. Video counts as 263 tokens per second and audio as 32 tokens per second. So a page full of large images is not “free” for a model that reads them. See multimodal AI and alt text.

Why do tokens matter for AI answers? #

The context window is the most a model can work with in one request, and it is counted in tokens. Anthropic calls it the model’s “working memory” and says everything counts toward it: the system prompt, every message, tool results, images, documents and tool definitions, plus the answer itself. It also warns that more context is not automatically better: as the token count grows, accuracy and recall degrade, which it calls context rot. Short, clear pages are easier to use well.

AI search tools fetch pages, then pass parts of them to a model. That is how retrieval-augmented generation works: the system finds passages, often with embeddings and vector search, and feeds them to the model as tokens. The passage that answers the question has to be easy to find and short enough to fit. That is the same habit that helps a featured snippet: answer first, in plain words. See answer engine optimisation.

Who reads your page as tokens? #

We sort every visitor into five kinds: people, search engines, AI crawlers, AI agents and other machines. Only people read your page as a page. An AI crawler such as GPTBot fetches it to learn or to answer. A live fetcher fetches it for one person, right now. An AI agent may call your MCP server instead. Anthropic says tool definitions and tool results count toward the context window, so a short, clear tool answer leaves room for the rest. See tool use.

Tokens and grounding #

When an AI tool answers from pages it has just fetched, that is grounding. The model can only quote the tokens it was given. If your price or opening hours sit below the part that was passed on, the model never sees them, and it may fill the gap with an older fact or a guess. That is one route to an AI hallucination about your business. Facts near the top travel further.

Tokens and your page code #

A page is more than its words. Menus, footers, cookie notices and repeated links are text too. Some AI tools strip them, some do not, and you cannot see which. A clean copy of the page, such as a Markdown version, keeps the words that matter and drops the rest. So does putting the main content in plain HTML, not behind scripts.

Why do tokens cost money? #

Using a model through an API is priced per token. OpenAI says the rate depends on the model and token category, and that input, cached input and output tokens can have different prices. For reasoning models, it says to allow space for reasoning tokens as well as the visible answer. Anthropic says thinking tokens are billed as output tokens. This is why AI companies care how long pages are. See AI inference.

A worked example #

A law firm’s page on making a will runs to 1,800 words. Using OpenAI’s rule of thumb:

Part of the page Words Rough tokens (words divided by 0.75)
Opening answer: what a will costs and how long it takes 60 80
The firm’s history and team 540 720
The rest of the guide 1,200 1,600
Whole page 1,800 2,400

With Google’s rule of 60 to 80 words per 100 tokens, the same page is about 2,250 to 3,000 tokens. If a system only takes the first 800 or so tokens of the page, it gets the opening answer and the history, but not one word of the guide. Moving the history further down puts the guide inside that first slice.

Common mistakes #

  • Padding a page to look thorough. More tokens are not more value; see thin content and keyword stuffing.
  • Burying the answer under the company history.
  • Putting key facts only in images or in scripts. A crawler that does not run JavaScript misses them; see JavaScript SEO.
  • Reusing a token count measured on one model for another. Anthropic says to recount against the model you plan to use.
  • Leaving hidden instructions in page text, which an AI may read as tokens like any other. See prompt injection.

How to check it #

  1. Count the words with the word counter, then multiply by about 1.33 for a rough English token count.
  2. Estimate the cost of a page for a model with the AI token cost estimator.
  3. See how a page might be cut into passages with the RAG chunk previewer.
  4. For an exact count, paste the text into the token counter the AI company publishes for its own models. OpenAI’s help page links to its Tokenizer. Anthropic’s token counting endpoint is free to use, within rate limits, and gives an estimate. Google’s count_tokens counts the input only.
  5. Check the page has a clean copy for AI with the Markdown Version Checker, and check your llms.txt with the llms.txt Checker.
  6. Run the Readability and Plain English Checker in your browser. Plain words often mean fewer tokens for the same meaning.
  7. Check the outline with the Heading Checker, and give each heading a stable link with the Citation Anchor Checker. See citation anchor.
  8. See what bots that do not run JavaScript miss with the JavaScript SEO Checker.
  9. Look for hidden text or planted AI instructions with the Prompt Injection Checker.
  10. Get an overall score and fixes from the AI Readiness Checker, and check the page, schema, llms.txt and feeds agree with the AI Consistency Checker.

Single checks on each tool page: free, no account (2 a day). The full audit: a free account (sign in with an emailed code), 1 a day. In URSY Pro, opening in stages: the answer-first checker, Markdown copy coverage and what AI reads.

What URSY.com counts #

We do not count tokens. We count reads: a bot reading the same page 10 times is 10 requests, and “pages read” counts each address once. AI crawlers are sorted by name into training, search and fetch-for-a-person, and each request is checked against the company’s published IP list: real, fake or unknown. The rules are on our methodology page.

Questions #

How many tokens is a 1,000-word page? #

Roughly 1,333 by OpenAI’s rule of thumb, and about 1,250 to 1,670 by Google’s. Use the company’s own counter for an exact figure.

Do longer pages rank better in AI answers? #

Length alone is not the point. Anthropic says accuracy and recall degrade as context grows. A clear answer near the top is easier to find and to quote.

Is a token the same in every model? #

No. Each company uses its own tokenizer, and even one company’s models can differ, as Anthropic’s newer tokenizer shows.

Do images use tokens? #

Yes, when a model reads them. Google gives 258 tokens for a small image in Gemini, with larger images cut into tiles.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: Tokens (in AI). URSY. Updated 26 November 2026. https://ursy.com/wiki/ai-tokens/ · Section links

Tools for this

All 871 wiki entries, A to Z →