AI glossary · Models and context
What is a context window?
Also called: context length, context size, token limit
Definition
A context window is the maximum number of tokens a language model can work with in one request, counting the system prompt, tool definitions, conversation history, documents and the reply it writes.
Explained
How does a context window work?
In simple terms it is the model’s working memory for that request: anything outside it, the model cannot see. Our context windows guide goes further, into what happens when you exceed the limit and how long context affects quality.
Models read and write tokens, not words, and each request has a fixed budget of them. Everything you send counts: the system prompt, tool definitions, earlier turns, pasted documents and tool results. The reply counts too, including any hidden reasoning tokens, so the room you reserve with max output tokens has to fit as well.
The model keeps nothing between requests. A chat app re-sends the conversation every turn, so the window fills as you talk. If the input alone is too big, the API refuses it: OpenAI’s Responses API returns a 400 error by default, and Anthropic’s returns “prompt is too long”. Apps and agents stay inside the limit by dropping or summarising old turns, and the model then stops seeing what was removed.
Example
How many English words fit in a million-token window
Window sizes come from our daily data. To turn them into words we use measured ratios: 1,747 words of English from the Universal Declaration of Human Rights came to 2,017 tokens with OpenAI’s o200k_base tokenizer and 2,072 with Google’s token counter. Anthropic publishes its own figure for current Claude models.
Three windows of about a million tokens hold quite different amounts of text, because each tokenizer splits English differently. These are ceilings for plain prose: code, tables, JSON and most other languages use more tokens per word, and the reply has to fit in the same space. Check your own text with the context window checker.
| Model | Context window | Ratio used | About this many words |
|---|---|---|---|
| GPT-6.1 Sol | 1,050,000 tokens | 1,747 words = 2,017 tokens (o200k_base) | 909,000 |
| Gemini 3.8 Flash | 1,048,576 tokens | 1,747 words = 2,072 tokens (Gemini count) | 884,000 |
| Claude Sonnet 5.5 | 1,000,000 tokens | About 555,000 words per 1M tokens (Anthropic) | 555,000 |
Windows from our daily data, 2026-11-28. Ratios measured 2026-10-11 (the tokens to words converter has the full set) and from Anthropic’s models overview. Words rounded to the nearest thousand.
Cost and quality
Why does the context window matter?
The window caps what one request can see, but you pay for every token in it on every call, and long prompts take longer to start answering. Treat a big window as room, not a target: retrieve only the relevant passages with RAG, or cache a repeated prefix, rather than resending everything.
More context also isn’t free for quality. Anthropic’s docs say accuracy and recall degrade as the token count grows, which it calls “context rot”, so what you put in the window matters as much as how much fits.
Don’t mix up
Context window vs what the model knows: what’s the difference?
- Context window vs what the model knows
- What a model learned in training is not in the window, and nothing in the window is remembered after the request ends unless your app sends it again. Anthropic describes the window as the model’s “working memory”.
- Context window vs max output tokens
- The window is the whole budget for one request; max output tokens is a separate, much smaller cap on the reply, compared in full in the context windows guide.
FAQ
Questions people ask
How big is a 200K context window?
A 200,000-token window holds about 111,000 English words at Anthropic’s published ratio for current Claude models, or about 173,000 at our measured ratio for OpenAI’s o200k_base tokenizer: several hundred pages of prose. Code, tables and most other languages use more tokens per word, so less fits. The tokens to words converter works out the figure for other sizes.
What does a 1 million token context window mean?
It means one request can hold up to a million tokens of input and output together, about 866,000 English words at our measured o200k_base ratio. That is enough for a large codebase or several long books, but every token you send is billed, so a full window is expensive. The model comparison table lists each model’s window from our daily data.
What is a context window in simple terms?
It is how much text a model can look at in one go. Your instructions, the chat so far, any pasted documents and the model’s own reply must all fit inside it. When a conversation grows past it, older parts have to be dropped or summarised, and the model no longer sees them, which is why long chats can seem to forget early details.
Go deeper
Try it and read more
- Free toolContext Window CheckerSee whether your text fits each model’s context window.
- Free toolTokens to Words ConverterConvert between tokens, words and pages.
- Free toolAI Model ComparisonCompare prices, context windows and features across models.
- Guide · 12 min readContext windows explained: what counts, what happens at the limit, and how to check fitContext window explained: what counts toward it, context window vs max output and token limit, what happens when you exceed it, and when RAG beats long context.
Related