How to Reorder PDF Pages

Page order problems are more common than you'd expect: a scanner feeds pages in reverse, an appendix ends up before the chapter it belongs to, or a signed document needs its cover page moved to the front before it's sent out. Reordering fixes this without re-scanning or rebuilding the file from scratch.

How the reorder tool works

Once your PDF loads, every page is rendered as a small draggable thumbnail using PDF.js โ€” again, low-resolution previews only, purely for the drag-and-drop interface. You rearrange the cards into whatever order you need, with a "Reset Order" option if you want to start over. When you save, pdf-lib copies each original page's content into a new PDF in your chosen order. Because the underlying page objects are copied rather than redrawn, there's no quality loss from the reordering process itself โ€” fonts stay sharp, embedded images stay full resolution.

When this matters

Reordering is most useful for correcting a scan that came out in the wrong sequence, moving a table of contents or cover letter to the front of an assembled document, or rearranging sections after combining files from different sources where each arrived in a different order. If you're also adding or removing pages at the same time, it's usually simplest to delete unwanted pages first, then reorder what's left.

Things to watch for

Good practice

Keep the original file until you've opened the reordered result and confirmed every page landed where you expected. Since the thumbnails are previews rather than the actual output, it's worth a quick final check in a regular PDF viewer, especially for documents where page order has legal or presentational significance, like contracts or formal reports.