LLMCostBot

Context window calculator: does your document fit?

Estimate tokens from a pasted document, a text file or a page count, then see which of 30 recorded models fit it in one request, how many chunks the rest need, and what the chunked run costs.

Your document

PDF, DOCX, XLSX and images are parsed in your browser. Nothing is uploaded; only the resulting token count is kept in the share link.

Plain text at about 650 tokens per page.

Reset
Models (up to four)

Select the models you are choosing between. The first four selected in the URL are used. Scroll the list for all 30 models.

The link preserves your inputs.

Context fit

50,000 document tokens · 800 output per answer

1 of 1 selected models can read the whole document in one request. The rest need up to 1 chunks.

ModelFitChunksTotal
Mistral Medium 3.5RecommendedFits50,000 / 260,8441$0.081

Fit reserves 500 tokens for system prompts and 800 tokens for the answer. “Fits” means the document uses under 75% of the remaining input room. Chunks are equal-sized with no overlap; real embeddings or overlap would raise the cost. Prices are list prices verified 2026-12-02.

What this check does and does not cover

Context windows are hard limits per request. A document that fits can still produce weaker answers than a split-and-summarise run, because models attend unevenly across very long inputs.

No file leaves your browser. Plain-text files are read locally to fill the paste field; PDF, DOCX, XLSX and image files are refused with a message instead of being silently ignored.

Chunked totals assume each chunk gets the same output budget. A real pipeline that summarises chunks and then answers over the summaries adds another input pass, so treat this as a floor.

Context fit: questions

+How many tokens does one page contain?

The page profiles use 650 tokens for text, 900 for dense PDFs and 250 for slides. A scanned page reads 0 readable tokens until OCR runs.

+What does the 500-token safety margin cover?

Each model reserves 500 tokens for the system prompt before the document is measured. The output budget per answer is subtracted as well.

+When is a document marked comfortable?

When it uses under 75% of the remaining input room after the safety margin and output budget. Above that it is tight; above 100% it needs chunks.

+How are chunks counted and priced?

Equal-sized chunks with no overlap, each carrying the same output budget. Summarising chunks and then answering over the summaries adds another input pass, so the total is a floor.

+Why does a scanned PDF return no result?

A scan has no text layer, so every model would read zero tokens. Convert the pages to text first; OCR output changes the token count.

+What is the common mistake when sizing a document?

Counting only the document text and forgetting the 500-token margin plus the answer length. A file just under the window can overflow once those are added.

Context window calculator: tokens, pages and chunk cost