LLM Context Window Estimator

See How Much of 8K / 32K / 128K / 200K / 1M Your Text Would Fill

Token counts here use a real BPE tokenizer (the same algorithm behind OpenAI's tiktoken) — an accurate, verifiable count. Different model families tokenize slightly differently, so treat this as a solid general estimate rather than an exact per-model figure. Context windows are also typically shared between your input and the model's response — the "reserve for response" setting below accounts for that.
Your Text or Document

Drag & drop a .txt, .md, or .pdf file here, or click to browse

Or just paste text directly in the box below — processed entirely in your browser

0 characters
0 words
0 tokens
Most context windows are shared between input and output — this much is set aside for the reply.
About
Accuracy Notes
Contact

About the Context Window Estimator

This tool shows what percentage of common LLM context window sizes — 8K, 32K, 128K, 200K, and 1M tokens — a piece of text or document would use. Paste text directly, or upload a plain text file (.txt, .md, .csv) or a PDF, and the tool extracts and counts it locally. Token counting uses a genuine BPE tokenizer implementation (the same algorithm behind OpenAI's tiktoken), giving an accurate, verifiable count rather than a rough guess. Since context windows are typically shared between your input and the model's expected response, an adjustable "reserve for response" setting is subtracted from the available space before calculating how full each window would be. All processing — including PDF text extraction — happens locally in your browser; your file is never uploaded anywhere.