---
title: "Context window"
description: "All the text an AI model can take into account at once: its instructions, the conversation, any pages it was given, and its own reply."
url: https://ursy.com/wiki/context-window/
updated: 2026-11-26T15:48:10+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/context-window/
---

# Context window

> All the text an AI model can take into account at once: its instructions, the conversation, any pages it was given, and its own reply.

**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](https://ursy.com/wiki/ai-tokens/), not words. When an [AI assistant](https://ursy.com/wiki/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? {#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](https://ursy.com/wiki/training-data/) the model learned from. [Google](https://ursy.com/wiki/google/) uses a similar picture: it says an analogy for the context window is short term memory. A [large language model](https://ursy.com/wiki/large-language-model/) knows what it was trained on up to its [knowledge cutoff](https://ursy.com/wiki/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? {#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? {#what-fills-the-window-2}

Anthropic lists everything that counts in one request:

- the [system prompt](https://ursy.com/wiki/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](https://ursy.com/wiki/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](https://ursy.com/wiki/multimodal-ai/) model that reads them. Thinking tokens from [reasoning models](https://ursy.com/wiki/reasoning-models/) also count, and Anthropic says they are billed as output tokens.

## Is a bigger window better? {#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? {#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](https://ursy.com/wiki/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.

## Why does it matter for search? {#why-does-it-matter-for-search}

[AI search](https://ursy.com/wiki/ai-search/) tools, such as [ChatGPT search](https://ursy.com/wiki/chatgpt-search/) and [Google AI Mode](https://ursy.com/wiki/google-ai-mode/), fetch pages and pass parts of them to a model. That is [retrieval-augmented generation](https://ursy.com/wiki/retrieval-augmented-generation/): the system finds passages, often with [embeddings](https://ursy.com/wiki/embeddings/) and [vector search](https://ursy.com/wiki/vector-search/), then places them in the window. One question can trigger several searches (see [query fan-out](https://ursy.com/wiki/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? {#why-does-it-matter-for-ai-answers}

When an assistant answers from pages it has just read, that is [grounding](https://ursy.com/wiki/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](https://ursy.com/wiki/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? {#who-fills-the-window-with-your-page}

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

## A worked example {#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](https://ursy.com/wiki/cookie/) notice, [footer links](https://ursy.com/wiki/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 {#common-mistakes}

- Padding a page to look thorough. More tokens are not more value; see [thin content](https://ursy.com/wiki/thin-content/) and [keyword stuffing](https://ursy.com/wiki/keyword-stuffing/).
- Putting the answer [below the fold](https://ursy.com/wiki/above-the-fold/) of the text, under the company history.
- Hiding key facts in scripts or images. A [bot](https://ursy.com/wiki/bot-web-robot/) that does not run scripts misses them; see [JavaScript SEO](https://ursy.com/wiki/javascript-seo/).
- Vague headings. Clear [heading tags](https://ursy.com/wiki/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](https://ursy.com/wiki/prompt-injection/).
- Assuming the same limit for every model. Check the model you care about.

## How to check it {#how-to-check-it}

1. Count the words in your page’s main text with the [word counter](https://ursy.com/webmaster-tools/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](https://ursy.com/webmaster-tools/ai-token-cost-estimator/).
3. See how a retrieval system might cut the page into passages with the [RAG chunk previewer](https://ursy.com/webmaster-tools/rag-chunk-previewer/). Is the answer inside the first chunk?
4. Check that the plain [HTML](https://ursy.com/wiki/html/) holds your text, not only scripts, with the [JavaScript SEO Checker](https://ursy.com/javascript-seo-checker/).
5. Check the page has a clean copy for AI with the [Markdown Version Checker](https://ursy.com/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](https://ursy.com/wiki/llms-txt/) file, and test it with the [llms.txt Checker](https://ursy.com/llms-txt-checker/).
7. Check the outline with the [Heading Checker](https://ursy.com/heading-checker/), and find headings that never get an answer with the [heading answer gap finder](https://ursy.com/webmaster-tools/heading-answer-gap-finder/).
8. Give each heading a stable link with the [Citation Anchor Checker](https://ursy.com/citation-anchor-checker/), so an AI can cite the exact part. See [citation anchor](https://ursy.com/wiki/citation-anchor/).
9. Run the [Readability and Plain English Checker](https://ursy.com/readability-checker/). Plain words often mean fewer tokens for the same meaning.
10. Look for hidden text or planted instructions with the [Prompt Injection Checker](https://ursy.com/prompt-injection-checker/).
11. Get a score and fixes from the [AI Readiness Checker](https://ursy.com/ai-readiness-checker/), and check that page, schema, llms.txt and feeds state the same facts with the [AI Consistency Checker](https://ursy.com/ai-consistency-checker/).
12. See which AI bots really read the page: drop your [server log](https://ursy.com/wiki/server-logs/) into the [AI Crawler Log Analyser](https://ursy.com/ai-crawler-log-analyzer/), and check a doubtful one with [Verify an AI Bot](https://ursy.com/verify-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](https://ursy.com/pro/answer-first-checker/), [Markdown copy coverage](https://ursy.com/pro/markdown-copy-coverage/) and [what AI reads](https://ursy.com/pro/what-ai-reads/). Plans are on the [pricing](https://ursy.com/pricing/) page.

## What URSY.com counts {#what-ursy-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](https://ursy.com/methodology/) page.

## Questions {#questions}

### Is the context window the same as what the model knows? {#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? {#does-a-1-million-token-window-mean-the-ai-reads-my-whole-sit}

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? {#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? {#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.

## Related words {#related-words}

- [Tokens (in AI)](https://ursy.com/wiki/ai-tokens/)
- [Large language model (LLM)](https://ursy.com/wiki/large-language-model/)
- [Retrieval-augmented generation (RAG)](https://ursy.com/wiki/retrieval-augmented-generation/)
- [Grounding](https://ursy.com/wiki/grounding/)
- [System prompt](https://ursy.com/wiki/system-prompt/)
- [Live fetcher](https://ursy.com/wiki/live-fetcher/)
- [Knowledge cutoff](https://ursy.com/wiki/knowledge-cutoff/)
- [llms.txt](https://ursy.com/wiki/llms-txt/)

## Sources {#sources}

- [Claude Docs: Context windows](https://platform.claude.com/docs/en/build-with-claude/context-windows), checked 24 November 2026
- [Anthropic Engineering: Effective context engineering for AI agents (29 September 2025)](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents), checked 24 November 2026
- [Google AI for developers: Long context](https://aistudio.google.com/docs/long-context), checked 24 November 2026
- [OpenAI Help Center: What are tokens and how to count them?](https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
