Context window checker
Paste a document or open a text file. See how much of each model's context window it fills, and whether there's room left for the answer.
Free tool · Updated
0
Tokens (estimate)
0
Words
0
Characters
OpenAI
Anthropic
Token counts are estimates at about 4 characters per token. Chat apps like ChatGPT can accept less per message than the API window shown here.
How to use it
- Paste your text, or open a text file from your computer.
- Pick how much room to leave for the answer.
- Check each model. Green fits; red is too long and shows by how much.
Tips
- The window holds your text and the answer together, so leave room for the reply.
- Models can miss details buried in a very long prompt. Put your question at the end, after the document.
- If a file is too long, split it by chapter or section and ask about one part at a time.
- Cut repeated headers, footers and boilerplate before pasting. They use tokens and add nothing.
Frequently asked questions
What is a context window?
The most text a model can take in at once, counted in tokens. It includes your prompt, any documents, earlier messages and the answer.
How big are today's context windows?
The current models from OpenAI, Anthropic and Google all take about 1 million tokens through their APIs. That's roughly 750,000 words.
Why does ChatGPT say my text is too long when it fits here?
Chat apps can set lower limits per message than the API window. If that happens, split the text into parts.
Is my document uploaded?
No. Files are read in your browser and nothing leaves your device.
More free tools
AI Token CounterPaste any text to estimate its tokens, words and characters, and see how much of a 1M-token context window it fills. Free, private, runs in your browser.AI API Cost CalculatorEstimate what your prompts cost on OpenAI, Anthropic and Google models, per call and per month, using each provider's current prices. Free.ChatGPT Character CounterCount characters, words, sentences and tokens in any prompt or AI answer as you type. Free, private and runs in your browser.Want a full prompt, not just keywords?
PromptItIn turns a rough idea into a clear prompt for ChatGPT, Claude, Gemini or any image model. Free to start.