Every AI model can only consider a limited amount of text at once, called its context window. Hitting that limit is why long chats forget early details and big files get rejected. Measure your text with the AI token counter.
Quick answer: A context window is the maximum number of tokens a model can read and write in one go. Your instructions, any pasted documents, the conversation so far and the model's reply all count towards it. Windows now range from tens of thousands to over a million tokens, roughly 1,000 tokens to 750 English words. Bigger windows let you work with whole reports or codebases, but cost more per request and models can still miss details buried in the middle. Summarising, splitting and retrieving only the relevant parts often works better.
What fills the window
| Part | Example | Counts? |
|---|---|---|
| System instructions | Rules set by an app or by you | Yes |
| Chat history | Earlier messages and replies | Yes, until trimmed |
| Files and pasted text | A report, contract or code | Yes |
| Tool results | Search results, data from apps | Yes |
| The reply | The answer being written | Yes |
Rough sizes
| Window | Roughly | Fits |
|---|---|---|
| 8K tokens | 6,000 words | A long article |
| 128K tokens | 95,000 words | A full-length novel |
| 200K tokens | 150,000 words | Several long reports |
| 1M tokens | 750,000 words | A large codebase or a stack of books |
What happens at the limit
- Chat apps quietly drop or summarise older messages, so early details are forgotten.
- APIs reject requests that are too long, or cut off the reply.
- Very full windows can slow responses and increase cost, since you pay for every input token each time.
Working with long material
- Put key instructions last or repeat them near your question in very long prompts.
- Split and summarise: summarise each chapter, then work from the summaries.
- Retrieve, don't paste everything: search tools and retrieval systems send only the relevant passages.
- Start fresh chats for new tasks, with a short recap.
- Use caching on APIs that support it, so repeated long context costs less.
Bigger isn't always better
Studies of long-context models have found they recall information at the start and end of a long input better than in the middle. A well-chosen 20-page extract often beats pasting a 500-page archive. Estimate what long prompts cost with the AI API cost calculator and see AI API costs and tokens explained and how to write AI prompts. More tools are in the AI tools guide.
General information as at November 2026. Context window sizes change often.
Tokens to words
In English, one token is roughly three quarters of a word, so 1,000 tokens is about 750 words. That gives these rough sizes:
| Context window | About this many English words | Roughly |
|---|---|---|
| 8,000 tokens | 6,000 | A long report |
| 128,000 tokens | 96,000 | A full-length novel |
| 200,000 tokens | 150,000 | A long novel or a large set of documents |
| 1,000,000 tokens | 750,000 | Several books or a large codebase |
Code, tables and numbers often use more tokens per word than plain prose, so a document full of them fills the window faster. Check your own text with the AI token counter.
Frequently asked questions
What is a context window?
The maximum number of tokens an AI model can take in and produce in one request, including your prompt, files, history and reply.
How many words fit in a context window?
Roughly 750 English words per 1,000 tokens, so a 128K window holds about 95,000 words.
Why does a chatbot forget what I said earlier?
Long conversations exceed the window, so older messages are dropped or summarised.
Does a bigger context window mean better answers?
Not always. Models can miss details in the middle of very long inputs, and longer prompts cost more.
Does the reply count towards the window?
Yes. The output shares the same window as the input.
How can I work with documents that are too long?
Split them, summarise sections, or use retrieval to send only the relevant parts.
Do other languages use more tokens?
Often yes. Many languages written in other scripts, such as Urdu, Hindi or Arabic, use more tokens per word than English, so less text fits in the same window.
Does an uploaded file count towards the context window?
Yes. The text read from a file counts towards the window just like text you type.
Sources
Last updated: