induwara.lk
induwara.lkAI · Reference

AI Context Window Comparison

Every current large language model, ranked by the size of its input context window — in tokens, and in real terms: words, A4 pages, and lines of code. Sort, filter by provider, and see which model can hold your whole document or codebase in one prompt. Every figure is cited to the provider's own docs.

By Induwara AshinsanaUpdated Jul 3, 2026
Compare context windows20 models
Vendor-cited · verified 2026-07-03
Largest context window
Llama 4 ScoutMeta

10,000,000 tokens

7,500,000 words — about 83 full-length novels in a single prompt.

Filters by model name or provider.

Providers
Real-world size shown as

≈ 0.75 words per token

WordsNotes
Llama 4 ScoutMeta10,000,00010M10,000,0007,500,000Headline 10M-token window; usable length varies by host and hardware.
Gemini 1.5 ProGoogle2,097,1522M8,1921,572,8642M-token input window — the largest generally-available hosted window.
Gemini 2.5 FlashGoogle1,048,5761M65,536786,432
Gemini 2.5 ProGoogle1,048,5761M65,536786,4321M-token input window (1,048,576 exact).
Claude Opus 4.8Anthropic1,000,0001M128,000750,0001M-token window (200K on the standard tier; 1M via the context-1m beta header).
Claude Sonnet 4.6Anthropic1,000,0001M64,000750,0001M-token window (200K standard; 1M via the context-1m beta header).
GPT-4.1OpenAI1,000,0001M32,768750,0001M-token input window; 32K max output.
GPT-4.1 miniOpenAI1,000,0001M32,768750,000
Llama 4 MaverickMeta1,000,0001M1,000,000750,000Open weights — output bounded by the 1M window; hosts often cap lower.
GPT-5OpenAI400,000400K128,000300,000
Grok 4xAI256,000256K64,000192,000
Claude 3.5 SonnetAnthropic200,000200K8,192150,000Standard 200K window shared across earlier Claude 3/3.5 models.
Claude Haiku 4.5Anthropic200,000200K64,000150,000
OpenAI o3OpenAI200,000200K100,000150,000Reasoning model — internal reasoning tokens share the window.
GPT-4oOpenAI128,000128K16,38496,000
Llama 3.3 70BMeta128,000128K128,00096,000Open weights — output bounded by the 128K context window.
DeepSeek-R1DeepSeek128,000128K8,19296,000Reasoning model — chain-of-thought tokens share the input window.
DeepSeek-V3DeepSeek128,000128K8,19296,000
Mistral Large 2Mistral128,000128K128,00096,000Open weights — output bounded by the 128K context window.
GPT-3.5 TurboOpenAI16,38516K4,09612,289

Context windows are each provider's own published figure (click a model to open its source). Word / page / code-line sizes are averages for English text — use the AI Token Counter for an exact count of your own text. Last verified 2026-07-03.

How it works

A model's context windowis the maximum amount of input it can read in a single request, measured in tokens. This tool lists the published window for each model and converts that raw token count into units you can reason about. Every window figure is taken verbatim from the provider's documentation — each row links to its source — and the whole table carries a 2026-07-03 verification date, because these limits change often.

The three real-world conversions use documented averages, kept identical to the site's AI Context Window Calculator so the numbers reconcile between tools:

  1. Words = round(tokens × 0.75). OpenAI's tokeniser guidance is that 1 token ≈ 4 English characters ≈ 0.75 words (100 tokens ≈ 75 words).
  2. A4 pages = round(words ÷ 500), taking a single-spaced A4 page of 11–12pt English prose as ≈ 500 words.
  3. Lines of code = round(tokens ÷ 10). Source code tokenises more densely than prose, so a flat ~10-tokens-per-line planning heuristic is used and labelled as an approximation.

Ranking is a pure sort on the static dataset. The default view is context window descending, with ties broken deterministically by provider order then model name, so the order never shifts between renders. The search box does a case-insensitive substring match on the model name and provider, and the provider chips filter the set without touching the conversion maths.

Because both conversions come from the same base ratio, they are internally consistent: words computed directly (tokens × 0.75) equal words computed through characters (tokens × 4 characters ÷ 5.33 characters-per-word) to the last decimal. The module ships acrossCheckWords()function that proves this equality, so the figures are reproducible rather than asserted. The table also shows each model's max output tokens — a separate, usually much smaller cap — because a huge input window paired with a small output limit is a frequent and expensive surprise.

Worked examples

Gemini 2.5 Pro — 1,048,576 tokens, in words

  1. Words: round(1,048,576 × 0.75) = 786,432
  2. A4 pages: round(786,432 ÷ 500) = 1,573
  3. That is roughly seven full-length novels in one prompt.
  4. Interpretation: enough to hold an entire book plus notes at once.

Claude 200K standard tier — in lines of code

  1. Lines of code: 200,000 ÷ 10 = 20,000 lines
  2. Words: 200,000 × 0.75 = 150,000
  3. A4 pages: 150,000 ÷ 500 = 300
  4. A 40,000-line codebase (> 20,000) would NOT fit — use the 1M beta window or chunk it.

GPT-4o — 128,000 tokens, in A4 pages

  1. Words: 128,000 × 0.75 = 96,000
  2. A4 pages: 96,000 ÷ 500 = 192
  3. Lines of code: 128,000 ÷ 10 = 12,800
  4. Ranked below the 1M-window models — the trade-off is explicit in the table.

Frequently asked questions

Sources & references

Every context-window and max-output figure was cross-checked against the provider docs above on 2026-07-03. The token-to-words, pages and code-line ratios are documented averages; use the AI Token Counter for an exact count of your own text.

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Spotted a window that's changed, or a model we should add?

Email me at [email protected] — most fixes ship within 24 hours.