Skip to the content
Start free

Context window

A context window is all the text an AI model can take into account at once when it writes an answer: its instructions, the conversation so far, any pages or documents it was given, and its own reply. It is measured in tokens, not words. When an AI assistant reads your web page to answer a question, your page shares that space with everything else in the request. So the facts that arrive early and clearly are the facts most likely to be used.

What is a context window? #

Anthropic’s documentation calls the context window a “working memory” for the model. It is separate from the large body of training data the model learned from. Google uses a similar picture: it says an analogy for the context window is short term memory. A large language model knows what it was trained on up to its knowledge cutoff. It can only use your current prices, opening hours or stock if they are put into this window.

How big is a context window? #

Sizes vary by model and change often, so always read the AI company’s own model page. As checked on 24 November 2026:

Company What its own documentation says
Anthropic (Claude) Current models have a 1 million token window. A single request can generate up to 128,000 output tokens. Some other models, including Claude Sonnet 4.5, have 200,000 tokens.
Google (Gemini) Many Gemini models have 1 million or more tokens. Google says 1 million tokens is about 50,000 lines of code, 8 average length English novels, or transcripts of over 200 average length podcast episodes.
OpenAI The context window limits the tokens a model can work with in a request, and models also have an output limit. OpenAI says to check each model’s documentation, because the limits differ.

OpenAI’s rule of thumb is that 100 tokens are about 75 English words. So 1 million tokens is roughly 750,000 words. That sounds huge, but bigger is not the whole story.

What fills the window? #

Anthropic lists everything that counts in one request:

  • the system prompt, which holds the assistant’s own instructions;
  • every message in the conversation, including tool results, images and documents, such as a web page the assistant fetched;
  • the definitions of any tools the assistant can use (see tool use);
  • the reply the model writes, including any thinking it does first.

Pictures count too. A page full of large images is not free space for a multimodal AI model that reads them. Thinking tokens from reasoning models also count, and Anthropic says they are billed as output tokens.

Is a bigger window better? #

Not automatically. Anthropic says that as the token count grows, accuracy and recall degrade, which it calls context rot. Its engineering team says models have an “attention budget”, and that context should be treated as a finite resource with diminishing returns. Google says its simple tests look for a single fact, and that with several facts to find, the model does not perform with the same accuracy. The lesson for a website: a short, clear page beats a long, padded one.

How does it work in a conversation? #

Each turn adds to the window. Anthropic says every user message and every reply builds up, and each reply becomes part of the input for the next turn. If the input alone is too big, its API refuses the request with a “prompt is too long” error. To keep long conversations going, Anthropic offers compaction, which summarises earlier parts of the conversation. Anthropic adds that chat apps such as claude.ai can also drop the oldest turns first. Either way, detail from early in a long chat can be lost.

AI search tools, such as ChatGPT search and Google AI Mode, fetch pages and pass parts of them to a model. That is retrieval-augmented generation: the system finds passages, often with embeddings and vector search, then places them in the window. One question can trigger several searches (see query fan-out), so your page competes for room with other sites’ pages. The passage that answers the question has to be easy to find and short enough to fit.

Why does it matter for AI answers? #

When an assistant answers from pages it has just read, that is grounding. The model can only quote what made it into the window. If your price sits under 1,500 words of menus and history, it may never be passed on, and the model may fill the gap with an older fact or a guess: an AI hallucination about your business. Google also says to put the question at the end of a long prompt. You do not control that part, but you do control where your answer sits on your page.

Who fills the window with your page? #

We sort every visitor into five kinds: people, search engines, AI crawlers, AI agents and other machines. People read your page in a browser; no window is involved. A search crawler such as Googlebot stores your page for an index. An AI crawler such as GPTBot reads it to learn or to answer. A live fetcher such as ChatGPT-User, or an AI agent, reads it for one person, right now, straight into a context window. An API or MCP call returns a tool result, which Anthropic says counts toward the window too.

A worked example #

A customer asks an assistant whether a bike shop repairs electric bikes. The assistant fetches the shop’s services page. The page runs to 2,000 words, but 1,700 of them are menus, a cookie notice, footer links and a newsletter pop-up. The answer, “Yes, we service electric bikes from most manufacturers”, sits near the bottom.

Part of the page Words Rough tokens (words divided by 0.75)
Menus, cookie notice, pop-up, footer 1,700 about 2,270
Services text, with the answer at the bottom 300 400
Whole page 2,000 about 2,670

If a tool keeps only the first 1,000 or so tokens of each page, it gets menus and boilerplate and never reaches the answer. Moving that sentence into the first paragraph, under a clear heading, means the fact arrives early and is hard to miss. The token figures use OpenAI’s rule of thumb and are estimates.

Common mistakes #

  • Padding a page to look thorough. More tokens are not more value; see thin content and keyword stuffing.
  • Putting the answer below the fold of the text, under the company history.
  • Hiding key facts in scripts or images. A bot that does not run scripts misses them; see JavaScript SEO.
  • Vague headings. Clear heading tags help a system cut the page into sensible passages.
  • Leaving hidden text that an AI may read as an instruction; see prompt injection.
  • Assuming the same limit for every model. Check the model you care about.

How to check it #

  1. Count the words in your page’s main text with the word counter. Multiply by about 1.33 for a rough English token count.
  2. Estimate what the page costs a model to read with the AI token cost estimator.
  3. See how a retrieval system might cut the page into passages with the RAG chunk previewer. Is the answer inside the first chunk?
  4. Check that the plain HTML holds your text, not only scripts, with the JavaScript SEO Checker.
  5. Check the page has a clean copy for AI with the Markdown Version Checker. A Markdown copy drops menus and footers, so less of the window is wasted.
  6. Give AI tools a short map of your site in an llms.txt file, and test it with the llms.txt Checker.
  7. Check the outline with the Heading Checker, and find headings that never get an answer with the heading answer gap finder.
  8. Give each heading a stable link with the Citation Anchor Checker, so an AI can cite the exact part. See citation anchor.
  9. Run the Readability and Plain English Checker. Plain words often mean fewer tokens for the same meaning.
  10. Look for hidden text or planted instructions with the Prompt Injection Checker.
  11. Get a score and fixes from the AI Readiness Checker, and check that page, schema, llms.txt and feeds state the same facts with the AI Consistency Checker.
  12. See which AI bots really read the page: drop your server log into the AI Crawler Log Analyser, and check a doubtful one with Verify an AI Bot.

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. Plans are on the pricing page.

What URSY.com counts #

We cannot see inside an AI company’s context window, so we do not claim to. 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 #

Is the context window the same as what the model knows? #

No. What a model knows comes from training. The context window is what it is looking at right now, for this one answer.

Does a 1 million token window mean the AI reads my whole site? #

No. The window is shared with instructions, the conversation, other sites’ pages and the reply. Search tools pass on passages, not whole sites.

Will a longer page get quoted more? #

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

Can I see how much of my page an AI used? #

Not directly. You can see which AI bots fetched it, and how often, from your logs. What happens inside the window stays with the AI company.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: Context window. URSY. Updated 26 November 2026. https://ursy.com/wiki/context-window/ · Section links

Tools for this

All 871 wiki entries, A to Z →