Delete pages from a PDF

Deleting pages from a PDF rebuilds the document with the unwanted pages left out of the page tree, so they are gone from the saved copy rather than merely hidden. This tool removes the pages you list — single numbers or ranges — and produces the trimmed file locally in your browser, without uploading anything. The remaining pages keep their exact content, order and quality.

Remove PDF pages — runs on your device

Removal is the mirror image of extraction: here you name the pages you want gone and keep the rest. If it is easier to name the few pages you want to keep, use the extract PDF pages tool instead — the two are complements and produce the same kind of clean, rebuilt output.

How it works: rebuilding the page tree without the removed pages

A PDF stores its pages as leaf nodes of a page tree — a hierarchy of Pages and Page objects whose order defines the reading order. Each Page object points to a content stream (the drawing instructions) and to a resources dictionary listing the fonts, images and graphics states that content uses. Simply unlinking a page from the tree of an existing file would leave its content stream and images as orphaned objects still sitting in the file, recoverable by anyone who inspects it.

This tool avoids that by working in the copy direction. It creates a brand-new, empty PDF document and copies only the surviving pages into it, in their original order. pdf-lib’s page-copy routine walks each surviving page’s object graph — content streams, fonts, images, annotations — and imports exactly the objects that graph reaches. Objects used only by a removed page are never visited, so they simply do not exist in the output. Shared resources are handled correctly: a font subset used by both a removed page and a kept page is copied once, because the kept page still references it.

The practical consequences: the output usually shrinks by roughly the weight of the pages you dropped; page numbering shifts up to close the gaps (old page 5 becomes page 4 if you removed page 2); and internal links or bookmarks that pointed at removed pages are dropped rather than left dangling. Your original file on disk is never written to — the browser reads it into memory, and the result is offered as a separate download.

Worked example: stripping blank pages from a duplex scan

A 32-page scanned contract, 11.6 MB, came off a copier set to double-sided even though the paper was single-sided — so every even page is blank apart from scanner noise. Entering 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32 removes all sixteen blanks in one pass. The output is a 16-page file of 5.9 MB: almost exactly half the size, because in a scan each page is one large JPEG image and the blanks still compressed to a few hundred kilobytes each. The sixteen real pages are byte-identical in content to the originals, and the whole operation ran in about three seconds locally.

Removing PDF pages — frequently asked questions

Are deleted PDF pages really gone, or just hidden?

In the file this tool saves, the removed pages are not copied into the new document at all, so their content is absent from the output. Only resources genuinely shared with surviving pages, like a common font, are kept because those pages still need them.

How do I delete every other page of a PDF?

List the odd or even page numbers you want removed, for example 2,4,6,8. This is common after duplex-scanning single-sided documents, which produces a blank page after every real one.

Does removing pages make the PDF file smaller?

Usually yes, roughly in proportion to how heavy the removed pages were. Scanned pages carry large images, so dropping them shrinks the file noticeably, while removing sparse text pages saves little.

Can I undo a page deletion after saving the PDF?

Not from the output file, because the pages are not in it. Your original PDF is never modified by this tool, so keep it as your backup and you can always re-export with different pages.

Is it safe to delete pages from a confidential PDF here?

The document is processed entirely in your browser and never uploaded, so no third party sees it. If your goal is hiding sensitive text on pages you keep, use redaction instead of page removal.

Related tools