devpocket.dev

Context Window Visualizer

Estimate system, tools, conversation, and output usage inside an LLM context window.

Runs locally
Loading tool…

How to use

Paste each part of a request into its own field: system prompt, tool definitions, and conversation history. Set the output tokens you want to reserve, then choose a 128K, 200K, 256K, 1M, or custom context window. The bar shows how the budget is divided and warns when it overflows.

Text tokens are estimated locally using roughly 4 Latin characters or 1.7 CJK characters per token. Provider wrappers, images, hidden instructions, and tokenizer differences can change real usage, so keep a safety margin.

FAQ

Does reserved output count against the context window?

Yes. Input and generated output generally share the model context budget, so reserving output reduces the available prompt space.

Are the token values exact?

No. This tool intentionally uses a portable character-based estimate so it can compare mixed model families without downloading tokenizers.

What should I include in tools JSON?

Include the full tool or function definitions sent with a request, including names, descriptions, parameter schemas, and enums.

Related tools