Delete Pages From a PDF
Remove Pages deletes the pages you list, such as 2,5-7, from a PDF and keeps the rest in their original order. The result downloads as a new PDF; 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.
Remove Pages deletes the 1-based indexes in `pageNumbers` and copies the rest with qpdf. Ranges, `all` and comma lists are accepted. Every page number you list must exist: a page past the last one is rejected with an error, and a range end past the last page is clipped.
An empty list returns the original PDF. Listing every page is rejected, because a PDF with no pages cannot be returned.
This is a page-object subset, not a redaction of leftover content in the remaining pages. Password-protected files are unlocked for you on this page once you enter the password; API callers run Unlock first.
To keep a contiguous range, use Extract Pages, or list the pages to drop here.
How the list is read: items are separated by commas, a dash makes a range, and `all` or an n-function such as `2n` is also accepted. The n-function is evaluated for n from 1 up to the page count and keeps the results that fall inside the document, so `2n` selects pages 2, 4, 6 and so on. The tool then keeps every page that is not selected, in its original order, and writes them with qpdf. Listing a page twice is harmless.
How mistakes are reported: a single page or the start of a range that is below 1 or past the last page is rejected with a message such as `Page 9 does not exist; the document has 5 pages.` A list with no usable item, for example `abc`, is rejected as not a valid page selection. A range that starts inside the document but ends beyond it, such as `3-99` on a 5-page file, is clipped to the last page instead of failing. A range that starts beyond the last page, such as `7-9` on a 5-page file, fails the same way a single missing page does.
Two outcomes look like success but are not edits. A blank list returns your original file unchanged, so the output has the same pages as the input. A list that selects every page, including `all`, is rejected, because there would be nothing left to return.
Page numbers are the 1-based positions a viewer shows in its page counter, not the printed numbers on the pages. If a PDF starts with a cover and roman-numeral front matter, count physical pages from the first one. If you are unsure which pages are which, open the file first, or use Get Info to read the page count.
Removing pages does not blank out anything on the pages you keep and does not rewrite their text. To black out sensitive content on kept pages use Auto Redact. To split a file into several smaller PDFs instead of discarding pages, use Split.
Features
- qpdf subset of pages that are not in `pageNumbers`
- Accepts single pages, ranges, comma lists, `all` and n-functions such as `2n`
- A range that runs past the last page is clipped; a start past the last page is rejected
- Kept pages stay in their original order
- Empty removal list returns the original file
- Removing every page is rejected; at least one page must remain
- Anonymous API at /api/v1/general/remove-pages
When to use this tool
- Drop a cover sheet before sending the rest
- Strip blank separator pages you already identified
- Keep the middle of a scan by deleting head and tail pages
- Remove the signature page you want to replace before merging a new one in
- Delete every even page of a one-sided scan that was fed through a duplex scanner by mistake, using 2n
How do I delete pages from a PDF?
- Upload a PDF and note its page count from your viewer, because every number you type must exist in it.
- Type the viewer page numbers to delete, counting from 1: `1` for the cover, `1,4-5` for the cover plus pages 4 and 5, or `2n` for every even page.
- Click Process and download the PDF.
- If you get a message that a page does not exist, compare your numbers with the real page count and fix the one it names.
- Open the result, check that the page count equals the original minus the pages you listed, and flip through the pages on either side of each removal.
Limits and edge cases
- Not content redaction
- Password-protected files need the password; API callers run Unlock first
- No preview of which pages will remain
- Page numbers follow the position in the file, not the numbers printed on the pages
- A blank list changes nothing, and a list that selects every page is rejected
- 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
- On a 5-page file, pageNumbers=1 yields pages 2-5
- On a 1-page file, pageNumbers=1 is rejected because it would remove every page
- On a 10-page report, `1,9-10` removes the cover and the last two pages and returns 7 pages in the original order
- On a 5-page file, `7` fails with `Page 7 does not exist; the document has 5 pages.` and no file is produced
- On a 6-page file, `2n` removes pages 2, 4 and 6 and leaves pages 1, 3 and 5
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
- Is page numbering 0-based?
- No. Use viewer page numbers starting at 1.
- What if I remove a page that does not exist?
- It is rejected with a page-out-of-range error, so a typo does not silently do nothing.
- Does this redact text on kept pages?
- No. It only drops page objects. Use Auto Redact if you meant blackout, knowing that tool blacks whole pages.
- Can I remove every page?
- No. Removing every page is rejected; keep at least one.
- What does 3-99 do on a 5-page file?
- It removes pages 3, 4 and 5. A range end past the last page is clipped to the last page. A range that starts past the end, such as 7-9, is rejected instead.
- How do I delete every other page?
- Enter 2n to remove the even pages. The expression is evaluated for each n from 1 up to the page count and results beyond the last page are dropped. To remove the odd pages instead, list them by hand, for example `1,3,5,7`.
- I entered nothing and got my file back. Is that a bug?
- No. A blank list selects no pages, so the original is returned as it was. Type at least one page to see a change.
- Should I use Remove Pages or Extract Pages?
- Use Remove Pages when you know which few pages to drop, such as a cover or an appendix. Use Extract Pages when you know which few pages to keep. Both end with a subset of the original pages, so pick the shorter list to type.
- Does it work on a page that was added by scanning, such as a blank back side?
- Yes, any physical page can be listed by its position. If you would rather find blank pages automatically, Remove Blanks sorts text-free pages into a separate file, but it does not delete anything from your original.
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/remove-pages" \
-F "[email protected]" \
-F "pageNumbers=1" \
-o output.pdfAlso 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
SkillClaude Code, Codex, Cursor and other AI agents can run Remove Pages for you with this skill: /skills/pdf123-remove-pages.md
Files are used only for this processing job and deleted automatically afterward.