PDF Tools

Reorder PDF Pages

Last updated: June 17, 2026

Blake Boege
Written by Blake Boege · Founder, Calculator Answers

A PDF page reorder utility is a document manipulation tool that restructures the internal page tree of a PDF file. By copying pages in a custom sequence index, it creates a new document with the rearranged ordering.

Rearrange the page sequence in your PDF file. Processed locally in your web browser for complete privacy.

See also: PNG to PDF, Rotate PDF, and Crop PDF.

Quick Answer

Reorder pages in a PDF. Input your custom sequence (e.g., 3, 1, 2) and download the rearranged PDF document.

Drag and drop your files here, or browse

Supports .PDF files up to 20MB

Was this helpful?

Examples

Reverse page order

Input sequence '3,2,1' for a 3-page PDF

Rearrange sections

Input sequence '1,3,2,4' to swap middle pages

How it works

When a PDF is loaded, pdf-lib reads the catalog and maps the count of internal page objects.

The custom comma-separated order is parsed. The script verifies that every listed page number is within the range of 1 to the document's total pages.

A new PDF document is instantiated. Pages are copied from the original file in the exact sequence requested using copyPages.

The pages are appended to the new PDF, saved, and triggered as a browser download.

In-Browser Processing. The entire operation is done on your local CPU. No web request containing your document data is sent.

Frequently asked questions

Select your PDF file. The tool will read the file and report the number of pages. Enter your new page sequence as a list of numbers separated by commas (e.g. '3,1,2' to make page 3 first, page 1 second, and page 2 third). Click Reorder Pages and download the updated file.

Yes. If you enter '1,1,2', the output PDF will contain page 1 twice, followed by page 2.

Yes. Processing takes place in your browser cache. Your files are never sent over the internet or saved on our servers.