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
See How Much of 8K / 32K / 128K / 200K / 1M Your Text Would Fill
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
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.