GlossaryUpdated
Context window
A context window is the amount of text an AI model can read and keep in mind at once, counting your messages, its replies, files and instructions, measured in tokens.
A context window is the amount of text an AI model can read and keep in mind at once. Everything in the conversation has to fit inside it: your messages, the AI's replies, any files you attached, and the instructions the tool gives the AI behind the scenes. It is measured in tokens, small pieces of words. When something falls outside the window, the AI cannot see it while it writes its next answer.
What it means for you at work
Think of the context window as a desk. The AI can only work with what is on the desk. A short question takes up a corner. A 60-page contract, a long email thread and an hour of back-and-forth can cover it.
You notice the context window in three situations:
- A long chat starts ignoring early instructions. The rule you gave in your second message has been summarized away or pushed out.
- A big file gets a vague answer. The AI may be reading only part of it, or the file left little room for anything else.
- The tool tells you the chat is too long. Some tools say it plainly and ask you to start again.
None of these means the AI is broken. It means the desk is full.
What counts toward the context window
Anthropic's developer documentation, read on 1 December 2026, lists what counts toward the window for its models: the system prompt (the tool's own instructions), every message in the conversation including tool results, images and documents, the definitions of any tools the AI can use, and the AI's own output, including its thinking when it reasons before answering. The same page describes the context window as everything the model can reference when it writes a response, including the response itself.
Two things follow from that list. Your files are not free: an attached spreadsheet or PDF takes space like any message. And the AI's long answers and reasoning use space too, so a chat full of long drafts fills faster than you would expect.
How big are context windows now?
Sizes change often and depend on the plan and the model, so treat these as a snapshot. Each one comes from the vendor's own page, read on 1 December 2026.
| Tool | What the vendor lists | | ----------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ChatGPT (OpenAI pricing page) | Instant mode: 27K tokens on Free, 54K on Go and Plus, 128K on Pro. Reasoning mode: varies on Free, 256K on Go and Plus, 400K on Pro | | Claude apps, paid plans (Anthropic help center) | 1M tokens for Claude Fable 5.2 and 5.1, Opus 5.5 and 5, Sonnet 5.5 and 5, and Haiku 5.5; 500K for Fable 5, Opus 4.8, 4.7 and 4.6, and Sonnet 4.6; 200K for other models | | Gemini app (Google Gemini Apps help) | 32k tokens with no plan, 128k on Google AI Plus, 1 million on Pro and Ultra |
For scale, Anthropic's help center says a 200K-token window holds about 500 pages of text. By the same measure, 1 million tokens is about 2,500 pages and 27K tokens is closer to 70 pages. That is why the same long file can work well in one plan and badly in another.
The numbers are not directly comparable across vendors, because each counts tokens a little differently and the tools also spend some of the window on their own instructions. Use them to judge the order of size, not to the last page.
What happens when it fills up
When a chat outgrows the window, the tool has to make room. It can stop and ask for a new chat, drop the oldest messages, or summarize them and carry on. The last option is called context compaction. Anthropic's help center, for example, says paid Claude plans with code execution turned on summarize earlier messages automatically when a conversation nears the limit, so most chats can keep going.
Developers see a harder edge. Anthropic's documentation says that if the input alone is larger than the window, its API returns a "prompt is too long" error, and on newer models an answer that reaches the limit simply stops.
Either way, what gets lost first is the early part of the chat, which is usually where your instructions were.
How to work within the context window
- Start a new chat for a new task. A clean chat with only what the job needs beats a long one full of old drafts.
- Put standing rules where they load every time. Custom instructions, project instructions or a saved skill do not depend on the chat history.
- Give the AI the part of the file it needs. Paste the relevant section or filter the spreadsheet first, instead of attaching the whole year.
- Let the tool search when the material is too big. For a whole drive or help centre, a tool that searches and passes in only the relevant parts works better. That is retrieval-augmented generation (RAG).
- Ask for a handover summary before a chat gets very long. Then continue in a new chat from the summary.
A prompt to check what the AI can see
Use this when you have attached a long file and want to know whether the AI really read all of it:
Before you answer, tell me what you can see of the file I attached:
the first heading or row, the last heading or row, and roughly how many pages or rows you have.
If any part is cut off or missing, say which part.
Then answer my question using only what you can see, and say if the answer could change with the missing part.
If the last heading it names is not the last heading in your file, the AI is working from part of it. Split the file, or ask about one section at a time.
Context window, memory and compaction
These three terms describe different things. The context window is the space the AI works in during one chat. Context compaction is what a tool does when that space fills up. Memory is information saved outside the chat on purpose, so the AI can read it back in a later chat. Choosing what goes into the window before the AI answers is context engineering. For data work, the Gemini prompts for data analysis and Claude prompts for data analysis packs show how to keep big spreadsheets inside the window, and the guided prompt for checking that AI understood your notes before it writes is the everyday version of the check above.
Context window in the news
- Qwen 27B's Full 256K Context Now Fits on a 24 GB Mac
Nov 5, 2026
- JDA-Zip Protocol Promises Deterministic Compression for LLM Context Windows
Oct 27, 2026
- OntoPrune Cuts 85% of LLM Context Tokens and Speeds CPU Inference 6.7x
Oct 5, 2026
- Claude's Context Compaction Problem: Why Practitioners Are Losing Trust
Jul 12, 2026
- Google's Gemini 4 Neon is now in the Gemini app for paid subscribers
Nov 21, 2026
- Agentic AI's Core Failure Mode: How Agents Lose the Plot
Nov 4, 2026
- The Claude Code Tooling Stack Is Filling In Fast
Nov 2, 2026
- The Headless Agent Stack Is Taking Shape
Oct 31, 2026
Questions
What is a context window in simple terms?
It is the AI's working space: everything it can read and keep in mind at one time. Your messages, its answers, any files you attached and its own instructions all have to fit in it. Anything outside it, the AI cannot see while it writes the next answer.
What is a token?
A token is the unit AI tools use to measure text: a small piece of a word, a short word, a number or a punctuation mark. Context windows are measured in tokens. Anthropic's help center gives a rough scale: 200K tokens is about 500 pages of text.
How big is the ChatGPT context window?
It depends on the plan and the mode. OpenAI's pricing page, read on 1 December 2026, lists 27K tokens for the Instant mode on Free, 54K on Go and Plus, and 128K on Pro. In the Reasoning mode it lists 256K on Go and Plus and 400K on Pro; on Free it says it varies.
How big is the Claude context window?
Anthropic's help center lists 1M tokens for its newest models when you chat on a paid plan (for example Claude Opus 5.5, Sonnet 5.5 and Haiku 5.5), 500K for some earlier ones, and 200K for models outside its list. Claude Code and Claude Cowork have their own tables on the same page.
How big is the Gemini context window?
Google's Gemini Apps help lists 32k tokens without a plan, 128k on Google AI Plus, and 1 million tokens on Pro and Ultra (read 1 December 2026).
What happens when the context window is full?
The tool has to do something with the oldest part of the chat. Some stop and ask you to start a new chat, some drop the oldest messages, and many summarize them and carry on, which is called context compaction. In each case, details from early in the chat can be lost.
Is a bigger context window always better?
Not always. A bigger window lets you work with longer files, but a long chat full of old drafts and side questions still gives the AI more to sort through. For most work, a clean chat with only what the task needs gives better answers than a full one.
Related terms
- Context compactionWhen a long AI chat is summarized to make room so it can keep going.
- RAGAI that looks things up in your files or the web before it answers.
- Context engineeringChoosing what you give AI to read, not only how you ask.
- Agent memoryWhat AI saves so it remembers you and your work next time.