Free tool · Build

Context Window Calculator

A model's context window is its short-term memory, measured in tokens. This tool turns that abstract number into something concrete, how many words, pages or minutes of transcript fit, and tells you whether your document will fit inside GPT, Claude or Gemini.

Unit
66,667
Tokens
50,000
Words
100
Pages
Does it fit?66,667 tokens
GPT-4o
128K tokens
uses ~52%
GPT-4o mini
128K tokens
uses ~52%
Claude Sonnet / Opus
200K tokens
uses ~33%
Gemini 2 Pro
1M tokens · some tiers up to 2M
uses ~7%
Gemini 2 Flash
1M tokens
uses ~7%
Llama (open weights)
128K tokens · typical build
uses ~52%
Small local model
8K tokens · many run 8K–32K
833% — too big

Leave headroom: the context window has to hold your prompt andthe model’s reply. Aim to fill no more than 70–80% with input so there is room to answer. Conversions are rough English-prose averages (1 token ≈ 4 characters ≈ 0.75 words); code, tables and other languages shift the ratio.

What a context window is

A context window is the maximum amount of text an AI model can consider at one time, measured in tokens. It is best understood as the model’s short-term working memory. On every single turn, that window has to hold four things at once: your prompt, any files or documents you paste in, the conversation so far, and the reply the model is about to write. When people say a model “has a 200K context window,” they mean all of that together cannot exceed roughly 200,000 tokens.

Unlike a human’s memory, this window is hard-edged. The model does not gradually forget older details — everything inside the window is available with equal access, and everything outside it simply does not exist as far as the model is concerned. That is why context size is one of the most practical numbers to know about any model: it decides, precisely, how much you can show it before something has to be left out.

Tokens vs words vs pages

Context windows are quoted in tokens, but most of us think in words or pages. The calculator above converts between them using the same rules of thumb our token counter uses for English prose:

  • 1 token ≈ 4 characters of English text
  • 1 token ≈ ¾ of a word — so 1,000 words ≈ 1,300 tokens
  • 1 page (~500 words) ≈ 650 tokens

Chain those together and the headline numbers become concrete. A 128K window is around 200 pages; 200K is around 300 pages, roughly a full-length novel; and 1M tokens is around 1,500 pages, or several books at once. Bear in mind these are averages for ordinary prose. Source code, JSON, spreadsheets, URLs, emoji and languages other than English pack more tokens per character, so they fit fewer pages into the same window. To count a specific document precisely, paste it into the token counter first.

Why a bigger window isn’t always better

It is tempting to treat context size as a simple “bigger is better” spec, like storage on a phone. In practice there are three catches.

First, attention is uneven. Research on long-context models keeps finding the same pattern, often called “lost in the middle”: models recall information placed at the very start or very end of a long input far more reliably than material buried in the middle. Filling a million-token window to the brim does not guarantee the model actually uses every part of it well.

Second, cost scales with tokens. Almost every API bills per token, so a prompt that stuffs 500K tokens of context into each call is dramatically more expensive than one that sends a tight 5K. Third, latency grows too: the more tokens a model has to read before it starts answering, the longer you wait for the first word. A focused, well-chosen context is usually faster, cheaper and more accurate than an enormous unfocused one.

Long context vs RAG

Once your material is bigger than a comfortable fraction of the window, you face a choice: paste everything and let the long context handle it, or retrieve only the relevant pieces and feed those in. The second approach is called retrieval-augmented generation, or RAG.

Long context wins when the task genuinely needs the whole document at once — summarising a contract end to end, reasoning across a full report, or holding a long conversation in mind. It is simple: no extra infrastructure, just paste and ask. RAG wins when you have far more material than any window could hold (a knowledge base, years of documents, an entire wiki) and each question only touches a small slice of it. Instead of sending everything every time, a retrieval step finds the handful of relevant passages and sends just those — cheaper, faster, and sidestepping the “lost in the middle” problem. Many real systems blend both: retrieve the right chunks, then rely on a large window to reason over them comfortably.

How much really fits

Consider a worked example. Say you want a model to read a 300-page book. At roughly 500 words a page, that is about 150,000 words, which at ¾ of a word per token comes to around 195,000 tokens. What can hold it?

  • A 128Kmodel (GPT-4o, a typical Llama build) cannot — the book is about 1.5× too large, so you would need to split it or switch to RAG.
  • Claude at 200K just fits it, with only a sliver of room left over — not enough headroom to also paste a second book or a long question, so plan for the reply.
  • Gemini at 1M swallows the book with room for four or five more like it, which is why million-token windows are pitched at whole-codebase and multi-document work.

The lesson from the calculator is always to leave headroom. If a 200,000-token document exactly fills a 200,000-token window, there is no space left for the model to write its answer. A safe habit is to keep input under about 70–80% of the window, so 30–40K tokens stay free for the response. To weigh windows against price, speed and capability across providers, compare them in our AI model comparison.

Frequently asked questions

What is a context window?

A context window is the maximum amount of text an AI model can hold in mind at once, measured in tokens. It covers everything the model considers on a single turn: your prompt, any documents you attach, the conversation so far, and the reply it generates. Think of it as the model's short-term working memory — anything that does not fit has to be summarised, truncated or dropped.

How many pages is 128K, 200K or 1M tokens?

Using the rule that one page (~500 words) is about 650 tokens: 128K tokens is roughly 200 pages, 200K tokens is roughly 300 pages (a full-length book), and 1M tokens is roughly 1,500 pages. These are English-prose estimates; dense code, tables or non-English text fit fewer pages per token.

Does a bigger context window mean better answers?

Not by itself. A larger window lets you paste more in, but models tend to attend less reliably to information buried in the middle of a very long input — the 'lost in the middle' effect. Big inputs also cost more tokens and take longer to process. Often a short, well-chosen context beats a huge, unfocused one.

What happens if I exceed the context window?

The model cannot simply read past its limit. Depending on the tool, it will either return an error, silently truncate the oldest or least relevant text, or drop the start of a long chat. Either way, information falls out of memory — so the model may 'forget' earlier instructions or miss parts of a document you thought it had read.

How do I count my tokens?

Paste your text into our token counter, which estimates the token count for GPT, Claude and Gemini and shows where each token boundary falls. As a shortcut, one token is about four characters or three-quarters of a word in English, so 1,000 words is roughly 1,300 tokens.

Which model should I use for a very long document?

Match the window to the job. Up to ~200 pages fits GPT-4o or a typical Llama build (128K); a full book fits Claude (200K); several books or an entire codebase call for Gemini's 1M-token window. To compare windows, pricing and strengths side by side, see our AI model comparison. And remember to leave headroom for the answer.

From the makers of these tools

Actually understand AI, one minute a day.

Scroll: Learn AI turns everything behind these tools into bite-sized lessons and quizzes. Free on iOS, Android coming soon.

Download on theApp Store
Coming soon toGoogle Play