Toolstia / Reorder PDF pages
Reorder the pages of a PDF
Pages end up in the wrong order for ordinary reasons. A scanner feeds a stack in the wrong sequence, two documents are merged in the wrong direction, or you simply want an appendix up front or a cover page moved to the end. Fixing it should not require an installed PDF editor or an upload to a stranger's server.
This tool opens a PDF in your browser, draws a small thumbnail of every page and lets you move each page earlier or later with arrow buttons. Page numbers under the thumbnails are the original numbers, so you can always tell which page is which after moving things around. When the order looks right, you save a new PDF.
The file never leaves your device. Both the reading of the pages and the building of the new file happen in the page, so it is suitable for contracts, scans of ID and other private documents.
Drop a PDF here, or click to choose
One PDF at a time. Nothing is uploaded.
How it works
- Choose your PDF and wait for the thumbnails.
- Use the left and right arrows under a page to move it.
- Press Save new order and download.
Thumbnails
Each page is drawn small so you can tell pages apart. Page numbers under the thumbnails are the original numbers, which helps you keep track after moving things around.
Keeps your content
Pages are copied into the new file as they are, so text stays selectable and images keep their quality.
Reset
Reset order puts the pages back as they were so you can start again without reloading the file.
Page limit
To keep your browser responsive, files with more than 150 pages are refused. Split a long file first, then reorder the parts.
Worked example
Say you have a six-page report in which pages 3 and 4 were scanned the wrong way round. Drop the file in. Thumbnails appear labelled Page 1 to Page 6. Click the right arrow (move later) on Page 3. It swaps places with Page 4, and the grid now reads 1, 2, 4, 3, 5, 6. The labels still show the original numbers, which is the point: you can see what was moved.
Press "Save new order and download". The new file is named after the original with "-reordered" added before the extension, for example report-reordered.pdf, and a message confirms how many pages were saved and the file size.
How it works
The tool uses the pdf.js library to draw each page onto a small canvas, about 140 pixels wide, and keeps it as a low-quality JPEG purely for the preview. Those thumbnails are only for your eyes. They are not used in the output.
When you save, the tool uses pdf-lib to open the original file, copy the pages across in your new order into a fresh document, and write it out. The pages are copied as page objects, so text stays selectable and searchable and images keep their original quality. Your original file is not modified.
Moving pages a long way
Each click moves one page by one position, and there is no drag and drop. To move the last page of an eight-page file to the front you click the left arrow seven times. If you need a big rearrangement, it is quicker to think about which pages are out of place and move those, rather than to rebuild the order from scratch. The arrows are disabled at the ends, since a first page cannot move earlier and a last page cannot move later.
"Reset order" puts all pages back in their original sequence without reloading the file, which helps if you lose track of an experiment.
Limits and error messages
Files of more than 150 pages are refused with the message "This PDF has more than 150 pages. Split it into smaller files first." The cap exists because every page is rendered for the preview, which can slow a phone or an older laptop. A password-protected PDF shows a message asking you to remove the password first. A damaged file reports that it could not be read.
Save is greyed out until the order actually differs from the original. If you move a page and move it back, the button turns off again.
What may not carry over
Only the pages themselves are copied. Features that belong to the document as a whole, such as bookmarks, a table of contents panel, document-level metadata and some interactive form behaviour, are not guaranteed to survive the rebuild. Links inside a page that point to another page can also stop working if that page has moved, because the link still points to its old position. If your PDF relies on these things, check the saved file before sending it on.
When to use something else
If you want to delete pages as well, use the remove pages tool, which uses the same thumbnails with a Remove button. To combine several PDFs, use the merge tool first, then reorder the result. For a very long file, split it into sections, reorder each, and join the parts again.
Questions
Can I also delete pages?
Use the remove pages tool for that.
Can I drag and drop?
Not yet. Buttons are used because they work the same with a keyboard and on a phone.
Is anything uploaded?
No. Your PDF stays in your browser and is never sent anywhere.
Why is the save button greyed out?
The button is only active when the page order differs from the original. Move at least one page, or wait until the thumbnails have finished loading, and it will turn on.
Does reordering make the PDF smaller or larger?
Neither is guaranteed. The pages are rebuilt into a new file, so the size may differ slightly from the original, and the tool tells you the size of the result after saving.
Are the thumbnails the same quality as my pages?
No. They are small, compressed previews made only to help you recognise pages. The saved PDF is made from the original page data, not from the thumbnails.
Can I reorder pages in a scanned PDF?
Yes. A scan is a PDF whose pages are images, and the tool handles them like any other page. The pages stay as images and are not re-compressed.