Menu
Advertisement

Save Selected Pages From a PDF

Click the pages you want, or type their numbers, and save only those pages as one PDF or as separate files.

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 extract pages from a PDF

Extracting pages is the opposite of deleting them. Instead of saying what to drop, you say what to keep: the two pages of a form that you need to send, one chapter of a long report, a single invoice from a bundle.

Click thumbnails to mark them with a check, or type page numbers into Pages to keep, using commas and ranges like 1-3, 8. Under Save as, choose One PDF to get the chosen pages together in one new file, or One file per page to get a ZIP with a separate PDF for each page. The button shows the count, for example Extract 4 pages.

It all runs in your browser, so your file stays on your device. A single result downloads as -extract.pdf, and separate pages come in a ZIP named by page, such as -page-3.pdf. To split a file into several parts by range, use split PDF.

What to know about extracting pages

  • Extracting is selecting: you build a new PDF from a chosen subset of pages and leave the rest behind.
  • The pages you pick keep their original order unless you reorder them, so 8, 2 still comes out as 2 then 8.
  • One file per page is a loop: for each chosen page, write a one-page PDF. Many pages means many small files, which is why they come in a ZIP.
  • Ranges are inclusive, so 3-5 gives three pages, not two.

How to save only some pages of a PDF

  1. Open your PDF

    Drop the file or choose it. If a password is needed to open it, type it when asked.

  2. Pick the pages to keep

    Click thumbnails to mark them, or type numbers in Pages to keep, for example 1-3, 8. A line under the pages lists what is selected.

  3. Choose how to save

    Under Save as, pick One PDF for a single file with all chosen pages, or One file per page for a ZIP of separate PDFs.

  4. Click Extract and download

    The button shows the count, such as Extract 4 pages. Then download the PDF or the ZIP.

Save as options

What you get for each way of saving.

OptionResultFile nameUse it for
One PDFOne new PDF with the chosen pages in orderyourfile-extract.pdfSending a few pages as a single attachment
One file per pageA ZIP with one PDF for each chosen pageyourfile-page-3.pdf and so onSplitting a bundle of invoices or forms

Extractions to try

Pull out the signed pages of a contract

Pages to keep

1, 14-15 Save as: One PDF

Only the first page and the signature pages go into the new file, ready to attach to an email.

Turn a bundle of receipts into separate files

Pages to keep

1-6 Save as: One file per page

You get a ZIP with six PDFs, each named after its page number.

Do the same in Python

extract_pages.py
from pypdf import PdfReader, PdfWriter
reader = PdfReader("contract.pdf")writer = PdfWriter()
for index in [0, 13, 14]:  # pages 1, 14 and 15, counting from 0    writer.add_page(reader.pages[index])
with open("contract-extract.pdf", "wb") as f:    writer.write(f)

This is the One PDF option in a few lines. For one file per page, create a new writer inside the loop and save each one.

Common mistakes

  • Choosing One PDF when you wanted separate files, or the other way round. Check Save as before you click Extract.
  • Typing a range from high to low. Write 3-5, not 5-3.
  • Expecting the file name to match the page label printed on the page. Names use the position in the file.
  • Forgetting that the original is untouched. The extracted pages are a copy, so the source still has all its pages.
  • Picking nothing. The button stays disabled until at least one page is selected.

Extract PDF pages FAQ

How do I save just one page of a PDF?

Open the file, click that page, and click Extract 1 page. Download the result as a one-page PDF.

Can I extract pages that are not next to each other?
Yes. Click any pages you like, or type a list such as 1, 4, 9-11.
How do I get each page as its own PDF?

Under Save as, choose One file per page. The tool gives you a ZIP with one PDF for each page you picked.

Is the PDF uploaded when I extract pages?

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

Is this the same as splitting a PDF?

It is close. Extracting keeps the pages you choose in one result, while splitting cuts the whole file into several parts by range.

Does extracting reduce quality?

No. Pages are copied as they are, with their text, images and links.

Can I extract 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