Menu
Advertisement

Remove Pages From a PDF

Click the pages you do not want, or type their numbers, and save a copy of the PDF without them.

By Nethanel Bar, Co-founder & CEO

Last updated

Advertisement

Ready to actually learn to code?

Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.

How to delete pages from a PDF

Sometimes a PDF has pages you do not want to send: a blank page from a scanner, a cover sheet, a page with private details. Deleting them means making a new PDF that contains every page except those.

Pick pages in two ways. Click a thumbnail to mark it for removal, or type page numbers into the Pages to remove box, using commas and ranges such as 2, 5-7. The two stay in sync, and a line under the pages lists what is selected. The button shows how many pages will go, for example Remove 3 pages. A PDF must keep at least one page, so the tool will not let you mark them all.

The work happens in your browser. Your file is not uploaded, nothing is added to the result, and the new file is named after yours with -edited at the end. To move pages around too, use organize PDF pages.

What to know about removing pages

  • Deleting a page from a PDF really means writing a new file that skips it. The page is not erased from the original.
  • A range like 5-7 includes both ends, so it means pages 5, 6 and 7.
  • Removing pages is a filter: loop over all the pages and keep the ones that are not on the remove list.
  • Page numbers shift after a delete. If you remove page 2, the old page 3 becomes page 2 in the new file.

How to remove pages from a PDF

  1. Open your PDF

    Drop the file on the page or choose it. If it needs a password to open, type it when asked.

  2. Mark the pages to remove

    Click a page to mark it with a red cross. You can also type numbers in Pages to remove, for example 2, 5-7. Click a marked page again to keep it.

  3. Click Remove pages

    The button shows the count, such as Remove 3 pages. The tool builds a new PDF from the pages you did not mark.

  4. Download the result

    The new file, named after yours with -edited.pdf at the end, downloads right away.

Page number syntax

What you can type in the Pages to remove box.

You typePages removed
3Page 3 only
2, 5Pages 2 and 5
5-7Pages 5, 6 and 7
2, 5-7Pages 2, 5, 6 and 7
1-3, 9Pages 1, 2, 3 and 9

Removals to try

Drop the blank pages from a scan

Pages to remove

2, 4, 6

Scanners often leave a blank back side. Look at the thumbnails, click the empty ones, and the new file is shorter.

Cut a cover sheet and an appendix

Pages to remove

1, 18-22

Ranges save clicks when a whole block goes. Check the red marks before you click Remove pages.

Do the same in Python

remove_pages.py
from pypdf import PdfReader, PdfWriter
reader = PdfReader("report.pdf")writer = PdfWriter()remove = {2, 5, 6, 7}  # counting from 1
for number, page in enumerate(reader.pages, start=1):    if number not in remove:        writer.add_page(page)
with open("report-edited.pdf", "wb") as f:    writer.write(f)

A set makes the check fast and clear. enumerate(..., start=1) gives page numbers that match the ones you see on screen.

Common mistakes

  • Counting the number printed on the page instead of its position in the file. The tool uses position, so a page printed as 1 may be page 3.
  • Typing a range from high to low, such as 7-5. Write it from low to high.
  • Typing a number past the end of the file. The tool shows an error that tells you where the file ends.
  • Trying to mark every page. A PDF needs at least one page, so leave one unmarked.
  • Sending the edited file before you check it. Open the downloaded file once and look at every page.

Delete PDF pages FAQ

How do I delete a page from a PDF without software?

Open the file here, click the page you want gone, and click Remove 1 page. Then download the new PDF. Nothing needs to be installed.

Can I remove several pages at once?
Yes. Click as many pages as you like, or type a list such as 2, 5-7 in the Pages to remove box.
Does the original PDF change?

No. The tool makes a new file and leaves yours as it was.

Is the PDF uploaded when I delete pages?

No. Removing pages runs in your browser, so the file never leaves your device and nothing is stored on a server.

Can I remove every page?

No. A PDF needs at least one page, so the tool asks you to leave one unmarked.

Will the remaining pages lose quality?

No. The pages you keep are copied as they are, so text, images and links stay the same.

Can I remove pages from a password-protected PDF?

Yes. If the file needs a password to open, the tool asks for it and opens the file once you type it. The password stays in your browser, and the saved PDF has no password.

Other developer tools

Coddy programming languages illustration

Learn to code with Coddy

Get started