Reorder Pages

Put PDF pages in the order you want by listing them — 3,1,2 — or flip the whole document end to end.

Runs on your devicePDFWorkingNo account needed

What this tool does

Reorder Pages rebuilds a document from a list you write. Type the sequence you want, such as 3,1,2 for a swap or 5-8,1-4 to bring a block to the front, and every page you name is copied into a fresh PDF in exactly that order using pdf-lib. Pages are copied rather than redrawn, so text stays selectable and images keep the resolution they arrived with.

The list is read literally, which gives it more reach than a sort. A page you leave out is dropped, so 2,3 on a five-page file returns two pages, not five. A page named twice is written twice. A descending range such as 8-5 counts backwards, and the words first and last stand in for numbers when you would rather not count to the end. Reverse the whole document is a separate switch and it takes priority: tick it and the order box is ignored entirely, the file coming back last page first.

The whole rebuild stays inside this browser tab: the PDF is read into memory, the new document is assembled there, and the file is not uploaded. What that rebuild costs is worth knowing first. The result is a brand new file, so the outline is gone and bookmarks with it, and document metadata such as the title and author is not carried across. Internal links are copied along with the page they sit on, but their destination no longer resolves to a page in the rebuilt file, so a contents page that jumped to page 12 stops jumping. An encrypted PDF cannot be opened here at all and is refused with a message pointing at Unlock PDF.

How to use it

  1. Add the PDF. Drop one document on the panel or choose it from disk. Add several and each is rebuilt against the same list, one after another, so a file with fewer pages than the highest number you typed stops the run with an error.
  2. Write the new order. Type the pages in the sequence you want them: 3,1,2 to swap, or 5-8,1-4 to move pages as a block. Leaving it on all keeps the document order.
  3. Or tick Reverse the whole document. That flips every page end to end and overrides whatever is in the order box, which saves typing 40,39,38 down a long file.
  4. Save the rebuilt file. The output is named after the source with -reordered added, so notes.pdf comes back as notes-reordered.pdf and the original is untouched.

Processing & privacy

Runs on your device. Your file is processed directly in this browser.

Common use cases

A cover sheet that ended up at the back

Feeders often pull the title page through last. On a ten-page scan, last,1-9 lifts it to the front and leaves the rest in sequence.

A stack scanned back to front

The whole run arrives with page one at the end. Reverse the whole document straightens it in a single pass, with nothing to type.

Moving a section rather than a page

An appendix that belongs after the introduction is a range, not a shuffle: 1-4,20-28,5-19 rewrites the document with that block in its new place.

Assembling a specific print sequence

Booklet and duplex jobs sometimes need an order the document does not hold. The list can name any sequence, and may repeat a page where the job calls for it.

Questions

Does the document leave this tab?
No. pdf-lib runs inside the page, reads the file into memory and writes the new document there, so the document's own bytes are never transmitted or stored. The network traffic a rebuild does make is code and a tally: the PDF processor module and the pdf-lib script, both served from this site and fetched on first use in a tab, and the anonymous view count every tool page records, which carries the tool's name and nothing from your file.
Are there page thumbnails I can drag?
No. The order is typed as a list rather than arranged on a canvas, which is faster for a block move like 5-8,1-4 but does mean knowing which page number is which — keep the document open alongside to check. Organize PDF takes the same kind of list and adds a rotation for the pages it keeps.
What happens to pages I leave out of the list?
They are dropped. The list is the entire document you get back, so 2,3 on a five-page file returns a two-page PDF. Leave the box on all when you only want to reverse — the tick overrides it in any case — and reach for Delete Pages when removing is the actual job.
Can the same page appear twice?
Yes. Nothing removes duplicates from the list, so 1,2,1 writes page one at the front and again at the end. That is occasionally what you want for a cover or a terms sheet, and easy to do by accident otherwise.
Why was my order rejected?
A number past the end of the document stops the run and the message names the real page count. Ranges accept numbers plus first and last; odd and even are read by Delete Pages but not by this box. Clearing the box is not an error — a blank order is treated as all, and the pages come back in the order they were already in.
Does reordering cost quality or size?
Nothing is re-encoded, so each page keeps its original streams. The new file re-embeds the fonts and images those pages use and is saved with object streams, so the byte count usually lands near the original and can move either way.
What about fillable forms and password-protected files?
A form is safest flattened before reordering, because the form dictionary lives at document level and does not survive a rebuild — Flatten PDF does that. An encrypted document cannot be read at all until its password is removed with Unlock PDF.

Related tools

  • Merge PDF — Combine several PDFs into one document in the order you choose.
  • Split PDF — Split one PDF into separate documents by page range.
  • Compress PDF — Reduce PDF file size while preserving the quality that matters.
  • PDF to JPG — Export every page of a PDF as a JPG image.
  • JPG to PDF — Turn one or many JPG photos into a single PDF.
  • Protect PDF — Add a password and set permissions on a PDF.