Reorder PDF Pages
Drag pages into the sequence you want. Duplex scans that came out interleaved and inserts that landed in the wrong place both get fixed here.
Drag thumbnails to reorder, or use the arrow buttons under each page on a phone.
How to reorder pages
- Drop the PDF into the dashed box and wait for thumbnails. They render as you scroll, so you never wait for the whole file.
- Press and hold a page, drag it to the target position, release. On a phone use the ‹ › buttons under the thumbnail to shift it one slot at a time.
- Press Export in the new order. The document is rebuilt in that sequence and downloads automatically.
Why duplex scans come out scrambled
Feed a stack of paper through an automatic document feeder in duplex mode and a very common result is: the first half is pages 1, 3, 5, 7 and the second half is 2, 4, 6, 8. The machine scanned every front side first, flipped the stack, then scanned every back side, and wrote out two blocks.
To get back to 1, 2, 3, 4 you have to split the second block and interleave it into the first. That is tolerable at 30 pages and pure manual labour at 300. The realistic answer is to set the scanner to interleaved output before you scan — most scanners and scan utilities offer it, it is just not the default. Reordering afterwards is a repair, not a workflow.
The other common case: a misplaced insert
An appendix to slip into a contract, a chart that belongs after section 3, an appendix that should sit at the end of a paper. These touch one or two pages, and dragging them is far less work than regenerating the document.
Why reordering is the only operation that rebuilds the file
Delete, extract, rotate and insert-blank can all be done in place, changing only what needs to change. Order is different: in the PDF structure it is not an attribute but the sequence of nodes in the page tree — and pdf-lib exposes no reordering API. So this tool creates an empty document and copies pages into it one by one in the new order.
That difference has consequences worth knowing before you run it:
- Title, author, subject and keywords are copied over explicitly by the tool.
- Bookmarks are not carried across, because they belong to the old document's structure.
- Document-level form definitions may stop resolving — flatten PDFs with forms first.
- Page content, image quality, rotation and annotations are preserved exactly.
Two things to check afterwards
First, the printed page numbers. They are page content and do not move with the page, so a document that will be printed and bound will show obvious mismatches. Re-stamp them.
Second, cross-references. "See page 12" in a table of contents is just text; after reordering, the page it points at is somewhere else entirely. No tool can fix that — pages can be moved, meaning cannot.