PP
PDF Page Counter
Count the number of pages in a PDF instantly — no upload, just select your file.
More PDF Tools Tools
or drag and drop a PDF here
Counting pages...
pages
How to Use PDF Page Counter
Select your PDF file and the page count appears immediately — no upload, no processing delay. The tool reads just the document structure from your local file to extract the page count. Works with any PDF, including large files.
About PDF Page Counter
PDF Page Counter is the simplest tool in the PDF category but one of the most frequently needed: you have a PDF file and need to know how many pages it contains before printing, before emailing, or before quoting a printing cost. Your file explorer may not show page counts for PDFs (Windows Explorer does not, macOS Finder does for some but not all PDFs), and opening a large PDF just to check the page count is slow.
This tool reads only the document structure — specifically, the page tree in the PDF catalog — to determine the page count. It does not load, render, or process any page content. This means it is extremely fast: a 50 MB, 500-page PDF returns the page count in under a second because only a few kilobytes of structural data are read. The file is processed entirely in your browser memory; nothing is transmitted anywhere.
The tool uses pdf-lib's getPageCount() method, which walks the PDF page tree without loading page content streams. This makes it efficient for very large documents. The result is displayed as a simple number along with the file name, so there is no ambiguity about which file you counted.
Common use cases: printing services ask for a page count before quoting; email attachment limits may restrict PDFs over a certain number of pages; you receive a PDF from a client and need to estimate review time; you are archiving documents and need to log page counts. In each case, this tool gives you the answer instantly without opening the full PDF.
Details & Tips
The page counter uses pdf-lib's PDFDocument.load() method with the ignoreEncryption option set to true (which allows loading of PDFs with empty or default passwords but not truly encrypted documents). Once loaded, getPageCount() returns the total number of leaf nodes in the page tree dictionary. This count matches what any PDF reader displays and accounts for all page objects, regardless of their content. The tool does not parse or render individual pages, keeping it fast and memory-efficient even for very large documents. The file is read into an ArrayBuffer via the FileReader API, and the PDFDocument is created from that buffer. No part of the file is sent to any server.
Frequently Asked Questions
Does my PDF get uploaded to a server?
No. The page count is determined entirely in your browser. The file is read into local memory and the page count is extracted from the document structure — nothing is transmitted anywhere.
How fast is the page count?
Very fast. The tool only reads the page tree structure (a few kilobytes of data), not the page content. A 100 MB PDF returns the page count in under a second on a typical computer.
Does this work on password-protected PDFs?
It can count pages in PDFs with empty or default passwords but not in truly encrypted PDFs. If the PDF requires a password to open, this tool cannot read it.
Is the page count accurate?
Yes, the count comes directly from the PDF document structure and matches what any PDF reader displays. It counts all physical pages, including blank pages.
What is the maximum file size?
The site-wide maximum upload size (default 50 MB) applies. The admin can adjust this in the Settings page. The tool is efficient with large files regardless.
Can I count pages in multiple PDFs at once?
Currently you count one PDF at a time. Select each file individually to get its page count.
Does the page count include blank pages?
Yes. The tool counts all pages as defined in the PDF structure, including intentionally blank pages.
Is the tool free?
Yes, completely free. No registration, no account, no usage limits.
Can I use this on mobile?
Yes, it works on any modern mobile browser. Select a PDF from your phone storage and the page count appears instantly.
Does the tool work with scanned PDFs?
Yes. The page count is based on the document structure, not the content type. Scanned PDFs, text PDFs, and mixed PDFs all work identically.
Can I also see the file size?
The tool shows the file name. For file size, check your device file manager. The tool focuses specifically on page count.
Also Available As
pdf page counter, count pdf pages, pdf page count, how many pages in pdf, pdf page checker, count pages in pdf online, pdf page number checker, pdf page calculator, check pdf pages, pdf page count online, free pdf page counter, count pdf pages free, pdf page length, count pages pdf browser, pdf page tally
Explore More Tools
View all toolsFound a Problem?
Let us know if something with PDF Page Counter isn't working as expected.
Something went wrong. Please try again.
Thanks — we'll take a look.