LLM Context Window Fit Checker

Check whether a prompt, document or codebase fits in the context window of GPT, Claude, Gemini and hundreds more models.

Runs in your browser — your data never leaves your device

Frequently Asked Questions

What is a context window?

The context window is the most tokens a model can handle in one request, counting your input, any system prompt and tool definitions, and the reply it generates. If the total goes over, the request fails or older content is dropped.

How accurate is the token estimate?

It is a heuristic that runs instantly in your browser, usually within 15 to 20% of a real tokenizer. It treats prose, code, JSON and Chinese, Japanese or Korean text differently. A 20% safety margin is on by default, and you can enter an exact count from your provider instead.

Why reserve tokens for the reply?

Input and output share the same window. A 120,000-token prompt in a 128,000-token window leaves only 8,000 tokens for the answer, and reasoning models spend part of that on hidden thinking. Reserve what you actually need.

What if my text is too long for every model?

Split it into chunks and process them separately, summarise it in stages, or use retrieval (RAG) to send only the relevant passages. Each too-large result shows how many parts it would need.

Is my text uploaded?

No. Text and files are measured in your browser. Only the public model list is fetched, from the same synced catalog used by the LLM Model Explorer.

Does a bigger context window always help?

Not always. Long prompts cost more, add latency, and many models recall details from the middle of very long inputs less reliably. Pick the smallest window that comfortably fits, with headroom.