Skip to content

Context Window Checker

Popular

Check prompt size against a model context window.

Loading…

About Context Window Checker

When an API rejects a request as too long, the useful question is by how much. Choose a model, paste a prompt or a whole document, and the checker counts its tokens, exact for most OpenAI models and estimated for the rest, against the window size listed beside the model name. You get tokens used, tokens left, a percentage and one of three verdicts: safe, near limit from 85% of the window, or over limit once the text is larger than the window.

Features

  • Window size shown next to every model in the list
  • Three statuses: safe, near limit and over limit
  • Tokens used, window size and remaining tokens as separate cards
  • Exact or Estimate label with the encoding used
  • Accepts up to 10 MB of pasted text

Limitations

  • Only the text you paste is measured. The model's reply, system prompt, chat history and tool definitions share the same window, so leave headroom.
  • Counts for models other than OpenAI's use the o200k_base encoding as a stand-in, so they are estimates and the provider's real count can differ.
  • The near-limit mark is fixed at 85% of the window, text over 10 MB is rejected, and window sizes come from a dated catalog rather than a live feed.

How it works

  1. Choose a model in the Model list; each option shows its context window in tokens.
  2. Paste your prompt or document into Text to check.
  3. Read the status badge, the percentage and the progress bar above the cards.
  4. Compare the Tokens used, Window size, Remaining and Precision cards to see the numbers behind the verdict.
  5. If the status is near limit or over limit, trim or split the text and watch the figures update.
  6. Use Reset to clear the box, or Share to copy a link to the tool.

Example input

Explain the difference between REST and GraphQL APIs in simple terms, with one example for each.

Frequently asked questions