How to fix incorrect page order in a pdf document
- Step 1Open the PDF and map the real order — Page through the document and note, for each current page number, where it should go. Pages are 1-based. Writing down the target sequence first prevents mistakes.
- Step 2Drop the file onto the tool — Drag the PDF onto the dropzone or click browse. One file at a time. The page count appears at the top after it loads — confirm it matches what you expect.
- Step 3Type the correct sequence — In the New page order box, enter the page numbers in the order they should appear, separated by commas: e.g.
1, 2, 5, 6, 3, 4. Include every page you want to keep. - Step 4Verify nothing's dropped or doubled — For a pure reorder, the count of numbers you typed should equal the page count, with each number appearing exactly once. Anything else means a page is dropped or duplicated — intentional or not.
- Step 5Process and check the output count — Click Process. The result panel shows input pages and output size; the output page count equals the number of entries you typed. Compare against the input to confirm.
- Step 6Download the corrected PDF — Save the rebuilt
*.reorder.pdf. If the order's still off, re-drop the original (it's untouched) and try again.
Common causes of wrong order and the fix
The cause doesn't change the method — you always type the correct sequence. These examples use small documents to show the pattern.
| How it happened | Symptom in the PDF | Order to type |
|---|---|---|
| Merge stitched two sections backwards | 4, 5, 6, 1, 2, 3 — section B before section A | 4, 5, 6, 1, 2, 3 (list A first: see note — type the page numbers where they belong → 4, 5, 6 are section A pages? List them in target order) |
| Cover/contents emitted last by 'print to PDF' | Body pages 1–8, then cover (9), then contents (10) | 9, 10, 1, 2, 3, 4, 5, 6, 7, 8 |
| Alphabetical filename sort (page10 before page2) | 1, 10, 2, 3, 4, 5, 6, 7, 8, 9 | 1, 3, 4, 5, 6, 7, 8, 9, 10, 2 — relist in numeric order: 1,2,3,4,5,6,7,8,9,10 |
| Two pages swapped during assembly | 1, 2, 4, 3, 5 | 1, 2, 3, 4, 5 |
| A page accidentally duplicated in the merge | 1, 2, 2, 3, 4 (page 2 twice) | 1, 2, 3, 4 (omit the second 2 to drop the dupe) |
Reorder rules that decide your output
Confirmed in pdf-processor.ts and pdfEngine.ts: the order string is comma-split, each token parseInt'd, out-of-range indices filtered, listed pages copied in order.
| If you... | The engine... | Output effect |
|---|---|---|
| List every page once | Copies each in your order | Clean reorder, same page count |
| Omit a page number | Never copies it | That page is removed |
| Repeat a number | Copies it each time | That page appears multiple times |
Type a number past the last page or 0 | Filters it out | Ignored, no error |
Type a range (3-7) | Reads only the leading number (3) | Just page 3 added — list pages individually |
| Leave the box empty | Parses no numbers | Error: 'Enter at least one page number.' |
Cookbook
Concrete order-correction fixes, with the exact sequence to type and what the output contains.
Move a cover and contents that printed last
A 'print to PDF' put the 8 body pages first, then the cover (page 9) and contents (page 10) at the end. Bring them to the front.
Current: body 1-8, cover=9, contents=10 Type in box: 9, 10, 1, 2, 3, 4, 5, 6, 7, 8 Output: cover, contents, then body 1-8 Input pages: 10 Output pages: 10
Fix an alphabetical-sort assembly (page10 before page2)
A script sorted source filenames as text, so page10 came after page1. Re-list the pages in numeric order.
Scrambled: 1, 10, 2, 3, 4, 5, 6, 7, 8, 9 Type in box: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Output: pages in true numeric order
Un-swap two pages from a bad merge
Pages 3 and 4 came out reversed when two PDFs were merged. List all pages with 3 and 4 corrected.
Current: 1, 2, 4, 3, 5 Type in box: 1, 2, 3, 4, 5 Output: 1, 2, 3, 4, 5
Drop a duplicate page introduced by a merge
The merge accidentally included page 2 twice. Reorder and remove the duplicate in one step by listing page 2 only once.
Current: 1, 2, 2, 3, 4 (page 2 duplicated) Type in box: 1, 2, 3, 4 Output: 1, 2, 3, 4 (one copy of page 2) Input pages: 5 Output pages: 4
Reassemble interleaved batch-print output
A duplex batch print interleaved two 3-page documents as A1, B1, A2, B2, A3, B3 — file pages 1-6. Separate document A back out by listing its pages.
File pages: 1=A1 2=B1 3=A2 4=B2 5=A3 6=B3 Type in box: 1, 3, 5 Output: A1, A2, A3 (document A only; B pages dropped) Run again with 2, 4, 6 to recover document B.
Edge cases and what actually happens
Output is missing a page you meant to keep
DroppedOnly the page numbers in your list are copied. If a page number is missing from the box, that page won't appear. For a full reorder, the list must contain every page number exactly once. Compare the output page count to the input in the result panel as a check.
You used a range like 3-8
Silently truncatedRange syntax is not supported in the reorder tool — 3-8 is read as the single number 3, and only page 3 is added. Type each page: 3, 4, 5, 6, 7, 8. (The delete-pages and extract-pages tools do accept ranges; reorder does not.)
A typo'd page number is above the page count
IgnoredNumbers outside 1…pageCount (including 0 and negatives) are filtered out silently — no error is shown. The danger is a short output: if several entries were out-of-range typos, you'll get fewer pages than intended. Watch the output count.
A page appears twice in the output unexpectedly
DuplicatedA page listed more than once is copied each time. A stray extra comma or a number repeated by accident produces a duplicate. Re-check your list if the output has more pages than the input.
PDF exceeds the free 50-page or 2 MB cap
Free limitFree tier blocks PDFs over 50 pages or 2 MB: 'This PDF has N pages. Free handles up to 50 pages. Pro unlocks larger PDFs.' Pro extends to 500 pages / 50 MB, Pro+Media to 2,000 / 500 MB. For a large report, split with the range splitter, fix each part, then merge.
Box left empty or only non-numeric text
ErrorIf nothing parses to a valid number, processing fails with 'Enter at least one page number.' Make sure the box contains comma-separated page numbers.
Permission-restricted (encrypted) PDF
Usually worksThe loader opens PDFs while ignoring encryption/permission flags, so a restricted file can normally be reordered. If an open password blocks loading, clear it first with the remove-password tool or pdf-unlock.
You only need to delete pages, not reorder
Wrong toolIf pages are in the right order but some need removing, the delete-pages tool is simpler — it keeps everything except the pages you name and accepts ranges. Reorder is for changing sequence (and can drop pages as a side effect by omission).
Frequently asked questions
Is there a visual drag-and-drop interface to fix the order?
No. The tool uses a single text box: you type the correct page order as comma-separated numbers like 1, 2, 5, 6, 3, 4. There's no thumbnail grid and no auto-detect — you describe the order, it rebuilds the file. Read the current page numbers in your PDF viewer first.
Does correcting the order change the page content or quality?
No. Pages are copied into a new document without re-rendering, so text remains selectable, images keep their resolution, and file size barely changes. Only the sequence is different.
My pages sorted alphabetically (page10 before page2) — how do I fix it?
List the pages in true numeric order in the box. If the file is 1, 10, 2, 3, 4, 5, 6, 7, 8, 9, type 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 and the output will be correctly ordered.
Can I remove a stray duplicate page while reordering?
Yes. Because only listed pages are kept, just leave the duplicate's number out. 1, 2, 2, 3, 4 becomes 1, 2, 3, 4 if you list page 2 only once — the output drops the extra copy.
Why does my corrected file have fewer pages than the original?
You omitted some page numbers (omitted pages are dropped), typed numbers above the page count (those are ignored), or used a range that got truncated. Check the output page count against the input and revise your list.
Can I write 1-10 instead of listing every page?
No — range syntax isn't supported in reorder; 1-10 is read as just 1. List every page number. (Ranges work in the delete-pages and extract-pages tools, but not here.)
What if pages are in order but I just need to delete some?
Use the delete-pages tool instead — it keeps everything except the pages you name and supports ranges, which is simpler than re-listing the whole sequence in reorder.
How big a PDF can I correct for free?
Free handles up to 50 pages and 2 MB. Pro raises it to 500 pages / 50 MB, Pro+Media to 2,000 / 500 MB, Developer to 10,000 / 2 GB.
Is the document uploaded to fix the order?
No. The reorder runs in your browser with pdf-lib — the file is read, rebuilt, and saved locally. The result panel confirms 0 bytes uploaded.
Can I fix the order of a password-protected PDF?
Usually yes — the loader ignores permission flags. If an open password prevents loading, remove it first with the remove-password or unlock tool, then reorder.
What's the safest way to verify I got the order right?
Check the output page count equals the input (for a pure reorder), then open the downloaded file and skim. The original is never modified, so you can re-drop it and try a corrected list if needed.
Can reorder also separate two interleaved documents from a batch print?
Yes — list only one document's page numbers to extract it in order (the other's pages are dropped), then run again for the second document. For pure extraction without reordering, the extract-pages tool with ranges may be quicker.
Privacy first
All PDF processing runs locally in your browser using PDF-lib and pdf.js. No file is ever uploaded — only metadata counters are saved for signed-in dashboard stats.