How Many Tokens Is a PDF in Claude? 195 PDFs, Uploaded vs Pasted as Text
Measured on November 4, 2026 and kept as measured. FileConcat has changed since. What it reads today is listed in the formats list.
Anthropic says how a PDF is billed: the text of each page, plus an image of each page. It does not say what that comes to on the PDFs people have. So we took 195 PDFs from the public web and counted each one twice with Anthropic's own token counter, once uploaded as a PDF and once as the text FileConcat extracts from it.
01 of 12
How many tokens is a PDF in Claude?
About 2,400 tokens for a typical page uploaded as a PDF, and about 900 for the same page pasted as text. Anthropic bills a picture of every page on top of its text, and the gap between the two counts is about 1,600 tokens per page.
The same pages, counted both ways. The text side is the extracted words, with a page marker per page.
Anthropic's token counting endpoint, claude-opus-5-5, 2026-11-04. Text is what FileConcat 2.13.0 extracts.
Much of that price comes from the image, which every page pays for however little it says. A page with one line of text still pays for its whole picture, so short pages cost the most extra. A dense page of small print is the one case where the text alone can outweigh the image: two of the 165 PDFs cost more as text.
Across whole files the saving holds up. Pasted text costs a third of the upload or less for close to half the PDFs, and half or less for nearly nine in ten.
165 PDFs with a text layer, Common Crawl, 2026-11-04. A line counts the PDFs ending left of it. 1 means the text costs what the PDF costs.
02 of 12
When is the PDF worth its price?
When the page's picture carries something its words do not. The image is what lets Claude read a chart, a photo, a diagram or a scanned page. Text keeps the words and leaves all of that behind, and two in three of these PDFs hold at least one embedded picture.
- Paste the text when the question is about the words. Contracts, reports, papers, manuals and forms are read from their text, and about three fifths of the upload's tokens pay for pictures of pages the answer does not need.
- Upload the PDF when the answer is in a figure. A chart's values or a diagram's labels can be missing from the text layer. Check your text before you trust it for that.
- A fully scanned PDF has no text to paste. FileConcat says when a file is a scan and offers to read it on your machine. In the claude.ai apps, a PDF of 101 to 1,000 pages is read as text only anyway.
The saving repeats in a long conversation, because the document stays in it and is read again with every message. Our measurement found two PDFs where the text costs more, one of them a single page packed with small print.
03 of 12
Count your own PDF
The figures above are a distribution. Your PDF is one point in it, and the result screen estimates the tokens of the bundle built from its text before you paste anything.
Drop a PDF here and FileConcat extracts its text in your browser and estimates the tokens of what you would paste. Your files are not uploaded to us. What you then paste into an assistant is your own choice, but preparing the file uploads nothing.
Extract and count your own PDF
Text out, and an estimated token count of what you would paste. Your files are not uploaded to us.
04 of 12
What earlier sources measured
Anthropic's own PDF documentation gives the rule and a range, not a measurement. It says "Each page typically uses 1,500-3,000 tokens depending on content density" for text, and "Because each page is converted into an image, the same image-based cost calculations are applied". It then points the reader at token counting to find out for their own PDFs. That is what this page does, for 195 of them.
The text range does not describe these PDFs. The median page here extracts to 856 tokens of text, and the median page costs 2,390 as a PDF all in. Real web PDFs are short and light: the median file is 3 pages and about a third are a single page.
The one study we found that logs Claude's PDF token counts is Ak et al. (arXiv 2609.29933). On Claude Sonnet 4.5 it saw a mean of about 2,050 tokens per page on 50 to 100 page documents, falling to about 1,540 on 100 to 150 page documents, which it attributes to the API downsampling page images to fit a 200K window. It also counts the same benchmarks as extracted text, but publishes no per-document ratio of the two.
It also says that without citations the API "falls back to basic text extraction". Our counts contradict that for the direct API. Every count here was made without citations, and every page still cost about 1,600 tokens more than its text. That gap matches what a page with no text at all costs, as the scanned group below shows. We counted only the direct API's count endpoint, so the paper's result without citations is not directly comparable to these counts.
We found no published count of the same real PDFs both ways with the vendor's own counter. That is this page.
05 of 12
The 195 PDFs, and where they came from
The PDFs are a seeded draw (seed 20261016) from the Common Crawl crawl CC-MAIN-2026-34: documents people published on
the open web. The crawl's index picks records by detected MIME type, at most two files per registered
domain so one site cannot fill the sample, byte-identical files once. Records the crawler cut short
are skipped, which leaves out the largest files. The builder is
packages/cli/scripts/build-cc-corpus.py,
and the same Common Crawl draw is the one the
extractor comparison weights its scores by.
Your PDFs are not on the web, so this is a stand-in for them, not a sample of them. Every file was kept, whatever it measured. FileConcat's reader sorted the 195 into four groups before anything was counted:
| Group | Files | Pages | What it means |
|---|---|---|---|
| text layer | 165 | 1,807 | every page has text the reader can extract |
| scanned | 24 | 360 | some or all pages are images; 19 yield no text at all |
| undecodable | 5 | 42 | part of the text layer is a font with no usable character map |
| rejected | 1 | a 4-byte file the API calls "not valid" |
The headline numbers are the text-layer group, because only there is the text a fair substitute for the page's words.
06 of 12
How we counted the tokens
- 1
Extract the text the way the browser does
run-corpus.shruns every PDF through the web app's own reader chain, one process per file, and keeps the text it produces. This is what FileConcat puts in a bundle, page markers included. - 2
Count the PDF as Claude receives it
The file goes to the token counting endpoint as a base64 PDF document block in one user message, exactly as an upload through the API would. The endpoint is free and counts under the tokenizer of the model named.
- 3
Count the text the same way
The extracted text goes to the same endpoint as one plain text block, in the same one-message request.
- 4
Subtract the envelope
A one-message request costs some tokens before any content. That is counted once and subtracted from both sides, so each figure is the content alone.
- 5
Count pages and pictures with pdf.js
The web app's PDF library gives each file's page count and the pages that paint an embedded raster image. Drawings made of vector paths are not counted as pictures, so that figure is a floor.
07 of 12
What 165 PDFs cost both ways
Pooled, the 165 PDFs count 4,432,664 tokens uploaded and 1,674,624 as text: 2.65 times as much, or 62.2% saved by pasting the text. Per file the median ratio is 2.81x, the 10th percentile 1.78x and the 90th 5.64x. The two differ because pooling weights each file by its text tokens, where the median counts every file once.
2.81x
What the typical PDF costs uploaded, against its own text pasted. The 10th to 90th percentile runs from 1.78x to 5.64x.
median per-file ratio / 165 PDFs with a text layer / claude-opus-5-5 / 2026-11-04
| Cut | Median ratio | Pooled ratio | Files | Pages | As a PDF | As text | Median page, PDF | Median page, text |
|---|---|---|---|---|---|---|---|---|
| all with a text layer | 2.81x | 2.65x | 165 | 1,807 | 4,432,664 | 1,674,624 | 2,390 | 856 |
| 100 pages or fewer | 2.81x | 2.44x | 162 | 1,228 | 3,128,002 | 1,279,900 | 2,393 | 857 |
| over 100 pages | 2.97x | 3.31x | 3 | 579 | 1,304,662 | 394,724 | 2,390 | 804 |
The 100-page cut matters because claude.ai reads a PDF past 100 pages as text only, and because the API caps a request at 100 pages when the model's window is under a million tokens. Three files is too few to say anything about long PDFs beyond this: their median page counted the same 2,390 tokens as a short file's, so on this model we saw none of the downsampling the arXiv study logged.
The PDF's extra cost per page has a median of 1,568 tokens over the text. On the scanned PDFs, where most pages have no text layer, the median file costs 1,586 a page as a PDF. The two numbers are close because both are mostly the same thing: the image of one page.
Where the text costs more. Two files counted fewer tokens as a PDF than as extracted text, at 0.51x and 0.99x. Why the first counts about half its extracted text is not verified. One reading is that Claude's own text extraction of that file is shorter than ours; we did not see the text the endpoint extracted, only its count.
What text leaves behind. 112 of the 165 hold at least one embedded raster image, on 551 of their 1,807 pages. The count does not say what a picture shows, and vector charts are not counted at all, so this is how often a page has a picture, not how often the picture matters.
08 of 12
Scanned and broken PDFs
Scanned, 24 files. The PDFs whose pages are images cost 745,336 tokens uploaded, 1,586 for the median page. FileConcat's reader extracted text from 5 of them, the pages that have a text layer, and nothing from the other 19. Pasting their text is not a saving, it is a loss of the document. FileConcat names those pages and offers recognition on your machine instead, which this measurement did not run.
Undecodable, 5 files. Part of their text layer uses a font with no usable character map, so some of the extracted text is not words. They cost 174,582 tokens uploaded and 84,366 as text, 2.07x, and are left out of the headline because the text side is not a fair substitute.
Rejected, 1 file. dba5166a.pdf is 4 bytes. The endpoint answers "The PDF specified was not
valid". It is counted in the 195 and nowhere else.
09 of 12
Limitations
- This is the Claude API, not the claude.ai apps. Their help page gives no token figure for a PDF. It says a PDF of 101 to 1,000 pages is read as text only, which is the text side of this page done for you. Whether a shorter upload in the apps costs what the API counts is not verified.
- One model, one tokenizer.
claude-opus-5-5shares the tokenizer introduced with Claude Opus 4.7. Anthropic says that tokenizer counts roughly 30% more than earlier models. The ratio was not measured on older models. - Web PDFs are short. The median file is 3 pages. The largest files were never in the sample, because the crawl does not keep files it cut short.
- Cost, not answers. This counts what reaches the model. It does not say whether the answer is as good. Ak et al. found raw PDF the strongest whole-document input for Sonnet 4.5 on MMLongBench but behind extracted text on LongDocURL, and extracted text cheaper than raw PDF. Losing the picture is a real price for a question about a figure.
- The picture count is a floor. pdf.js reports pages that paint a raster image. A chart drawn as vector paths is not counted, and a logo counts the same as a photo.
- The bundle wrapper is not counted. Pasted as part of a FileConcat bundle, each file adds its tag and the bundle a short header. We did not count it.
- Our text has page markers. The extracted text carries one
# Page Nline per page, as the bundle does. It is counted, so the text side is slightly higher than the words alone.
10 of 12
Reproduce it
Everything but the API credential is in the repository. Counting tokens is free; it needs an Anthropic API key in an env file.
git clone https://github.com/CeamKrier/file-concat
cd file-concat && pnpm install
python3 packages/cli/scripts/build-cc-corpus.py corpus --crawl CC-MAIN-2026-34
packages/cli/scripts/run-corpus.sh . corpus out
node --env-file=<your env file> packages/cli/scripts/measure-pdf-tokens.mjs \
corpus/pdf out/pdf apps/web/src/data/pdf-tokens.json
The first command needs DuckDB and draws every format; only pdf/ is counted here. The crawl and the
seed are this sample's defaults. How many index parts our draw read was not recorded. The last
one writes the JSON this page is drawn from: the four groups, the 100-page cut, the picture counts, the
rejected file, and the per-file ratios behind the figure.
11 of 12
Frequently asked questions
How many tokens is a PDF page in Claude?
On the 1,807 text-layer pages measured here, the median page counted 2,390 input tokens as a PDF
document block on claude-opus-5-5. About 1,600 of that is the measured gap over the page's text, where Anthropic bills an image of
every page on top of the text. The
same page pasted as extracted text counted 856. Anthropic's documentation gives 1,500 to 3,000 tokens of
text per page, which is higher than what these web PDFs held.
Is it cheaper to paste PDF text into Claude than to upload the PDF?
Almost always. 163 of 165 PDFs with a text layer cost less as text, and the median file cost 2.81 times as much uploaded. One of the two exceptions is a single page of very dense small print, the other nine pages long.
Do scanned PDFs cost more tokens?
They cost less per page as a PDF: the median scanned file averaged about 1,586 tokens a page. For the 19 of the 24 that produced no extracted text there is no cheaper text to paste, though: the text has to be recognised from the image first.
Does Claude read the images in a PDF?
Through the API, yes: each page is sent as an image along with its text, and the image is most of the cost. In the claude.ai apps a PDF of more than 100 pages is read as text only, according to Anthropic's help page.
How do I count the tokens in my own PDF?
Drop it into FileConcat and the result screen shows an estimated token count of the bundle built from the extracted text. For the PDF side, Anthropic's token counting endpoint takes the PDF as a base64 document block and is free to call.
12 of 12
References
How a PDF document block is billed
"Each page typically uses 1,500-3,000 tokens depending on content density" of text, plus the page image: "Because each page is converted into an image, the same image-based cost calculations are applied"
The endpoint this page counts with
Token counting is "free to use but subject to requests per minute rate limits"
How the claude.ai apps read long PDFs
"For PDFs from 101 to 1000 pages, Claude processes text only"
Raw PDF, page images and extracted text as inputs, accuracy and cost
Raw PDF the strongest whole-document input for Sonnet on MMLongBench, behind extracted text on LongDocURL, and the most expensive; about 2,050 billed tokens per page on 50-100 page documents, about 1,540 on 100-150 page documents
- What gets lost converting documents to text, what the text side leaves out
- Markitdown vs Tika, how FileConcat's PDF reader scores on the same 195 PDFs
- What uses up your Claude usage limit, why attachments make the limit run out fast and what to attach instead
- Claude file upload limit, the per-chat file cap and the PDF page limits
- Token estimation, how the count on the result screen is produced
- Formats, what FileConcat reads from a PDF
Tip
The counting script and the corpus builder are both in the public repository. Point them at your own PDFs and the ratio you get is yours, not ours.