BrowserTools
Advertisement
Home / PDF / Delete Pages from PDF

Delete Pages from PDF

Remove specific pages from a PDF using a simple range like 2,5-7 and download the trimmed file, locally in your browser.

Loading Delete Pages from PDF… If nothing happens, please enable JavaScript.

Deleting pages is one of the most common edits a PDF ever needs. A scan picks up a blank back side, a downloaded report carries a cover sheet and a page of legal boilerplate you do not want to forward, a contract includes an annexe meant for someone else, or a merged file ended up with a duplicate. Rather than reprinting or rebuilding the whole document, you simply remove the pages you do not need and keep everything else exactly as it was.

Frequently asked questions

Are my files uploaded to a server?
No. The entire operation runs inside your browser using pdf-lib. Your PDF is read from your local disk, a new document containing only the kept pages is assembled in memory, and the result is downloaded directly to your device. The file never leaves your computer, so confidential documents stay private.
How do I specify which pages to delete?
Type a range string using commas and hyphens. For example, 2,5-7 deletes page 2 and pages 5, 6, and 7. You can combine single pages and ranges freely, such as 1,3,8-10. Page numbers refer to the physical order of pages in the file, where the first page is 1.
What happens if I enter an invalid or out-of-range value?
The tool clamps numbers to the actual length of your document and ignores anything that is not a valid page or range, so a stray value will not break the process. If nothing valid is entered it asks you to provide a range, and if your input would delete every page it stops and warns you instead of producing an empty file.
Will the kept pages lose any quality?
No. Deleting pages is a structural operation. The pages you keep are copied as complete page objects, including their content streams, embedded fonts, and images, with no re-encoding. Text stays sharp, images keep their resolution, and vector graphics are preserved exactly. Only the file size shrinks, in proportion to the removed pages.
Does the page numbering follow printed page numbers in the document?
No. The numbers count the physical pages in the file, starting at 1 for the first page. They do not read any page numbers printed in the content, so if your document has a cover or front matter, the numbers you enter may differ from numbers shown inside the pages. The page count shown on load tells you the valid range.
Can I delete non-consecutive pages in one go?
Yes. Combine individual pages and ranges in a single string, for example 1,4,9-11, which removes pages 1, 4, 9, 10, and 11 in one operation. There is no need to run the tool multiple times to remove pages from different parts of the document.
Does this work with password-protected PDFs?
PDFs with an owner (permissions) password that restricts extraction or modification cannot be edited without that password. Files that only require a password to open, and that you can view normally, may work depending on the encryption mode used. Always make sure you have the right to edit the document.
What input file formats does the tool accept?
It accepts standard PDF files (.pdf) compatible with PDF versions 1.0 through 2.0. Documents from Word, LibreOffice, Google Docs, Acrobat, LaTeX, design tools, scanners, and browsers all work. Image only scanned PDFs are handled the same way, since the tool operates on whole page objects regardless of their content.
Can I remove pages from many PDFs at once?
The browser interface handles one file at a time. For bulk editing, pdf-lib is available as an npm package and can be scripted in Node.js to delete pages across hundreds of files automatically. The page copying logic is identical to what powers this browser tool.

About Delete Pages from PDF

This tool lets you describe the pages to remove with a short, familiar range string. Enter something like 2,5-7 to delete page 2 and pages 5 through 7, and the tool parses it into a set of page numbers, validates it against the real length of your document, and builds a brand new PDF that contains only the pages you kept. It does this with pdf-lib by copying the surviving page objects into a fresh document, so the kept pages retain their original text, fonts, images, and quality with no re-encoding. The tool shows you the original page count as soon as you load a file, so you always know the valid range, and it refuses to delete every page so you never end up with an empty file.

All processing runs inside your browser. Your PDF is read from local disk, the new document is assembled in memory, and the trimmed file downloads straight back to your device. Nothing is uploaded, which is exactly what you want when the document is a signed agreement, a bank statement, a medical record, or anything else you would not hand to a third party server. The tool also works offline once the page has loaded, and the page numbering always refers to the physical order of pages in the file rather than any numbers printed in the content.

Why Deleting a PDF Page Is Really an Act of Rebuilding

Intuitively, deleting a page from a PDF sounds like erasing a slice from a stack of paper, but under the hood it is closer to reassembling the stack from scratch. A PDF stores its pages as objects referenced from a structure called the page tree, and the document keeps a cross reference table that records the exact byte offset of every object in the file. Simply blanking out a page would leave dangling references and a broken index, so well behaved tools instead build a new document, copy across only the page objects you want to keep along with the fonts and images they depend on, and write a fresh cross reference table.

This rebuild is why removing pages is lossless yet also why the output is a new file rather than an in place edit. Because each page carries its own content stream and references shared resources, the copy operation can bring along exactly what a kept page needs without dragging in resources used only by deleted pages. In practice this means a heavily trimmed document often shrinks more than you might expect, since fonts and images that appeared only on the removed pages are left behind entirely.

There is a subtle wrinkle that catches people out: incremental updates. PDF allows a file to be edited by appending changes to the end rather than rewriting it, so some PDFs technically still contain older versions of pages hidden in earlier parts of the file. A naive deletion that only adjusts the page tree might leave that old content recoverable. Building a clean new document, the approach used here, sidesteps this by writing only the kept pages into a freshly serialized file, which is also why this method is the safer choice when you are removing pages that contained sensitive information.

Advertisement
Advertisement
Advertisement