AI Tools

LLM Context Window Checker

Paste a prompt and see its estimated token count and how much of each model's context window it uses — so you know whether GPT, Claude or Gemini will accept it.

Tool

About the LLM Context Window Checker

The LLM Context Window Checker runs entirely in your browser — nothing you paste is uploaded or stored.

Every large language model can only read a limited amount of text at once — its context window, measured in tokens. Send more than that and the request fails or the oldest text is silently dropped. This tool estimates the token count of your text and shows how much of each model's window it fills.

How to use this tool

  1. Paste the prompt, document or chat history you intend to send.
  2. Adjust characters-per-token if you are working in another language (English is near 4; many languages are lower).
  3. Press Check to see the estimated tokens and the percentage of each model's window used.

How big are the windows?

ModelApprox. context
GPT-4o128,000 tokens
Claude 3.5 Sonnet200,000 tokens
Gemini 1.5 Pro2,000,000 tokens
Llama 3.1128,000 tokens

Pro tip

Tokens are roughly four English characters, but code, JSON and non-Latin scripts use more tokens per character. When in doubt, leave headroom for the model's reply inside the same window.

Who is this tool for?

Anyone building prompts, summarising long documents or designing retrieval-augmented generation who needs to know if their payload fits.

Frequently asked questions

It uses a characters-per-token heuristic, which is close for plain English. For exact counts use a tokenizer for your specific model.
Tokenizers are trained mostly on English. Accented characters, CJK text and emoji often consume several tokens each, so lower the characters-per-token value.
No. Everything is processed in your browser and is never uploaded or saved.

Related tools

Guides for this tool