Boneyard Tools

PDF Page Counter

Drop in a PDF to see how many pages it has. The file is read entirely in your browser, so nothing is uploaded and even confidential documents stay on your device. The counter reads the page tree first and falls back to counting page objects, then tells you which method it used.

How to count the pages in a PDF

  1. Drag a PDF onto the box, or click browse to pick one.
  2. Read the page count that appears instantly.
  3. Check the method line to see how the count was determined.

Examples

A typical document

report.pdf (a standard, uncompressed PDF)
12 pages, read from the page tree (count-field)

Frequently asked questions

Is my PDF uploaded anywhere?

No. The PDF is read and scanned entirely in your browser using JavaScript. Nothing is sent to a server, so even confidential contracts or statements stay on your device.

How does it count the pages?

It first looks for the page tree root, a dictionary marked /Type /Pages that records the total in a /Count field. If that is missing, it counts the individual /Type /Page objects instead. The result shows which method was used.

Why does the count sometimes look wrong?

Page counting is best effort. It is most accurate on scanned or otherwise uncompressed PDFs where the structural markers are plain text. Heavily compressed PDFs that pack objects into compressed object streams can hide those markers, so the count may be low.

Which files are supported?

Any file with a %PDF- header. Other file types are rejected. For the most accurate result, use an uncompressed PDF, since the page markers are easiest to read there.

Does it work without an internet connection?

Yes. After the page loads, counting runs locally in your browser, so it keeps working offline.

Related tools