Explainer

Tokens and Context Windows, Explained Simply

What is a context window? A plain guide to AI tokens, how much text a model can hold at once, why limits matter and what happens when you run out.

Metal printing type sorted in a wooden type case at a historic print shop
Photo: P. Hughes / Wikimedia Commons, CC BY 4.0. Cropped and colour-treated.

A context window is the maximum amount of text an AI model can consider at one time, including your prompt, any files you attach, the conversation so far and the reply it is writing. It is measured in tokens, small chunks of text that average roughly three quarters of an English word.

Think of the context window as the model's working memory for a single conversation. Anything inside it, the model can "see". Anything that falls outside it, the model simply cannot use, no matter how important it was.

What is a token in AI?

A token is the basic unit a large language model works with. Before a model processes your text, a tool called a tokenizer chops it into pieces. Common short words like "the" or "cat" are usually one token each. Longer or rarer words get split into several, so "unbelievable" might become "un", "believ" and "able".

Spaces, punctuation and numbers count too. As a rule of thumb for English:

Amount of textApproximate tokens
One word1.3 tokens
One page (about 500 words)650 to 700 tokens
A 300-page novel120,000 to 150,000 tokens

Other languages often use more tokens for the same meaning. Text in Hindi, Tamil or other scripts that tokenizers saw less of during design can take noticeably more tokens than equivalent English, which can make the same task more expensive.

Why do AI models use tokens instead of words?

Splitting text into sub-word pieces gives the model a fixed, manageable vocabulary while still letting it handle any word, including typos, slang, names and code. A vocabulary of whole words would be enormous and would break on anything new. Tokens are a middle path between single letters and full words.

Tokens also matter for your wallet. AI companies price their developer services per million tokens, usually charging separately for input and output. Many chat apps also limit usage behind the scenes based on token counts.

What is a context window?

The context window is the total token budget for one exchange. It has to hold everything the model needs at once:

  • System instructions from the app
  • Your current message and any earlier messages in the chat
  • Documents, images or code you attach
  • The model's own answer as it is being written

If a model has a 200,000-token window and you paste in a 190,000-token report, only about 10,000 tokens remain for the conversation and the reply.

How big are context windows in 2026?

Context windows have grown dramatically. Early chatbots in 2022 and 2023 could hold only a few thousand tokens, roughly a short essay. By late 2026, flagship hosted models from OpenAI, Anthropic and Google commonly list windows of about 1 million tokens, enough for several long books or a sizeable codebase. Some open-weight models advertise even larger figures.

Exact limits change with each model release and can differ between the consumer chat app and the developer version of the same model. Check the provider's documentation for the current number.

What happens when you run out of context?

When a conversation outgrows the window, something has to give. Depending on the app, older messages may be dropped, summarized into a shorter note, or the app may ask you to start a new chat. That is why a long-running chat can suddenly "forget" instructions you gave at the start.

Some assistants now compress older parts of the conversation automatically so they can keep going. Compression saves space but can lose fine details.

Is a bigger context window always better?

Not necessarily. Researchers and providers have found that models do not use every part of a very long input equally well. Details buried in the middle of a huge document are more likely to be missed than details near the start or end. Independent testers have also noted that a model's advertised maximum is not always the length at which it stays reliable.

Long inputs also cost more and take longer to process. For many tasks, it works better to send only the relevant parts. That is the idea behind retrieval-augmented generation (RAG), which searches a large collection and feeds the model just the passages it needs.

How can you make the most of a context window?

  1. Trim what you paste. Remove boilerplate, repeated headers and sections that don't matter to your question.
  2. Put key instructions where they stand out. Restating the main request at the end of a long prompt often helps.
  3. Start fresh for new topics. A new chat gives the model a clean window and avoids confusion from old messages.
  4. Ask for summaries along the way. In long projects, ask the assistant to summarize decisions so far, then carry that summary into a new chat.
  5. Check answers drawn from long documents. Missed details can lead to wrong conclusions, a cousin of AI hallucinations.

Why It Matters

Tokens are the meter running behind every AI conversation, and understanding them changes how you use these tools. When a chatbot forgets your instructions halfway through a long session, it usually is not being careless. It has run out of room. Knowing that lets you fix the problem with a fresh chat or a short summary instead of fighting the tool.

The money side matters for anyone building with AI. Developer services charge per token, so bloated prompts and whole documents pasted by habit add up quickly. Indian businesses working in Hindi, Tamil or other regional languages face an extra cost, since the same message can use more tokens than English. That gap belongs in any budget, and it is a fair question to put to vendors.

Treat headline window sizes with some skepticism. A million-token limit is a ceiling, not a promise that the model reads every line carefully. For contracts, research or code where one missed detail matters, sending only the relevant sections and checking the answer remains the safer habit.

Frequently asked questions

How many words is 1 million tokens?

In English, roughly 750,000 words, which is around eight to ten average novels. The figure varies by language and writing style, and code or text in non-Latin scripts usually packs fewer words into each token.

Does the context window mean the AI remembers me?

No. The context window covers only the current conversation. Some assistants offer separate memory features that save facts between chats, but that is a different system. Once a conversation ends, its context is not automatically available to the next one.

How can I count tokens in my text?

Several AI companies offer free online tokenizer tools where you paste text and see the token count. Developers can also count tokens through official software libraries. For a quick estimate in English, divide the word count by 0.75.

Researched and written by The AI Telegraph staff and checked against primary sources. See our editorial policy. Spotted an error? Tell us.