Skip to content
AgileLogics

Split PDF

Extracts a page range from a PDF into a new, separate PDF file.

How it works

Choose a PDF file, set the start and end page, and click Convert.

How do I extract pages from a PDF?

To extract pages, you copy a run of pages from the original PDF into a new, smaller PDF and leave the original untouched. With this tool you choose the file, type a start page and an end page, click Convert, and download split.pdf containing exactly that range, inclusive at both ends.

The work happens in your browser. The pdf-lib library opens the file, reads its page count, and copies the selected pages into a fresh document. Your original file on disk isn't modified, and no copy of it is uploaded.

A worked example

Say you've received a 40-page supplier contract and only need to send the payment schedule on pages 31 to 34 to your accounts team.

  1. Click Choose a PDF file and pick the contract.
  2. Type 31 in Start page and 34 in End page.
  3. Click Convert.
  4. Click Download. The file split.pdf has four pages: 31, 32, 33 and 34 of the original, in that order.

Page numbers here mean physical positions in the file, counting from 1. If the document prints its own numbering (a front section numbered i, ii, iii, or a report that starts at page 0), go by where the page sits in your PDF viewer's thumbnail panel, not by the number printed in the footer.

How the page boxes are read

The two fields are plain text boxes, and the tool is forgiving about what you type. This is how it interprets input, tested against a five-page document:

Start page End page Result
2 4 Pages 2, 3 and 4
3 (blank) Page 3 only; a blank end means "same as start"
5 5 Page 5 only
2.7 3.9 Pages 2 and 3; decimals are rounded down
abc abc Page 1; text that isn't a number counts as 1
0 9 Error: page 9 doesn't exist
4 2 Error: start is after end

A start below 1 is raised to 1. Out-of-range or reversed ranges produce "Enter a valid page range between 1 and N.", where N is the real page count, which is a handy way to find out how long a document is.

Common jobs and how to do them

Remove one page from the middle. There's no delete option, but two splits and a merge do it. To drop page 6 from a 20-page file, extract 1 to 5, then 7 to 20, and join the two downloads with the PDF merger. Rename each download as you go, because both arrive as split.pdf.

Send each chapter separately. Run the tool once per chapter range. The file input keeps your PDF selected, so you only change the numbers and click Convert again.

Turn one page into an image. The PDF to image converters render only the first page of whatever you give them. Extract the page you want here first, then feed split.pdf to PDF to PNG.

Fix a sideways scan inside a longer document. Extract the affected range, run it through Rotate PDF, and merge the pieces back together.

Will the extracted file be smaller?

Usually, though not always in proportion. pdf-lib's page copy brings along every object a page refers to, such as fonts, images and the content stream, and nothing else. So a 4-page extract from a text-heavy contract drops most of the original's weight. But if every page shares one large embedded font, or the pages you keep hold the big photos, the saving is smaller than the page count suggests.

Document-level extras don't come along: bookmarks, the original title and author metadata, and attached files are left out, since the new file is created from scratch and only receives pages. Text remains selectable because pages are copied as PDF objects, not converted to pictures. If the extract is still too large to send, see what compressing the PDF can do.

Protected and damaged files

pdf-lib won't open a PDF that has an encryption dictionary, so password-protected files and files with permission restrictions both fail with a message containing "is encrypted". The PDF specification allows a file to be readable by anyone yet still carry an owner password limiting printing or editing (ISO 32000-1, section 7.6), and those count as encrypted too. Remove the protection in the program that made the file, then split the unprotected copy. A file that isn't a real PDF, such as a renamed web page, fails with "No PDF header found".

Last updated

Frequently asked questions

How do I extract a single page from a PDF?
Enter the page number as the start page and either the same number or nothing as the end page. With start 5 and end left blank, the tool extracts page 5 alone.
Can I split a PDF into several files at once?
No. Each run produces one PDF containing one continuous range. To break a document into chapters, run the tool once per range (for example 1 to 12, then 13 to 30) and download each result before changing the numbers.
Can I pick pages that aren't next to each other, like 2, 5 and 9?
Not in one step, because the tool takes a start page and an end page rather than a list. Extract each page or range separately, then join them with the Merge PDF tool.
Is my PDF uploaded when I split it?
No. The file is read and split by JavaScript in your browser using the pdf-lib library, and the new PDF is created on your device. Nothing is sent to a server.
Why does it say to enter a valid page range?
Either a page number is higher than the number of pages in the document, or the start page is after the end page. The message tells you the document's page count, for example "between 1 and 5" for a five-page file.