How many documents, PDF pages or lines of code fit in Claude, GPT and Gemini?
| Model | Context | Usable | Your input | Used | Fits? | PDF pages | Lines of code |
|---|
A context window is the amount of text a language model can consider at one time: your instructions, the documents you attach, the conversation so far and the reply it is writing all share the same budget, measured in tokens. Windows have grown from a few thousand tokens to a million or more, which is enough for several books or a whole mid-sized codebase.
Knowing whether your material fits saves time and money. A long contract, a research paper set or a repository either goes into a single prompt or has to be split, summarised or searched in pieces. Text pages, scanned PDF pages, source code and images all consume tokens at different rates, and languages other than English generally need noticeably more tokens for the same meaning.
A bigger window is not automatically better: very long prompts cost more, respond more slowly, and models can miss details buried in the middle. Use this calculator to see how much headroom you have on Claude, GPT, Gemini and other models, then decide whether to send everything at once or feed the model only the parts that matter.