LLM Context Window Calculator

See if your system, context and user messages fit the model window.

Support
Works Offline
Privacy First
No Login
No API

About the LLM Context Window Calculator

Break a request into system prompt, retrieved context and user message, add realistic chat overhead, reserve room for the reply and instantly see whether the request fits GPT, Claude, Gemini, Llama or Mistral context windows.

Examples

RAG request

system + 8 chunks + question

Output

12,480 / 128,000 tokens — fits

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Read more

Version 1.0.0 · Updated 2026-08-14 · Runs entirely in your browser