How to Count Pages in Multiple PDF Files at Once (and Why It Matters)

Count the pages in a whole folder of PDFs for print quotes, translation estimates or filing limits, and spot mixed paper sizes before they cause trouble.

Updated September 29, 2026 6 min read

Use the free PDF Page CounterCount pages in many PDFs at once, see page sizes and export a CSV

A print shop wants to know how many pages you are sending before it quotes. A translation agency charges per page. A court or a grant portal caps submissions at a fixed page count. An archive project needs a total for a box of scanned files. In all of these cases the question is the same: how many pages are in these PDFs, individually and in total?

Opening each file and reading the number in the viewer's toolbar is fine for three documents and miserable for three hundred. This guide covers how page counting works, how to count a whole batch in your browser and export the result to a spreadsheet, the command-line and operating-system alternatives, and the details that trip people up, such as mixed paper sizes and encrypted files.

How a PDF knows its page count

Inside every PDF is a page tree: a structure that lists each page object and its properties, including size and rotation. Reading the page count means reading that tree, not rendering the pages, so it is fast even for large files.

Each page also declares its size in points, where one point is 1/72 of an inch. Converting to millimetres is simple:

millimetres = points / 72 × 25.4

So a page of 595 × 842 points is 210 × 297 mm, which is A4, and 612 × 792 points is 216 × 279 mm, which is US Letter. A page's rotation setting also matters: a portrait page stored with a 90° rotation is shown to the reader as landscape.

Count a batch of PDFs in your browser

Our PDF Page Counter reads as many files as you give it, entirely on your own device.

  1. Open the PDF Page Counter and drop your PDFs onto the box. To select a whole folder's contents in the file picker, open the folder and press Ctrl+A (Cmd+A on a Mac).
  2. Watch the table fill in. Each row shows the file name, its page count, the page sizes it contains and its file size.
  3. Read the summary tiles at the top: Files, Total pages, Average pages and Total size.
  4. Drop more files at any time. They are appended to the same list and the totals update.
  5. Click Export CSV to download the list, or Clear list to start again.

The CSV contains one row per file with the name, page count, size in bytes, number of landscape pages, the page-size breakdown and a status, followed by a TOTAL row. It opens directly in Excel, Google Sheets, LibreOffice Calc or Numbers.

If a file is slightly damaged, the counter retries it with a second PDF engine that can rebuild broken indexes before marking it as unreadable. Encrypted files are often still countable, because the page structure can usually be read without the password; they are labelled so you know.

Turning page counts into a quote or estimate

Once you have the CSV, a spreadsheet does the rest. A typical per-page estimate looks like this:

File Pages Rate per page Cost
contract-main.pdf 24 1.50 =B2*C2
annex-a.pdf 6 1.50 =B3*C3
annex-b.pdf 11 1.50 =B4*C4
Total =SUM(B2:B4) =SUM(D2:D4)

For printing, remember that the number of sheets depends on how you print. Double-sided printing roughly halves the sheet count:

sheets = ceiling(pages / 2)      (per document, duplex)

Apply that per document, not to the grand total, because each document with an odd page count ends with a half-used sheet.

Why page sizes deserve a second look

The page-size column is often more useful than the count itself. It reveals problems before they reach the printer:

  • A Letter file in an A4 job. US Letter is wider and shorter than A4. Printed on A4 paper without scaling, the bottom may be cut off; with scaling, margins shift.
  • Mixed sizes in one document. Scanned bundles often contain a few pages captured at a different size. Printers either scale them unpredictably or pause for manual feed.
  • Unexpected landscape pages. A single landscape table in a portrait report is normal. Twenty rotated pages in a scan usually means the scanner guessed orientation wrongly.

The counter names a size (A4, Letter, Legal, A3, A5, Tabloid, B5, Executive) only when it matches within about 2 mm. Anything else, such as slides or receipts, is shown in millimetres. If you find a size problem, Resize PDF can put every page onto one standard size, and Rotate PDF fixes sideways pages.

Other ways to count PDF pages

Your PDF viewer

Every viewer shows "page X of Y" for the open file. It is the fastest way for one document and the slowest for many.

macOS Finder and Terminal

On a Mac, Finder can show a page count for a PDF in the Get Info panel, depending on your macOS version and whether Spotlight has indexed the file. For a folder, Terminal can read Spotlight's metadata directly:

mdls -name kMDItemNumberOfPages *.pdf

This relies on Spotlight having indexed the files, so newly copied files may briefly show no value.

Command-line tools

If you are comfortable with a terminal, the free Poppler utilities include pdfinfo, which prints a "Pages:" line for a file, and qpdf can print just the number:

qpdf --show-npages report.pdf

Wrapped in a loop, these are excellent for automated pipelines and very large archives. They require installation, however, which is not always possible on a work computer.

Windows File Explorer

File Explorer does not show PDF page counts by default. Some third-party PDF applications add a "Pages" column, but it depends on what is installed. For a one-off batch, a browser-based counter is usually quicker than setting that up.

Pitfalls and troubleshooting

The total does not match what the printer charged

Printers bill by sheet or by side, and colour pages may be priced differently. Also check whether blank pages were counted; scanned documents often contain empty backs. Remove Blank Pages from PDF can clean those out before you count.

A file shows as not readable

It is either badly damaged or encrypted in a way that hides the page tree. Try Repair PDF, or unlock the file with its password first.

Page limits for submissions

Portals usually count every page in the file, including cover sheets and appendices. If you are over a limit, check whether the rules exclude certain sections, and consider Split PDF to submit those parts separately where that is allowed.

Reported size looks rotated

Sizes are reported as the reader sees the page, so a portrait page stored with a rotation is listed as landscape. That is intentional: it is how the page will appear when printed from a viewer.

Frequently asked questions

How do I count the pages of many PDFs without opening them?

Drop all of them into a batch page counter, which reads each file's page tree and lists the counts with a total. On a Mac, mdls in Terminal is an alternative; on any system, qpdf --show-npages works in a script.

Can I get the page count into Excel?

Yes. Export the list as CSV and open it in Excel or any spreadsheet app. Each file becomes a row, and a TOTAL row sums the pages.

Does a PDF's page count include blank pages?

Yes. Every page object counts, whether or not it has content. Remove blank pages first if you want the count to reflect real content.

How do I check whether a PDF is A4 or Letter?

Look at the page-size column: A4 is 210 × 297 mm and US Letter is 216 × 279 mm. In a viewer, the document properties dialog usually shows the size of the current page.

Are my files uploaded to count them?

No. The counter reads files locally in your browser, so confidential documents stay on your device.

Try it now: PDF Page Counter

Loading tool…