# What are tokens in AI?

> A token is the unit of text a language model reads and writes. OpenAI estimates that 100 tokens are about 75 English words. Counts and limits by provider.

Canonical: https://promptlyfound.com/llms/tokens
Updated: 2026-11-20

## Short answer

A token is **the unit of text that a language model reads and writes**: a whole word, part of a word, a character or a punctuation mark. OpenAI estimates that 100 tokens are about 75 English words, and Google gives 60 to 80 words for Gemini. Context windows, output limits and prices are all counted in tokens.

## Key findings

- OpenAI estimates that, in English, 1 token is about 4 characters or three-quarters of a word, and 100 tokens are about 75 words. [1]
- Google says a Gemini token is about 4 characters, and 100 tokens are about 60 to 80 English words. [2]
- Claude Opus 4.7 and later models use a tokenizer that produces about 30% more tokens for the same text than earlier Claude models. [4]
- The current flagship models from Anthropic, OpenAI and Google accept about 1 million tokens of context. Their default output limits range from 65,536 to 128,000 tokens. [7]
- AI search products read a fixed number of words from each page.

Every limit that decides how much of your page an AI system reads is counted in tokens, and so is every model bill. Anthropic estimates an average 10 kB web page at about 2,500 tokens, and the search tools that Perplexity, OpenAI and Anthropic offer developers cap how much they take from search results. A token is the unit of text that a language model processes. The [OpenAI Help Center article on tokens](https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them) says a token can be a character, part of a word, a whole word or punctuation, and that spaces also affect how text is divided.[1] A model reads its input as a sequence of tokens and writes its answer one token at a time. [How large language models work](https://promptlyfound.com/llms/how-llms-work) explains that prediction loop.

## How tokenizers split text

Product names and other rare words are often split into several tokens, because tokenizers save single tokens for common words. A tokenizer converts text into tokens before the model sees it. Google's [Gemini documentation on tokens](https://ai.google.dev/gemini-api/docs/tokens) says tokens can be single characters, such as "z", or whole words, such as "cat". Long words are broken into several tokens. The set of all tokens a model uses is its vocabulary, and the process of splitting text into tokens is called tokenization.[2]

The [Claude Platform glossary](https://platform.claude.com/docs/en/about-claude/glossary) says tokens can correspond to words, subwords, characters or bytes. It describes a trade-off in vocabulary design. Larger tokens make inference and training more efficient. Smaller tokens let a model handle uncommon or new words.[3]

Most current tokenizers use subword units. In 2015, Rico Sennrich, Barry Haddow and Alexandra Birch proposed [encoding rare and unknown words as sequences of subword units](https://arxiv.org/abs/1508.07909), with a segmentation based on the byte pair encoding compression algorithm.[5] Common words become one token. A rare word, a product name or a long compound becomes several.

The same word can produce different tokens in different contexts. OpenAI says a word can be divided differently depending on its spelling, its capitalization and the text around it.[1]

## Tokens per word

The ratio of words to tokens differs by provider, so a cost or length estimate needs the ratio for the model you will use. Providers publish rough conversions for English text. OpenAI says the same text can produce different token counts depending on the model, its encoding and the language.[1]

  <thead><tr><th scope="col">Provider</th><th scope="col">Characters per token</th><th scope="col">Words per 100 tokens</th></tr></thead>
  <tbody>
    <tr><th scope="row">OpenAI</th><td>About 4</td><td>About 75</td></tr>
    <tr><th scope="row">Google (Gemini)</th><td>About 4</td><td>About 60 to 80</td></tr>
    <tr><th scope="row">Anthropic (Claude)</th><td>About 3.5 on models before Claude Opus 4.7; Claude Opus 4.7 and later produce about 30% more tokens</td><td>Not published</td></tr>
  </tbody>

OpenAI says 1 token is about 4 characters or three-quarters of a word, and 100 tokens are about 75 words. It adds that other languages can have different relationships between characters, words and tokens.[1] Google says a Gemini token is about 4 characters, and 100 tokens are about 60 to 80 English words.[2]

For its older tokenizer, Anthropic gives about 3.5 English characters per token.[3] The [Claude token counting documentation](https://platform.claude.com/docs/en/build-with-claude/token-counting) says Claude Opus 4.7 and later models use a newer tokenizer that produces about 30% more tokens for the same text. Anthropic tells developers to recount prompts with the model they plan to use.[4]

By these estimates, a 1,500-word article comes to about 2,000 tokens under OpenAI's ratio and 1,875 to 2,500 tokens under Google's. When the number matters, count with the provider's own token counter. The [token counter](https://promptlyfound.com/tools/token-counter) gives exact counts for OpenAI models and estimates for Claude and Gemini.

Images and audio count too. Google says all input to the Gemini API is tokenized. An image of 384 pixels or less in both dimensions counts as 258 tokens, and audio counts as 32 tokens per second.[2]

## Context windows and output limits

Current flagship models can work with about 1 million tokens in one request, and a retrieved page shares that space with everything else in the request. That limit is the context window. The [Claude documentation on context windows](https://platform.claude.com/docs/en/build-with-claude/context-windows) says everything in the request counts toward it: the system prompt, every message, tool results, documents and tool definitions. The output the model generates for the turn counts too.[6]

  <thead><tr><th scope="col">Models</th><th scope="col">Context window</th><th scope="col">Maximum output</th></tr></thead>
  <tbody>
    <tr><th scope="row">Claude Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5</th><td>1,000,000 tokens</td><td>128,000 tokens</td></tr>
    <tr><th scope="row">GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna</th><td>1.05 million tokens</td><td>128,000 tokens</td></tr>
    <tr><th scope="row">Gemini 4 models</th><td>1,048,576 tokens, shared by input, thinking and output</td><td>65,536 tokens by default for synchronous responses</td></tr>
    <tr><th scope="row">Gemini 3 and 2.5 models</th><td>1,048,576 input tokens</td><td>65,536 tokens, a separate budget</td></tr>
  </tbody>

The [Claude models overview](https://platform.claude.com/docs/en/about-claude/models/overview) lists a 1 million token context window and 128,000 tokens of output for each model in Anthropic's current lineup.[7] The [OpenAI models page](https://developers.openai.com/api/docs/models) lists a context window of 1.05 million tokens and 128,000 tokens of output for its flagship models.[8] Google says Gemini 4 models share one window of 1,048,576 tokens across input, thinking and output. Synchronous responses are capped at 65,536 output tokens by default, and a long decode mode can generate more.[2]

Under OpenAI's estimate, 1 million tokens hold about 750,000 English words. Model lineups change often, so check the provider's page before relying on a figure.

A larger window does not mean the model uses all of it equally well. Anthropic's documentation says accuracy and recall degrade as the token count grows, an effect it calls context rot.[6] A 2023 study found that models use information at the start and end of a long context more reliably than information in the middle. [How large language models work](https://promptlyfound.com/llms/how-llms-work) describes that study.

## How much of a page a model reads

AI search tools for developers read a capped extract of each result page, so a long page can be cut before the model sees all of it. These tools extract content from each result page and fit it into a token budget. The extracts share the context window with the prompt, other sources and the answer. Three providers document these budgets:

- Perplexity's [web search tool documentation](https://docs.perplexity.ai/docs/agent-api/tools/web-search) describes a `max_tokens` setting that caps total search context across results and a `max_tokens_per_page` setting that caps the content extracted from each result page. Default budgets apply when they are not set.[10]
- OpenAI's [web search documentation](https://developers.openai.com/api/docs/guides/tools-web-search) describes a `search_context_size` setting that controls how much context from search results the model receives before it answers. A separate default budget limits the tokens returned from a web search run, and developers can remove it.[11]
- Anthropic's [web fetch tool documentation](https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool) estimates an average 10 kB web page at about 2,500 tokens and a large 100 kB documentation page at about 25,000 tokens. A `max_content_tokens` setting truncates fetched content that exceeds the limit.[9]

Consumer products such as ChatGPT search, Google AI Mode and Perplexity do not publish their own per-page limits. In the developer tools, the extract from each page has a limit, and the limit is set in tokens.

> The points below follow from token budgets and the documented loss of accuracy in long contexts. No provider has published a test of them for web pages.

- Put a page's main facts first, so a truncated or partial extract still contains them.
- Cut boilerplate, repeated navigation text and long preambles. They use tokens and carry no information for the answer, so cutting them leaves more of the extract for the content that does.
- State each section's claim in its first sentence, so the section is still usable when the system extracts only part of the page. [Retrieval-augmented generation](https://promptlyfound.com/ai-search/rag) covers how pages are split into passages for retrieval.

## Sources

1. Understanding and counting tokens. OpenAI Help Center. https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them
2. Understand and count tokens. Google AI for Developers. https://ai.google.dev/gemini-api/docs/tokens
3. Glossary. Claude Platform Docs. https://platform.claude.com/docs/en/about-claude/glossary
4. Token counting. Claude Platform Docs. https://platform.claude.com/docs/en/build-with-claude/token-counting
5. Neural Machine Translation of Rare Words with Subword Units. arXiv (Sennrich, Haddow and Birch), 2015-08-31. https://arxiv.org/abs/1508.07909
6. Context windows. Claude Platform Docs. https://platform.claude.com/docs/en/build-with-claude/context-windows
7. Models overview. Claude Platform Docs. https://platform.claude.com/docs/en/about-claude/models/overview
8. Models. OpenAI API documentation. https://developers.openai.com/api/docs/models
9. Web fetch tool. Claude Platform Docs. https://platform.claude.com/docs/en/agents-and-tools/tool-use/web-fetch-tool
10. Web search tool. Perplexity API documentation. https://docs.perplexity.ai/docs/agent-api/tools/web-search
11. Web search. OpenAI API documentation. https://developers.openai.com/api/docs/guides/tools-web-search

---

This is a plain-text copy of https://promptlyfound.com/llms/tokens from Promptly Found. The web page is the canonical version and includes the charts.
