Skip to main content
PPDF123

Extract Pages From a PDF

Extract Pages saves the pages you list, such as 1,3,5-8, as a new PDF in the order you type them. Everything else is left out, and your original file is not changed.

Drag and drop a file here, or click to choose

Accepts PDF · up to 500.0 MB per file

You can also paste a file with Ctrl/Cmd+V, or from the clipboard menu.

Extract Pages keeps only the pages you list, for example `1,3,5-8`, and drops the rest. The result is a new PDF with the pages in the order you list them; a page number repeated in the list is used once.

The list accepts single pages, ranges such as `5-8`, the word `all`, and expressions such as `2n+1` for every odd page. A page number outside the document is rejected with an error instead of being skipped.

Pages are copied with qpdf, not re-rendered, so text stays selectable and images are not redrawn. The tool shares the `/api/v1/general/rearrange-pages` endpoint: the website sends your list as `pageNumbers` and leaves `customMode` unset, which selects custom-order mode.

Extract Pages is the mirror image of Remove Pages. Pick this one when you know which pages to keep and Remove Pages when you know which to drop. To cut a document into several files in one pass, use Split.

The page expression language is the same one used by Rearrange Pages, so a few forms are worth knowing beyond a plain list. `all` keeps every page and is useful mainly as a sanity check that the file parsed. `5-8` is an inclusive range. `2n+1` keeps every odd page and `2n` every even page, which is handy for pulling a duplex scan back into reading order or stripping interleaved photocopies. Combinations work: `1,10-12,2n+1` is read left to right. An empty field is not the same as `all`; the form treats a blank list as no pages selected.

The output order is the order of your list, not the document order. `5,1` gives page 5 first, then page 1. That is a feature when you are assembling a specific reading order, and a surprise when you only meant to filter. If you want to keep a subset but preserve the original sequence, list the pages in ascending order or use Remove Pages instead.

Duplicates collapse. Listing page 3 twice produces one copy of page 3, because Extract keeps a set of pages rather than appending them. If you genuinely need a page repeated, that is Rearrange Pages in Duplicate mode, which writes the page as many times as you list it. The distinction matters when you are building a packet that needs the same cover sheet at several points.

Out-of-range handling is strict on purpose. A number past the last page fails the whole request with a page-out-of-range error rather than being ignored. That is safer for regulated workflows: a typo that silently drops a page is worse than a job that refuses to run. Get Info reports the page count if you are unsure how many pages the file has.

Password-protected files are unlocked for you on this page once you enter the password; API callers run Unlock first.

Features

  • Keep a single page, a range, or a list such as 1,3,5-8
  • Pages come out in the order you list them; repeats are used once
  • Pages are copied with qpdf, so text stays selectable
  • Keeps bookmarks and forms on the retained pages, not the dropped ones
  • Anonymous API at /api/v1/general/rearrange-pages with pageNumbers

When to use this tool

  • Send one exhibit, signature page or chart instead of the whole document
  • Pull a chapter out of a long report
  • Build a shorter version of a document for review
  • Strip a scanned cover sheet or blank separators before sending

How do I extract pages from a PDF?

  1. Upload the PDF and enter its password if the page asks for one.
  2. Type the pages to keep, for example 1,3,5-8 or 4-9. Page numbers start at 1.
  3. Click Process. Pages you did not list are left out of the new file.
  4. Download the PDF and check the page count and order.

Limits and edge cases

  • A page number outside the document is an error, not a skip
  • Repeated page numbers are used once; Rearrange Pages in Duplicate mode writes each page twice
  • Password-protected files need the password; API callers run Unlock first
  • A blank page list selects nothing rather than all pages
  • Upload limit on this website: 500 MB per file, sent in chunks above about 95 MB. A single direct API request body is capped at 100 MB.

Examples

  • Entering 1,4,7-9 on a 10-page file gives a 5-page PDF with pages 1, 4, 7, 8 and 9
  • Entering 5,1 gives a 2-page file with page 5 first
  • Entering 2n on a 6-page duplex scan gives the three back-side pages in order

Privacy for this tool

Files are uploaded over HTTPS, processed in memory or a short-lived temporary directory on our servers, and deleted when your result is ready. We do not keep copies for later browsing, training, or advertising profiles. See the Privacy Policy for retention details and AdSense cookie disclosures.

Frequently asked questions

Does the extracted file keep a digital signature?
No. In our test, extracting pages from a PDF with a certificate signature returned a file with no signature field, so there was nothing left to validate. Extract first, then sign the new file.
How do I extract pages from a PDF?
Upload the PDF, type the pages to keep, such as 2,5-7, and click Process. You download a new PDF that contains only those pages.
Are the extracted pages kept in their original order?
They follow the order you type. Entering 5,1,3 gives page 5, then page 1, then page 3, and a page listed twice appears once.
What happens if I enter a page that does not exist?
The request fails with a page-out-of-range error, so a typo is reported instead of quietly giving you a shorter file.
Does extracting pages reduce quality?
No. Pages are copied with qpdf instead of being reprinted, so text stays selectable and images are not redrawn.
What is the difference between Extract Pages and Split?
Extract Pages produces one new PDF with the pages you keep. Split cuts the whole document into several files at the page numbers you give and returns them as a ZIP.
Can I keep every other page?
Yes. Enter 2n+1 for odd pages or 2n for even pages. This is useful for reordering duplex scans or removing interleaved copies.
Can I duplicate a page with Extract Pages?
No. Listing a page twice keeps it once. To repeat a page, use Rearrange Pages in Duplicate mode.

Last updated:

Call this from code

Every tool on this site is a plain REST endpoint - no account or API key needed for anonymous use. Built for AI agents and developers as much as for browsers.

curl -X POST "https://pdf123.xyz/api/v1/general/rearrange-pages" \
  -F "[email protected]" \
  -F "pageNumbers=1" \
  -o output.pdf

Also available as an MCP tool for agent clients that speak Model Context Protocol (JSON-RPC 2.0 over POST /mcp). Full API reference

Use it from an AI agent

Skill

Claude Code, Codex, Cursor and other AI agents can run Extract Pages for you with this skill: /skills/pdf123-extract-pages.md

All agent skills

Files are used only for this processing job and deleted automatically afterward.