How to Reverse PDF Page Order (Free Online & Offline Methods)

Learn how to reverse the page order of a PDF document. Flip pages back-to-front using free online tools, desktop software, and command line methods.

By PeacefulPDF Team

Sometimes your PDF pages are in the wrong order — not shuffled, not missing, just backwards. This happens more often than you'd think. Scanning a stack of papers from bottom to top, exporting from software that sorts in reverse, or receiving a document from someone who assembled it backwards. Whatever the cause, reversing PDF page order is a straightforward fix.

Method 1: Free Online Tools (Fastest)

Online PDF tools let you reverse pages without installing anything. Here are the most reliable options:

iLovePDF Rearrange Pages

  1. Go to ilovepdf.com/organize-pdf.
  2. Upload your PDF.
  3. Drag all pages into reverse order (last page first, first page last).
  4. Or use the "Sort" dropdown and select "Reverse order."
  5. Click Organize PDF and download.

PDF24 Reverse Pages

  1. Go to tools.pdf24.org/en/reverse-pdf.
  2. Upload your PDF.
  3. The tool automatically reverses all pages.
  4. Download the reversed PDF.

PDF24 is the fastest option since it reverses pages automatically with no manual dragging needed.

Sejda PDF

  1. Go to sejda.com/rearrange-pdf-pages.
  2. Upload your file (free up to 200 pages or 50 MB).
  3. Click the Reverse button.
  4. Download the result.

Method 2: Mac Preview (Drag and Drop)

If you're on a Mac, Preview can handle this:

  1. Open your PDF in Preview.
  2. Show the thumbnail sidebar: View > Thumbnails (Option+Cmd+2).
  3. Select all pages: Edit > Select All (Cmd+A).
  4. Now manually drag the pages into reverse order. For small documents this is quick. For large ones, use an online tool instead.
  5. Go to File > Export as PDF to save.

Unfortunately Preview does not have a "reverse order" button, so this method works best for documents under 10 pages.

Method 3: PDFsam (Windows, Mac, Linux)

PDFsam Basic is a free desktop tool with a proper reverse function:

  1. Download PDFsam Basic from pdfsam.org (free, open source).
  2. Open it and select the Merge module.
  3. Add your PDF file.
  4. In the merge settings, look for Reverse order and enable it.
  5. Set the output destination and click Run.

PDFsam also has an Alternate Mix module that gives you more granular control over page ordering if you need something more complex than a simple reversal.

Method 4: Command Line (Python + PyPDF2)

For developers or anyone comfortable with the terminal, Python makes this trivial:

  1. Install PyPDF2: pip install pypdf2
  2. Run this script:
from PyPDF2 import PdfReader, PdfWriter reader = PdfReader("input.pdf") writer = PdfWriter() for page in reversed(reader.pages): writer.add_page(page) with open("reversed.pdf", "wb") as f: writer.write(f)

This reverses any PDF regardless of size. It processes locally on your machine — no upload needed.

When Would You Need to Reverse PDF Pages?

  • Scanning errors: Fed pages into a scanner backwards.
  • Book scanning: Scanned a book but pages came out in reverse.
  • Software exports: Some CAD tools and design software export pages in reverse.
  • Fax conversions: Fax-to-PDF conversions sometimes flip the page order.
  • Legal documents: Exhibit pages numbered in reverse by mistake.

Does Reversing Pages Affect Quality?

No. Reordering pages is a structural change, not a content change. The text, images, formatting, and resolution of each page remain identical. The file size may change slightly due to how PDF compression works, but the visual quality is preserved exactly.

Can I Reverse Only Part of a PDF?

Yes. If you only want to reverse pages 5 through 10 while leaving the rest in order, extract those pages first, reverse them, then merge everything back together. Most online tools let you do all three steps in one session.

The Bottom Line

Use PDF24 for a one-click reverse with no installation. Use PDFsam if you process documents regularly and want a desktop tool. Use the Python script if you need to automate this as part of a workflow. All three approaches are free and preserve your original file quality.