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
- Drag a PDF onto the box, or click browse to pick one.
- Read the page count that appears instantly.
- 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
File Type Identifier
Find out what a file really is from its magic bytes, not its extension. Detects images, audio, video, archives, fonts, and more in your browser. Private.
PDF Metadata Viewer
View a PDF's metadata in your browser: title, author, subject, keywords, creator, producer, and creation and modified dates, plus the PDF version. Private.
Image Metadata Viewer
View an image's EXIF and metadata in your browser: camera make and model, dimensions, format, orientation, and whether GPS location is embedded. Private.
Add Page Numbers to PDF
Add page numbers to a PDF in your browser. Pick the corner, starting number, and font size, then download. Nothing is uploaded.
Delete PDF Pages
Remove pages from a PDF by number or range, then download the smaller file. Runs entirely in your browser, nothing is uploaded.
Extract PDF Pages
Extract a page range from a PDF into a new file. Enter pages like 1-3, 7 and download. Runs in your browser, nothing is uploaded.