Drop the blank pages from a scan
2, 4, 6
Scanners often leave a blank back side. Look at the thumbnails, click the empty ones, and the new file is shorter.
Click the pages you do not want, or type their numbers, and save a copy of the PDF without them.
Last updated
Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.
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.
Drop the file on the page or choose it. If it needs a password to open, type it when asked.
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.
The button shows the count, such as Remove 3 pages. The tool builds a new PDF from the pages you did not mark.
The new file, named after yours with -edited.pdf at the end, downloads right away.
What you can type in the Pages to remove box.
| You type | Pages removed |
|---|---|
| 3 | Page 3 only |
| 2, 5 | Pages 2 and 5 |
| 5-7 | Pages 5, 6 and 7 |
| 2, 5-7 | Pages 2, 5, 6 and 7 |
| 1-3, 9 | Pages 1, 2, 3 and 9 |
2, 4, 6
Scanners often leave a blank back side. Look at the thumbnails, click the empty ones, and the new file is shorter.
1, 18-22
Ranges save clicks when a whole block goes. Check the red marks before you click Remove pages.
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.
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.
2, 5-7 in the Pages to remove box.No. The tool makes a new file and leaves yours as it was.
No. Removing pages runs in your browser, so the file never leaves your device and nothing is stored on a server.
No. A PDF needs at least one page, so the tool asks you to leave one unmarked.
No. The pages you keep are copied as they are, so text, images and links stay the same.
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.