Context Window Calculator

See how much of a model's context window your prompt would use.

Tokens remaining
Window used

Context window sizes shown are as published by each provider at the time this tool was built — verify against the provider's own model documentation, since limits can change or vary by specific model.

What is the Context Window Calculator?

Every LLM has a maximum "context window" — the total number of tokens (prompt plus conversation history plus the model's response) it can handle in a single request. This tool shows how much of that budget a given token count uses up, and how much room is left.

How to use it

  1. Pick a context window size, or enter a custom one for a model not listed.
  2. Enter how many tokens you're currently using (from your prompt, conversation history, or an estimate from the AI Token Counter).
  3. See the remaining budget and percentage used.

This is especially useful for long conversations or documents, where it's easy to lose track of how close you are to a model's limit until a request suddenly fails. All calculation happens locally in your browser.