Ask an AI model to work on a long document and a quiet question decides whether the job succeeds: does all of it fit in the space the model can hold in mind at once? That space is the context window. Send more than it holds and something has to give, usually in the middle of the conversation, when fixing it is most annoying.
This guide explains what a context window is, what shares it besides your text, and how the sizes compare. It uses the free Context Window Checker on Ovatly, which measures your text in tokens and shows, model by model, how much of each window it would fill. One limit up front: the window sizes come from a snapshot dated November 2026, and providers change their limits, so treat every figure as a planning number to verify, not a live fact.
Contents
- Quick answer
- What a context window is
- Tokens: the unit windows are measured in
- How much text actually fits
- How to check a window, step by step
- Worked example: a 12-token sentence against two windows
- Your input is not the only thing in the window
- Limitations
- Common mistakes
- FAQs
- Conclusion
Quick answer
A context window is the maximum number of tokens a model can consider at one time, and it has to hold everything: the system prompt, the conversation so far, your latest input and the reply the model is writing. To see how your text measures up, paste it into the Context Window Checker and click Check context fill. Each model in the table shows its window size, the percentage your text fills, and the tokens left spare. In the snapshot the tool ships with, GPT-4o's window is 128,000 tokens and Gemini Flash's is 1,000,000, so a normal prompt fills a fraction of a percent of either. Pick a model where your text fits with room left over for the reply.
What a context window is
Think of the window as the model's working memory for one conversation. The model can only reason over text that is inside it. Anything outside it, an earlier message that scrolled past the limit, a chapter you assumed it had read, might as well not exist.
That is why the window matters most at the extremes. A short question never comes close to any modern limit. A long document, a codebase extract or a full chat transcript can. The failure is easy to miss: the conversation continues, but part of your material is no longer in front of the model. Checking first is cheaper than discovering the gap afterwards.
Tokens: the unit windows are measured in
Windows are not measured in words or characters. They are measured in tokens, the chunks of text a model's tokenizer splits your writing into before processing. The checker counts your text with the GPT tokenizer (the o200k encoding), which has a consequence the tool states plainly: counts are exact for the GPT family and approximations for other families, whose tokenizers slice text slightly differently.
This is also why estimating by eye misleads. Dense technical text, code or repeated formatting does not convert at the same rate as plain prose, so a word count is a rough guess at best. Measuring the actual text replaces the guess with a number.
How much text actually fits
The honest answer is: far more than most people expect, until suddenly not enough. In the checker's snapshot table, GPT-4o offers 128,000 tokens and Gemini Flash offers 1,000,000. Against windows of that size, a prompt of a few hundred tokens is a rounding error, and even a long essay fills a small slice.
The fills become real at document scale. A full book chapter, a contract with appendices, a support transcript covering months: these run to tens of thousands of tokens and beyond, and that is where the bars in the checker start to matter. It is also where the differences between models stop being trivia. A text that strains a smaller window may sit comfortably in a larger one, which is the comparison the tool lays out side by side.
These two figures are examples from a dated snapshot, not permanent properties of the models; the tool labels its table accordingly.
How to check a window, step by step
- Paste the text you plan to send to a model into the Context Window Checker.
- Click Check context fill.
- Compare the fill bars: each model shows its window size, the percentage your text fills, and the spare tokens.
- Pick a model where the text fits with room left for the reply.
If a bar turns red, the text does not fit that model, and the tool states how many tokens you are over. That number tells you how much you need to trim, or how much bigger a window you need.
Worked example: a 12-token sentence against two windows
The tool's own example uses one sentence: "Prompt engineering is the practice of writing instructions for AI models." It is 12 tokens.
Against GPT-4o, with a window of 128,000 tokens, it fills 0.0094 percent and leaves 127,988 tokens spare. Against Gemini Flash, with a window of 1,000,000 tokens, it fills 0.0012 percent.
The percentages are tiny because real prompts are small next to modern windows; a full book chapter is where the bars start to matter. Read the example as a scale marker: your text would need to be thousands of times longer than that sentence before either window felt pressure.
Your input is not the only thing in the window
The check covers your input only, and a real conversation spends tokens on more than that. The system prompt takes a share before you type anything. Every earlier message in the thread is still in the window, still costing tokens. And the reply the model writes comes out of the same budget, which is why a text that technically fits can still produce a cut-short answer.
As a rough habit, avoid filling more than about 80 to 90 percent of a window with input if you want a long reply. That figure is guidance, not a rule from any provider, but the direction is sound: a fit with nothing left over is not really a fit.
Limitations
The window sizes come from a snapshot data table dated November 2026. Providers change limits, so verify with the provider before relying on a figure for budgeting or building. Token counts use the GPT tokenizer, so fills for other model families are approximations rather than exact counts. And the check measures the text you paste, not your whole conversation: it cannot see the system prompt or your chat history, so leave margin for both.
If your text does not fit anywhere, the options are the ones the tool itself points to: trim it (the Prompt Shortener can help), split it into parts, or choose a model with a larger window.
Common mistakes
- Estimating by word count. Tokens are not words, and dense or technical text converts at a different rate. Measure the real text instead.
- Treating the window as input-only space. The system prompt, earlier messages and the reply all draw on the same budget.
- Filling a window to 100 percent. A text that exactly fits leaves nothing for the answer. Leave 10 to 20 percent spare when you expect a long reply.
- Trusting window figures forever. The sizes in any table are a snapshot. Providers raise limits, and last year's figure may understate today's window.
- Assuming a fit means the model read everything well. Fitting is a size question. It says nothing about how evenly a model uses very long inputs, so structure long material clearly either way.
FAQs
What happens when text does not fit in a context window? In the checker, the model's bar turns red and the tool states how many tokens you are over. Trim the text (the Prompt Shortener can help), split it into parts, or choose a model with a larger window.
How much room should I leave for the reply? That depends on the answer you expect. As a rough habit, avoid filling more than about 80 to 90 percent of a window with input if you want a long reply, though this is guidance, not a rule from any provider.
Are the window sizes in the checker live? No. They are a labeled snapshot from November 2026. Providers raise limits over time, and the snapshot note on the tool says to verify before budgeting or building.
Is my text sent anywhere to check it? No. Counting and comparison happen in your browser, so the text you paste stays on your device.
Why do the percentages look so small for ordinary prompts? Because real prompts are small next to modern windows. In the tool's own example, a 12-token sentence fills 0.0094 percent of GPT-4o's 128,000-token window. A full book chapter is where the bars start to matter.
Conclusion
A context window is a budget, and like any budget it rewards a quick check before you spend. Measure your text in tokens, compare it against the windows on offer, and leave room for the reply. When you have a specific document in hand rather than a general question, the companion guide Will My Document Fit? Checking Text Against a Context Window walks through the check itself. For the full set of guides in this area, see the AI and Prompt Tools guides.