Will your prompt fit? Check context windows across 20+ frontier LLMs.

Paste text or drop a file. We'll show you which models can accept it and what each one costs per call.

How this checker works

Three numbers decide whether your text fits a model: how many tokens it becomes, how large that model's context window is, and how much of the window you need to leave free for the reply. The first is the only one that requires real work, because there is no universal answer — the same string becomes a different number of tokens on every model family.

Token counts: one family exact, the rest calibrated estimates

For OpenAI models we run the real thing. The o200k_base tokenizer is loaded in your browser and your text is encoded with it, so the count is not an approximation — it is what the API will bill you for. Anthropic, Google, and Meta do not publish a client-side tokenizer, so for those families we estimate from a characters-per-token ratio measured on mixed English and code:

Characters-per-token ratios used for each model family
Model familyMethodChars / token
OpenAI (GPT)Exact — o200k_base tokenizern/a
Anthropic (Claude)Estimated3.5
Google (Gemini)Estimated4
Meta (Llama)Estimated3.7
Everything elseEstimated — fallback ratio4

Ratios last calibrated 2026-05-07. Estimated rows are badged in the results table so you always know which of the two you are looking at. Treat an estimate as accurate to within a few percent on prose, and as less reliable on dense code, JSON, or non-Latin scripts, all of which tokenize more expensively than English.

Why the verdict is not simply “fits” or “doesn't”

The model writes its answer into the same window your input occupies, so a prompt that technically fits can still fail the moment the reply runs long. We score against input plus a reserved response budget — the slider in the tool — and report three states rather than two:

  • Fits — under 50% of the window used. Room for a long reply and a few follow-up turns.
  • Tight — 50% to 95%. It will go through, but a multi-turn conversation will not, and quality on some models degrades well before the hard limit.
  • Over — 95% or more. Expect truncation or an API error. Split the input or move to a larger window.

How the cost figure is built

Cost is input tokens at the model's input rate plus your reserved response budget at its output rate, both per million tokens, for a single call. Two deliberate omissions: we do not apply prompt-caching discounts and we do not apply batch pricing, because both depend on how you call the API rather than on what you are sending. The number you see is therefore the conservative one — the ceiling for one uncached, non-batched request. If you cache a long system prompt across many calls, your real cost will be meaningfully lower.

Window sizes, output limits, and prices come from the same hand-maintained catalog behind the LLM picker, checked against each provider's own pricing and model documentation. Last verified 2026-08-16. Providers change prices without notice, so if you spot a stale figure, tell us — those corrections ship as code changes, usually within a day.

Your text never leaves your browser

Tokenization, fit scoring, and the cost arithmetic all run on your device. Files are parsed locally too — PDFs and Word documents are read in the browser, never uploaded. Nothing you paste is sent to us, logged, or stored, which is the reason this tool is safe to point at a contract or an internal document. Shared links encode the model and response budget you picked, never the text itself.

What this tool will not tell you

Fitting is a floor, not a goal. Several models retrieve noticeably less well from the middle of a very long context than from its beginning or end, so a document that fits at 90% of the window may still produce worse answers than the same document summarised down to 30%. Nor does a fit tell you the model is the right one for the job — for that, compare candidates in the LLM picker. And on multimodal input, images and audio consume tokens by a formula of their own; this checker only measures text.

Frequently asked

What is a context window?
A context window is the maximum number of tokens (roughly characters or word-pieces) a language model can read in a single request. Inputs that exceed it get truncated or rejected.
Tokens vs words — what's the difference?
A token is the unit each model actually reads. English averages around 0.75 tokens per word, so 1,000 words is typically 1,200–1,400 tokens — but this varies by tokenizer. Code and non-English text use more tokens per character.
Why does Claude count tokens differently from GPT?
Each provider trains its own tokenizer with its own vocabulary. The same string can produce different token counts on different models. We use OpenAI's exact tokenizer for OpenAI models and calibrated character-ratio estimates for the rest.
Should I leave room for the response?
Yes. The model writes its reply into the same context window. Reserve at least the maximum tokens you want it to generate (4k is a reasonable default for chat; 16k+ for long structured output).

All frontier model context windows

Static reference table. The interactive checker above uses the same data.

ModelProviderWindow (tokens)Max output
Gemini 3.1 Progoogle2,000,00065,536
GPT-5.6 Solopenai1,050,000128,000
GPT-5.6 Terraopenai1,050,000128,000
GPT-5.6 Lunaopenai1,050,000128,000
GPT-5.5openai1,050,000128,000
Gemini 3.7 Flashgoogle1,048,57665,536
Kimi K3moonshot1,048,576131,072
Gemini 3.5 Flashgoogle1,048,57665,536
Gemini 3.6 Flashgoogle1,048,57665,536
Claude Fable 5anthropic1,000,000128,000
Claude Opus 5anthropic1,000,000128,000
Claude Sonnet 5anthropic1,000,000128,000
Gemini 3.1 Flash-Litegoogle1,000,0008,192
DeepSeek V4 Flashdeepseek1,000,000384,000
DeepSeek V4 Prodeepseek1,000,000384,000
GLM-5.2other1,000,000131,072
Qwen3.8-Maxalibaba1,000,00065,536
Qwen3.7-Plusalibaba1,000,000131,072
Qwen3.7-Flashalibaba1,000,00065,536
Claude Opus 4.8anthropic1,000,00064,000
Claude Opus 4.7anthropic1,000,00064,000
Claude Sonnet 4.6anthropic1,000,00064,000
Claude Opus 4.6anthropic1,000,00064,000
Gemini 3 Flashgoogle1,000,00065,536
Grok 4.3xai1,000,00032,000
Qwen3.7-Maxalibaba1,000,00032,768
Grok 4.6xai500,00032,000
Grok 4.5xai500,00032,000
GPT-5.5 Proopenai400,00064,000
GPT-5.3 Codexopenai400,000128,000
GPT-5.4openai400,00032,000
GPT-5.4 Miniopenai400,00016,384
GPT-5.4 Proopenai400,00064,000
Kimi K2.7 Codemoonshot262,144131,072
Codestral 25.08mistral256,0008,192
Claude Haiku 4.5anthropic200,0008,192
Claude Opus 4.5anthropic200,00064,000
Claude Sonnet 4.5anthropic200,00064,000
o4-miniopenai200,000100,000
GLM-5.1other200,000131,072
GLM-5other200,000131,072
GPT Realtime 2.1openai128,00032,000
GPT Realtime 2.1 miniopenai128,00032,000
GPT Realtime 2openai128,0004,096
GPT Realtimeopenai128,0004,096

More free AI tools

Not sure which model to send that prompt to? Find your best-fit LLM in 60 seconds, estimate what AI automation could save your business with the AI ROI Calculator, or grab ready-to-use prompts from the free AI Prompt Library.