LLM Context Window Calculator
Calculate remaining context capacity after input and reserved output tokens.
Include message overhead and tool definitions in your input count.
How to use LLM Context Window Calculator
Load the example, edit the input using the same format, and select Run. Review the output before copying or downloading.
Example input
{
"contextWindow": 32000,
"inputTokens": 12000,
"reservedOutput": 4000
}Example output
{
"remainingTokens": 16000,
"fits": true
}Frequently asked questions
What does this tool do?
Calculate remaining context capacity after input and reserved output tokens.
What are the limitations?
Include message overhead and tool definitions in your input count.
Does it call an AI API?
No. Tool processing runs in your browser. The site separately loads advertising and analytics scripts.