PDF page remover
Published Updated
List pages or ranges such as 1, 4-6 and save a copy without them. Title, bookmarks and form fields stay, and the removed pages' content leaves the file.
Removed pages leave the file, not only the page list
This tool opens your PDF with pdf-lib, takes the pages you name out of the document's list of pages and saves it again. Because it edits the original document instead of building a new one, the title, author, bookmarks, links and form fields come through. The title, author and bookmarks are what PDF Split and Extract Pages from PDF do not keep.
Before saving, it also clears out what only the removed pages used. Bookmarks aimed at them are dropped, form fields whose boxes were only on them go with their values, and every object that nothing points to any more is left out. In a test with a two-page report, page 2's text was nowhere in the saved bytes and its bookmark was gone.
What stays is what the kept pages show or share: their text, fonts and images, and a bookmark heading whose entries still lead to kept pages. To hide part of a page you keep, use Redact PDF instead.
Typing the page list
Examples for a 10-page PDF:
| You type | Result |
|---|---|
| 3 | Page 3 removed, 9 pages left |
| 1, 4-6, 10 | 5 pages removed, 5 left |
| 2-4, 3 | 3 pages removed; the repeated 3 is ignored |
| 1-10 | Refused: at least one page must remain |
| 6-2 | Refused: a range has to run from low to high |
| 11 | Refused: page numbers must be between 1 and 10 |
| 2 4 or 2;4 | Refused: separate entries with commas |
Deleting pages step by step
Step 1
Add the PDF
Once the file loads you see how many pages it has, which is the highest number you can type.
Step 2
List the pages to delete
Numbers and ranges separated by commas, such as 1, 4-6, 10. At least one page has to remain.
Step 3
Remove and download
The remaining pages keep their order and the copy downloads as a new file; the original is untouched.
When another tool fits better
- Pull a few pages of a long file into a new one: Extract Pages from PDF.
- Change the order of the pages as well: Organize PDF.
- Black out part of a page rather than drop all of it: Redact PDF.
- Clear the title, author and other document properties: PDF Metadata Remover.
A 12-page test: this tool against pdf-lib alone
We built a 12-page PDF with pdf-lib 1.17.1 in Node 22. Every page has a line of text, a rectangle and one 240 x 180 noise image of about 130 KB. Pages 5 and 6 also carry the words REMOVED-PAGE-MARKER. We removed pages 5 and 6 in two ways: with the site's own removePagesCompletely (lib/pdfPagePrune.ts), which this tool runs, and with pdf-lib's removePage followed by save, which only unlinks the pages. Then we searched each file for the marker, in the file bytes and in every stream after inflating it, as plain text and as hex, because pdf-lib writes text as hex strings. We also counted the image objects.
| File | Size | Marker text found | Image objects |
|---|---|---|---|
| Original, 12 pages | 1,562,202 B | Yes | 12 |
| pdf-lib removePage and save | 1,562,198 B | Yes | 12 |
| This tool, 10 pages left | 1,301,941 B | No | 10 |
Unlinking the pages alone saved 4 bytes and left both pages' text and images in the file. The tool's result was 260,261 bytes smaller, 16.7 percent, which equals the 2 of 12 pages that were removed. A second version of the file gave the same pattern (1,562,196, then 1,562,193, then 1,301,936 bytes). In it all 12 pages shared one resource list naming all 12 images, as some generators write it. The tool's report said it dropped 7 objects and gave each of the 10 kept pages its own short resource list. In the first version it dropped 6 objects and needed no such lists. The files differ by a few bytes between runs because of the creation date. The images are noise and the text is one line per page, so the saving says nothing about your file.
More ways to type the page list
We ran the tool's list parser (copied from its component) on a 12-page file.
| You type | Result |
|---|---|
| 4 - 6 | Pages 4, 5, 6 (spaces around the hyphen are fine) |
| 01 | Page 1 |
| 1-3, | Pages 1, 2, 3 (a trailing comma is ignored) |
| 3- or -3 | Refused as not understood |
| 0 or 13 | Refused: page numbers must be between 1 and 12 |
| 1.5 | Refused as not understood |
| The Arabic-Indic digit three | Refused as not understood |
| A lone comma | Refused: enter at least one page number or range |
Bookmarks, links, form fields and page labels after a removal
We made a six-page test PDF with pikepdf 9.11.0: page labels i, ii, 1, 2, 3, 4, four bookmarks with two sub-entries, five links on page 1, two named destinations, an open action that shows page 3, a text field on page 2 and one on page 3, document properties and XMP metadata. Then we removed pages 3 and 4 with this page's own tool in Google Chrome 157, Firefox 155 and Playwright's WebKit build (not the Safari app) and read the results back with pikepdf. The three browsers gave the same structure and files of the same size.
| In the test file | After removing pages 3 and 4 |
|---|---|
| Page labels i, ii, 1, 2, 3, 4 | i, ii, 3, 4: every kept page keeps its label |
| Bookmark Chapter 1, to page 1 | Still leads to page 1 |
| Bookmark Chapter 2, to page 3, with Section 2.1 (page 3) and Section 2.2 (page 5) | Chapter 2 stays as a heading with no target, Section 2.1 is deleted, Section 2.2 leads to the old page 5, now page 3 |
| Bookmark Chapter 3, to page 4 | Deleted |
| Bookmark Appendix, through the named destination appx, to page 6 | Leads to the old page 6, now page 4 |
| Link to page 2 | Still leads to page 2 |
| Link to page 3, and a link to page 4 through the named destination sec4 | Both stay on page 1 with no target, and sec4 is deleted from the list of names |
| Web link to https://example.com/ | Unchanged |
| Open action: show page 3 | Deleted |
| Text field on page 3 holding hidden-value-XYZ | Field deleted; the value is in neither the file bytes nor any decoded stream, and neither is page 3 or 4's text |
| Text field on page 2 holding Ada | Kept with its value |
| Title, Author, Subject, Creator, creation date | Unchanged |
| Producer and modification date | Producer becomes pdf-lib (https://github.com/Hopding/pdf-lib); the modification date becomes the time of the removal |
| XMP metadata, 500 bytes | Copied byte for byte |
Removing page 1 instead left the labels ii, 1, 2, 3, 4, and removing page 2 left i, 1, 2, 3, 4, with the field on page 2 deleted and the link to it left without a target. The producer and modification date are set by pdf-lib, the library that saves the file: by default, loading a PDF sets the producer to the pdf-lib name shown in the table and the modification date to the current time, as pdf-lib 1.17.1's PDFDocument source shows.
Time and size on 200- and 1,000-page files
Times run from pressing Remove Pages to the download button, one run per cell. The tool reads the whole file again on that press, so the time covers opening, pruning and saving.
| File | Pages removed | Result | Chrome 157 | Firefox 155 | WebKit build |
|---|---|---|---|---|---|
| 200 pages, a 300 x 200 photo-like JPEG on each, 9,495,523 B | 1-100 | 100 pages, 4,728,061 B | 81 ms | 113 ms | 81 ms |
| The same file | 1-199 | 1 page, 48,042 B | 23 ms | 43 ms | 32 ms |
| 1,000 pages of one text line each, 325,075 B | 1-500 | 500 pages, 81,092 B | 261 ms | 448 ms | 363 ms |
| The same file | 2-1000 | 1 page, 892 B | 93 ms | 153 ms | 115 ms |
With pictures, the file shrinks by about what the removed pages held: half the pages, half the bytes. A text-only file can shrink by more than that, because saving packs the small objects of the pages into compressed object streams, which the test file did not use: half of the 1,000-page file came to 81,092 of 325,075 bytes, a quarter. In the WebKit build the one-page picture file and the 500-page file were 1 byte shorter.
Deleting PDF pages: questions
Can I delete pages that are not next to each other?
Yes. Separate numbers and ranges with commas, for example 1, 4-6, 10. The order you type them in makes no difference, and a page listed twice is removed once.
Is the content of a deleted page really gone?
Yes. Its text, images and notes, and form fields that sat only on it, are left out of the saved file. In tests, none of a removed page's words or its photo could be found in the output, even after every stream was decompressed. A font or image that a kept page also uses stays.
How much smaller does the file get?
Roughly by what the removed pages held. A three-page PDF with one photo per page went from 587,596 to 188,014 bytes after two pages were removed, close to the 187,859 bytes of copying the remaining page into a fresh file with Extract Pages from PDF.
Do bookmarks and links still work?
Bookmarks and links that lead to pages you kept work as before. A bookmark that pointed to a removed page is deleted, unless entries under it still lead to kept pages; then it stays as a heading with no target. A link to a removed page stays on its page but goes nowhere.
Can I remove pages from a password-protected PDF?
Not directly: the tool cannot read encrypted files and tells you so. Take off a password you know with Unlock PDF, then delete the pages from that copy.
Does removing pages lower the quality of the rest?
No. Nothing is rendered or recompressed, so the remaining text stays selectable and images keep their original data.
Does removing pages with pdf-lib alone shrink the file?
In our test it did not. Removing 2 of 12 pages with pdf-lib's removePage left the file 4 bytes smaller and both pages' text and images inside. This tool's version was 16.7 percent smaller and the marker text was gone.
Can I write the list with spaces, leading zeros or a trailing comma?
Yes, in our test 4 - 6, 01 and 1-3, were all read. Hyphens must have a number on both sides, and only ordinary digits are read.
Do page numbers like i, ii, iii stay right after deleting pages?
Yes. Page labels follow the pages you keep. A test file labelled i, ii, 1, 2, 3, 4 showed i, ii, 3, 4 after pages 3 and 4 were removed, and ii, 1, 2, 3, 4 after page 1 was removed. A label range whose pages are all removed is dropped.
Does removing pages change the PDF's properties?
Title, author, subject, creator and creation date stay. The producer becomes pdf-lib (https://github.com/Hopding/pdf-lib), the library that saves the file, and the modification date becomes the moment you remove the pages. XMP metadata is copied unchanged.
Can I type a range with a dash, such as 3–4?
Only with the ordinary hyphen key. A range typed with an en dash, as word processors often format it, was refused with the message Couldn't understand "3–4". Use page numbers or ranges like 3-5.
How long does it take on a big PDF?
Well under a second for the files we timed. Removing 500 of 1,000 text pages took 261 ms in Chrome 157, 448 ms in Firefox 155 and 363 ms in the WebKit build, and removing 100 of 200 picture pages from a 9,495,523-byte file took 81 to 113 ms.
Related guide
How to flatten, resize and shrink a PDF. The guide measures a plain page unlink at 2,318,065 bytes against 1,365,806 bytes after the tool's sweep of unreachable objects.