How to reverse the page order in a pdf
- Step 1Find the total page count — Open the PDF and note how many pages it has — you need the last page number to start the descending list. The tool also shows the page count at the top once the file is loaded.
- Step 2Drop the PDF onto the tool — Drag the file onto the dropzone or click browse. One file at a time. It's parsed locally; nothing uploads.
- Step 3Type the page numbers in descending order — In the New page order box, enter the highest page number down to 1, comma-separated. For a 12-page file:
12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1. - Step 4Double-check the first and last numbers — The first number must equal the page count and the list must end in
1, with no gaps. A missing number means that page is dropped from the reversed output. - Step 5Click Process and verify the count — Output page count should equal the input page count. If it's smaller, you skipped a number; if larger, you listed one twice.
- Step 6Download the reversed PDF — Save the rebuilt
*.reorder.pdf. The original stays intact, so you can re-run if the list was off.
What 'reverse' means for each document size
There is no Reverse button — you type the page numbers from the last page down to 1. The descending list IS the reversal.
| Page count | Descending list to type | Output first → last page |
|---|---|---|
| 3 pages | 3, 2, 1 | page 3 → page 2 → page 1 |
| 5 pages | 5, 4, 3, 2, 1 | page 5 first, page 1 last |
| 10 pages | 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 | page 10 first, page 1 last |
| Reverse only pages 4–8 of a longer file | 1, 2, 3, 8, 7, 6, 5, 4, 9, 10 | pages 1–3 and 9–10 stay put; 4–8 are flipped in place |
Reversal pitfalls and how the engine reacts
Behaviour confirmed in pdf-processor.ts: the order string is comma-split, each token read with parseInt, out-of-range numbers filtered.
| Mistake | What the engine does | Symptom |
|---|---|---|
First number ≠ page count (e.g. typed 9 for a 10-page file) | Page 10 is never listed, so it's dropped | Reversed file is missing the original last page |
| Skipped a number in the middle | That page is not copied | A page is missing from the reversed output |
Used a range like 10-1 | Parsed as the single number 10 | Output has just one page — list every number instead |
Listed 0 at the end instead of 1 | 0 is out of range and filtered; page 1 is never added | First page missing from the reversal |
| Duplicated a number | That page is copied twice | Output has one more page than the input |
Cookbook
Reversal recipes for common back-to-front PDFs, with the exact descending list to type.
Reverse a 4-page fax-to-PDF that arrived back-to-front
A fax gateway delivered a 4-page PDF in reverse. List the pages from 4 down to 1 to flip it.
Received: page 4, page 3, page 2, page 1 (wrong) Type in box: 4, 3, 2, 1 Output: page 1, page 2, page 3, page 4 (correct) Input pages: 4 Output pages: 4
Fix face-up duplex printer output (8 pages)
A printer stacked pages face-up, so the scanned-back-in PDF is reversed. Type 8 down to 1.
Scanned-in order: 8 7 6 5 4 3 2 1 Type in box: 8, 7, 6, 5, 4, 3, 2, 1 Output: 1 2 3 4 5 6 7 8
Generate the descending list for a long file with a shell one-liner
Typing 50, 49, … 1 by hand is error-prone. Generate it, then paste the result into the box. (The tool itself takes no commands — this just builds the string for you.)
# bash / WSL — descending list for a 50-page PDF seq -s ', ' 50 -1 1 # output you paste into the New page order box: 50, 49, 48, 47, ... , 3, 2, 1
Reverse only a mis-stacked middle section
Pages 1–3 and 9–10 are fine, but pages 4–8 were stacked in reverse. Keep the ends in order and flip just the middle by listing 8 down to 4 between them.
Type in box: 1, 2, 3, 8, 7, 6, 5, 4, 9, 10 Output: 1 2 3 [8 7 6 5 4] 9 10 Only the 4-8 block is reversed; everything else is untouched.
Reverse, then re-add correct page numbers
If the original PDF had printed page numbers, they move with the pages — so a reversed file shows 10, 9, 8 … in the footer. Reorder first, then stamp fresh sequential numbers.
Step 1 — reorder: type 10, 9, ... , 1 -> 1.reorder.pdf
Step 2 — open Add Page Numbers on that output
(start from 1, bottom-center) -> correct footers
(printed-in numbers from the source do not auto-update)Edge cases and what actually happens
There's no one-click Reverse button
By designThe tool has a single text box for the new page order. To reverse, you type the page numbers in descending order yourself (last page down to 1). The registry copy that once mentioned a 'Reverse button' was inaccurate — no such control exists. For long files, generate the descending list with a one-liner (see the cookbook) and paste it in.
First page of the reversal is missing
DroppedIf your descending list ends in 0 instead of 1, page 1 is never copied (0 is out of range and filtered). The reversed file then starts at page 10 but ends at page 2. Always end the list at 1.
Last page (highest number) is missing
DroppedIf the first number in your list is lower than the actual page count — say you typed 9 for a 10-page file — page 10 is never listed and won't appear. The first number must equal the page count. Confirm the count at the top of the tool before typing.
You typed a descending range like 10-1
Silently truncatedRange syntax isn't supported. 10-1 is read as the single integer 10, so the output is a one-page PDF. List every number: 10, 9, 8, … , 1.
Long reversal blocked by the 50-page free cap
Free limitReversing is most tedious on long files — exactly where the free tier's 50-page limit applies: 'This PDF has N pages. Free handles up to 50 pages. Pro unlocks larger PDFs.' Pro extends to 500 pages, Pro+Media to 2,000. For a one-off, split with the range splitter, reverse each part, then merge in reverse part order.
Printed page numbers now run backwards
ExpectedIf the source PDF had page numbers baked into the page content, those move with the pages. A reversed file therefore shows footers reading 10, 9, 8… To fix the printed numbers, run the Add Page Numbers tool on the reversed output to overlay a correct 1, 2, 3 sequence.
Bookmarks / outline point to wrong pages after reversal
Not remappedpdf-lib copies page content but does not rewrite a document outline (bookmarks) to follow the new order, so bookmarks may jump to the wrong page in a reversed file. For a reversed document, bookmarks usually aren't meaningful anyway; rebuild them in a full PDF editor if you need them.
Encrypted file with permission restrictions
Usually worksThe loader ignores encryption flags, so a permissions-restricted PDF can typically be reversed. If there's an open password the loader can't get past, strip it first with the remove-password tool.
Frequently asked questions
Is there a Reverse-all button?
No. The reorder tool only has a text box for the new page order. To reverse a file, type the page numbers from the last page down to 1 — e.g. 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 for a 10-page PDF. The descending list is how you express the reversal.
How do I build the descending list for a 100-page PDF without typing it all?
Generate it once and paste it in. On bash/WSL: seq -s ', ' 100 -1 1. In PowerShell: 100..1 -join ', '. Copy the output into the New page order box. The tool itself accepts only the comma-separated numbers, not a command.
Does reversing reduce quality or re-compress the file?
No. Pages are copied as-is into a new document — no re-rendering, no re-encoding. Text remains selectable and images keep their original resolution. Output size is roughly the same as the input.
Can I reverse just part of a PDF?
Yes. List the unaffected pages in their normal order and the section you want flipped in descending order. To reverse pages 4–8 of a 10-page file: 1, 2, 3, 8, 7, 6, 5, 4, 9, 10.
Why is my reversed file missing the first or last page?
The most common cause is a list that doesn't start at the page count or doesn't end at 1. If you typed 9, 8, … 1 for a 10-page file, page 10 is dropped; if you ended in 0, page 1 is dropped. Check that the first number equals the page count and the last is 1.
Will the printed page numbers update after I reverse?
No — numbers baked into the page content move with the pages, so a reversed file shows them counting down. Overlay a fresh sequence afterwards with the Add Page Numbers tool.
Can I use a range like 50-1 to reverse?
No. Range syntax isn't supported; 50-1 is read as just 50, giving a one-page output. List every page number individually.
What's the largest PDF I can reverse?
Free tier allows up to 50 pages / 2 MB. Pro raises it to 500 pages / 50 MB, Pro+Media to 2,000 pages / 500 MB, Developer to 10,000 pages / 2 GB.
Is the document uploaded to reverse it?
No. Reversal runs entirely in your browser with pdf-lib. The file is read, rebuilt, and saved locally — the result panel confirms 0 bytes uploaded.
Why would a PDF arrive in reverse order in the first place?
Common causes: face-up duplex printer stacking, scanners that feed the last sheet first, and some fax-to-PDF or legacy export gateways. The fix is the same regardless of cause — list the pages high-to-low.
Will reversing keep my bookmarks pointing to the right pages?
Not necessarily. pdf-lib copies page content but doesn't remap a document outline to the new order, so bookmarks may point to the wrong pages after a reversal. Rebuild bookmarks in a full editor if you rely on them.
Can I reverse a scanned (image-only) PDF the same way?
Yes. Image pages are copied without re-compression, so a scanned PDF reverses just as cleanly as a text PDF. For scan-specific order fixes, see the reorder scanned pages guide.
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.