The context window is the total number of tokens an LLM can hold in its working memory during a conversation or task — including both the input (prompt, documents, conversation history) and the output (generated response). Larger context windows allow models to process longer documents, maintain coherence across lengthy conversations, and perform more complex reasoning tasks. Context window size varies by model and is a key factor when selecting an AI tool for tasks involving large amounts of text.