PDF Tools
PDF Page Counter
Count the pages in any PDF in your browser. See file size, PDF version, encryption, and linearization. The file is never uploaded.
PDF file
Result
Drop a PDF above and the page count appears here, along with file size, PDF version, and whether the document is encrypted or linearized for fast web view.
How to use
- Drop a .pdf file onto the upload area or click Choose file. Up to 500 MB is supported.
- The tool reads the PDF in your browser, finds the Pages tree root, and shows the page count immediately.
- Read the additional details: file size in bytes and human units, PDF version declared in the header, whether the file is encrypted, and whether it is linearized for fast web view.
- Use Copy summary to grab the result as a plain-text block, or Clear to load a different PDF.
About this tool
PDF Page Counter answers the everyday question 'How many pages is this PDF?' without sending the file to a server. Drop a .pdf and the page count appears alongside the file size, the PDF version declared in the file header, whether the document is encrypted (password-protected), and whether it is linearized for fast web view. The page count is derived directly from the PDF specification's Pages tree: every PDF stores its pages in a hierarchical tree whose root dictionary is /Type /Pages with an integer /Count of all leaf pages in (and below) the node. This tool scans the file for that dictionary and reads the largest /Count value, which is always the root of the tree. If the PDF's catalog is stored inside a compressed object stream (more common in heavily optimized PDF 1.5+ files) and the Pages tree cannot be read directly, the tool falls back to scanning for individual /Type /Page leaf objects, which produces the same answer for every real-world document this approach has been tested against. Files are read with file.arrayBuffer() into a typed-array view in the tab, decoded as Latin-1 for keyword scanning (PDF dictionary syntax is 7-bit ASCII even when stream contents are binary), inspected in place, and released as soon as the count is computed. Nothing is uploaded, which makes the tool safe for invoices, contracts, scanned IDs, medical records, signed agreements, school transcripts, and any document you would rather not hand to a third-party SaaS. Encrypted PDFs are flagged but their page count is still read accurately because the page tree structure is not part of the encrypted content stream. Linearized PDFs are flagged because the same optimization that lets a viewer render the first page before the whole file downloads also leaves a /Linearized 1 marker near the head of the file. Useful for checking a print bill, confirming a contract matches the page count in an email, splitting a large packet into batches, or just answering the question without opening a desktop reader.
Free to use. Works in your browser. No signup, no login.
Related tools
You may also like
Image to PDF Converter
Combine images into a multi-page PDF locally with reorder, page size, and fit controls.
Open tool
SecurityFile Checksum Verifier
Compare a file to its published MD5, SHA-1, SHA-256, SHA-384, or SHA-512 hash.
Open tool
ImageImage Metadata Remover
Strip EXIF, GPS, XMP, IPTC, and color profiles from JPG, PNG, and WebP losslessly.
Open tool
ImageImage Watermark
Add a text or logo watermark with single, tiled, or diagonal patterns and full control over size, color, opacity, and rotation.
Open tool
ImageImage to Base64
Encode images as Base64 data URIs with CSS and HTML snippets.
Open tool