How Many Tokens Are in a PDF, Doc or Slide Deck?

Estimate how many tokens in a PDF, Word doc or deck before you hit an API. The words-per-token rules, page density, and how to turn it into a cost.

Updated 6 min read By CodingEagles
Free tool Document Token & Cost Estimator Estimate how many tokens a document holds and what it costs to send, from pasted text or a word/page count. Open tool

Multiply the document’s word count by about 1.33 and you have a solid token estimate — a 10,000-word report is roughly 13,000 tokens. If you only know the page count, assume around 650 to 700 tokens per page of normal prose, then adjust up for dense legal or technical pages and down for slides. The document token cost estimator does this from a word, character or page count and turns it straight into a dollar figure for the model you’re using.

The two rules that get you close

You don’t need a tokenizer to plan. Two approximations cover most cases:

  • ~1.33 tokens per word. English averages a little over one token per word, because longer or rarer words split into multiple tokens. Word count × 1.33 ≈ token count.
  • ~4 characters per token. If you have a character count instead, divide by four. A 40,000-character document is roughly 10,000 tokens.

Both are estimates, and they drift. Code, JSON, and languages that don’t use spaces the way English does break into more tokens per word. Numbers and punctuation-heavy text push the ratio up too. For plain prose, though, these rules land within a few percent — fine for costing a job before you run it.

Page density changes everything

Page count is the least reliable proxy, because a “page” holds wildly different amounts of text depending on the document:

Document typeWords per pageTokens per page (≈1.33×)
Slide deck50–15065–200
Marketing / prose~500~665
Report / article500–650665–865
Legal / contract700–900930–1,200
Dense technical / code800–1,000+1,060–1,330+

A 20-page slide deck and a 20-page contract can differ by 5× in tokens. So if accuracy matters, get a word or character count — most editors and PDF readers show one — rather than trusting the page total.

From tokens to cost

Once you have a token estimate, cost is straightforward. It has two parts:

  1. Input tokens — the document you send in, plus your prompt.
  2. Output tokens — whatever the model generates back (a summary, extracted fields, answers).

Cost = (input tokens × input rate) + (output tokens × output rate). Input and output are priced separately, and output is usually 3 to 5 times more expensive per token, so a big document with a short summary is cheaper than a small document with a long generated answer.

A worked example

Say you want to summarise a 40-page contract.

  • At ~850 tokens per legal page, that’s about 34,000 input tokens.
  • Add a 500-token prompt → ~34,500 input tokens.
  • The summary you get back is ~800 output tokens.

On a model priced around $3 per million input and $15 per million output:

  • Input: 34,500 × $3 / 1,000,000 = $0.104
  • Output: 800 × $15 / 1,000,000 = $0.012
  • Total: ~$0.12 for one pass.

Cheap for one document — but multiply by a few thousand contracts, or by every page of a document you re-send on each question, and it adds up fast. That re-sending is where costs quietly balloon: if you ask ten questions and resend the whole contract each time, you pay the 34,000 input tokens ten times over.

Estimate before you commit

The point of estimating up front is to avoid surprises at scale. A single document costing a few cents feels free; ten thousand of them is a real invoice, and a workflow that re-sends context on every turn multiplies it again. Run the numbers first with the document token cost estimator, which converts words, characters or pages into tokens and a cost for your chosen model.

If throughput matters as much as cost — how long a big document takes to process — tokens per second explained covers the speed side. And if you’re sending documents to a reasoning model, note that its hidden “thinking” tokens add to the output bill; why reasoning models cost more breaks down that extra charge.

Frequently asked questions

How many tokens are in a typical PDF page?
A page of normal prose holds roughly 500 words, which is about 650 to 700 tokens using the ~1.33 tokens-per-word rule. Dense legal or technical pages run higher, often 800 to 1,000 tokens, while a slide deck page might be 100 to 200. Multiply by your page count for a working estimate before you call an API.
What's the rule for converting words to tokens?
For English, one word is about 1.33 tokens on average, and one token is about 4 characters. So multiply word count by 1.33, or divide character count by 4, to estimate tokens. It's an approximation — code, non-English text and unusual formatting shift the ratio — but it's close enough for cost planning.
Why do two documents with the same page count use different token counts?
Because page density varies. A prose page might hold 500 words, a dense contract 800-plus, and a slide maybe 50. Tables, code and non-English characters also break into more tokens per word. Always estimate from word or character count where you can, and treat page count as a rough proxy only.

Ready to try it?

Estimate how many tokens a document holds and what it costs to send, from pasted text or a word/page count. Free, in-browser, and 100% private — your data never leaves your device.

Open the Document Token & Cost Estimator