keptlocal
Files never leave your browser

Delete PDF Pages

Upload a PDF, enter the page numbers you want to remove, and download the cleaned-up file instantly. Nothing is uploaded to a server.

Drop a PDF here, or

Files never leave your browser.

Drop a PDF to get started.

How to delete pages from a PDF

  1. Drop your PDF into the zone above, or click to browse and select it.
  2. In the Pages to delete field, enter the page numbers you want to remove — for example 1, 3, 5-8 removes pages 1, 3, 5, 6, 7, and 8.
  3. Click Delete pages & download. The trimmed PDF saves directly to your device.

Everything runs in your browser using pdf-lib. No file is sent to a server — open DevTools (F12) → Network while processing to verify zero upload requests.

When to remove pages from a PDF

  • Removing a cover page before sharing — strip an internal title page or watermarked cover before forwarding a report.
  • Trimming a scanned document — a scanner often captures a blank page at the end of a duplex scan; delete it in seconds.
  • Cutting out irrelevant appendices — share just the body of a contract without the boilerplate exhibits.
  • Cleaning up extracted sections — after splitting a large PDF, remove any unwanted pages from the extracted chunk.
  • Removing confidential pages before sharing — strip pages containing sensitive data before distributing a document more widely.

How it works under the hood

pdf-lib loads your PDF into memory and represents each page as an object in the document's page tree. When you specify pages to delete, the tool converts your input into a sorted list of zero-based indices and calls doc.removePage(index) for each, working from the last page backwards so that earlier indices stay valid as pages are removed.

The remaining pages are saved into a new PDF byte stream and downloaded directly — your original file on disk is never touched. All content on the kept pages (text, images, annotations, fonts) is preserved exactly as it was.

Limits and what to expect

  • Minimum output: at least one page must remain. The tool will stop you from deleting all pages.
  • Page numbering: pages are numbered from 1 regardless of any printed page numbers in the document. A PDF that prints "Page 5" on what is physically the first page is still page 1 in this tool.
  • Password-protected PDFs: the tool attempts to load encrypted PDFs with ignoreEncryption. PDFs requiring a password to view content will fail — unlock them first.
  • Cross-references: some PDFs have internal links (table of contents, footnote references) that point to page numbers. Deleting the target page does not update those links — they will become broken in the output.
  • Browser support: Chrome 90+, Firefox 90+, Safari 15+, Edge 90+.

Privacy compared to other PDF page removers

Server-based PDF tools receive your file, process it, and return the result. Your document — whether it is a contract, a medical record, or financial paperwork — passes through infrastructure you do not control. keptlocal processes everything locally: the PDF is read into browser memory, the pages are removed, and the result downloads. No server receives your file at any point.

You can confirm this yourself. Open DevTools (F12), go to the Network tab, and watch while you delete pages. You will see no POST requests, no uploads, and no outbound file transfers.

Frequently asked questions

Are my files uploaded to a server?
No. Page deletion runs entirely in your browser using pdf-lib. Your PDF never leaves your device — open DevTools → Network while processing to confirm no upload requests.
How do I specify which pages to delete?
Enter a comma-separated list of page numbers and ranges — for example '1, 3, 5-8' deletes pages 1, 3, 5, 6, 7, and 8. Pages are numbered from 1.
Can I delete all pages?
The tool requires at least one page to remain in the output. If you enter all page numbers, processing will stop with an error.
Will the remaining pages keep their original quality?
Yes. pdf-lib copies page content byte-for-byte without re-rendering. Text stays selectable, images stay sharp, and annotations are preserved.
Is there a file size or page limit?
No hard limit. The practical ceiling is your device's available RAM — most laptops handle hundreds of pages without issue.
Can I undo after downloading?
The tool only modifies a copy of the PDF in memory — your original file on disk is untouched. If you want the pages back, simply reload the original.