# Delete PDF Pages

URL: https://hifreetools.com/pdf/delete-pdf-pages

> Open a PDF, list the pages you want to remove (like 2, 5-7), and download a new PDF with those pages taken out and everything else kept in order. It runs in your browser, so your file is never uploaded.

## Quick answer

To delete pages from a PDF, open it here and list the pages to remove — single pages like 2, ranges like 5-7, or a mix. The tool builds a new PDF containing every page except those, in the original order, and downloads it. It runs entirely in your browser with pdf-lib, so nothing is uploaded and there is no watermark. You must keep at least one page.

## Formula

- Pages kept: kept = all pages 1…N that are NOT in the delete list

Your PDF is read locally and its page count shown. You list the pages to delete; the tool parses that into a set of page numbers and validates each is within range. It then walks the document and copies every page that is NOT in the delete set into a new PDF, preserving the original order, and downloads it. The live hint shows how many pages will remain. The kept pages are copied unchanged, so there is no quality loss. Everything happens on your device.

## Examples

- Remove a single page: A 10-page PDF, delete: 1 → A new 9-page PDF (pages 2-10)
- Remove a range: A 12-page PDF, delete: 5-7 → A new 9-page PDF (pages 1-4 and 8-12)
- Remove scattered pages: A 20-page PDF, delete: 2, 10, 20 → A new 17-page PDF without pages 2, 10, and 20

## FAQ

**Are my files uploaded anywhere?**
No. Page removal runs entirely in your browser with pdf-lib. The PDF is read locally, the kept pages are copied into a new file, and it is downloaded directly — nothing is sent to a server.

**How do I list the pages to remove?**
Use single pages (2), ranges (5-7), or a mix separated by commas (2, 5-7, 12). Order doesn't matter for deletion, and duplicates are ignored.

**Will the kept pages lose quality?**
No. Remaining pages are copied unchanged, so text stays selectable and images keep their resolution.

**What if I want to keep only a few pages?**
Use the Split PDF tool, which extracts the pages you list. This tool does the opposite — it removes the pages you list.

**Can I delete all the pages?**
No. At least one page must remain in the document, so an all-pages selection is rejected.

**Is there a watermark?**
No. The output is a clean PDF with no watermark and no added pages.


## Sources

- [pdf-lib — create and modify PDFs in JavaScript](https://pdf-lib.js.org/)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Delete PDF Pages", https://hifreetools.com/pdf/delete-pdf-pages
