PDF Tips & Tricks PDF editing pdf rotate pdf tools

How to Rotate PDF Pages: Fix Landscape, Portrait, and Upside-Down Pages

Learn how to rotate PDF pages permanently using free online tools, desktop software, and command-line utilities.

A
Admin
· May 27, 2026 · 5 min read · 1 views

When You Need to Rotate PDF Pages

PDF page rotation is one of the most common quick fixes people need. Typical scenarios:

  • A scanned document came out sideways or upside down
  • A landscape chart or table is embedded in a portrait document and needs to be rotated so it prints correctly
  • A mobile photo-to-PDF creates vertical images in horizontal orientation
  • A mixed document has some pages portrait, some landscape, and they need to be standardised

The good news: rotating PDF pages is straightforward with many free tools available.


Understanding PDF Rotation

PDFs store a rotation value in the page dictionary. Valid values are 0°, 90°, 180°, and 270° (clockwise). Rotating a page changes this value — the actual content data doesn't move.

Permanent vs. view-only rotation:

Most PDF viewers let you rotate the view temporarily (just for your session). This does NOT save the rotation to the file. If you email that PDF, the recipient sees it in the original orientation.

To permanently fix rotation so it's saved in the file, you must use a tool that writes the rotation to the PDF.


Method 1: Online Tools (Fastest for Quick Fixes)

Tools of PDF

Upload your PDF, select the pages to rotate and the direction, download the rotated PDF. Free, no account required.

ILovePDF Rotate PDF

At ilovepdf.com/rotate-pdf: upload, click the rotation arrows on each page thumbnail, download. Free and simple.

Smallpdf Rotate

Similar interface — upload, rotate each page visually, download.

PDF2Go

Also offers rotation as part of its editing tools.

All online tools permanently save the rotation in the downloaded file. The file is ready to share immediately.


Method 2: Adobe Acrobat Reader (Free, Temporary Only)

In Adobe Acrobat Reader (the free version), you can rotate the view:

  • View → Rotate View → Clockwise / Counterclockwise

This does NOT save to the file. The rotation is for your viewing session only.

To save rotation in Acrobat, you need Acrobat Pro.


Method 3: Adobe Acrobat Pro (Permanent)

Rotate individual pages:

  1. Open the PDF in Acrobat Pro
  2. View → Page Display → Two-Page View (to see all pages)
  3. Right-click a page thumbnail in the Pages panel → Rotate Pages
  4. Choose direction (Clockwise / Counterclockwise / 180°)
  5. Apply to: selected pages, odd/even pages, or all pages
  6. Save the file

Rotate via the Pages panel:

  1. Open the Pages panel (View → Show/Hide → Navigation Panes → Pages)
  2. Click one page thumbnail (or Ctrl-click multiple)
  3. Right-click → Rotate Pages

Method 4: PDF Viewers That Save Rotation

Foxit PDF Reader (Free)

Unlike Adobe Reader, Foxit Reader's free version does save rotation:

  1. View → Rotate View → Clockwise/Counterclockwise
  2. File → Save — the rotation is saved permanently

PDF-XChange Editor (Free Tier)

Full-featured free PDF editor for Windows. Rotate pages via the Pages menu and save permanently.

Evince (Linux)

Evince's rotate feature is view-only — it doesn't save to file.

Okular (Linux)

Okular can save rotations permanently via File → Save As after rotating.


Method 5: PDFsam Basic (Free Desktop, Open Source)

PDFsam (PDF Split and Merge) Basic is free and open-source. Its Rotate module lets you:

  1. Add PDF files
  2. Set rotation per file: 90° CW, 90° CCW, or 180°
  3. Apply to all pages or specific page ranges
  4. Run and save output

Download from pdfsam.org. Available for Windows, Mac, and Linux.


Method 6: pdftk (Command Line, Free)

pdftk is a powerful free command-line PDF toolkit.

Install:

  • Windows: pdflabs.com/tools/pdftk-the-pdf-toolkit/
  • Mac: brew install pdftk-java
  • Linux: sudo apt install pdftk

Rotate all pages 90° clockwise:

pdftk input.pdf rotate 1-endright output rotated.pdf

Rotation values:

  • north — 0° (no rotation)
  • east — 90° clockwise
  • south — 180°
  • west — 270° clockwise (90° counterclockwise)
  • left — 90° counterclockwise
  • right — 90° clockwise
  • down — 180°

Rotate specific pages:

pdftk input.pdf rotate 3right 5-7down output rotated.pdf

(Rotates page 3 clockwise 90°; rotates pages 5-7 by 180°)

Rotate even/odd pages:

pdftk input.pdf rotate evenleft output rotated.pdf

Method 7: Ghostscript (Command Line)

Ghostscript handles rotation through the AutoRotatePages option or by specifying orientation.

Auto-rotate based on text orientation:

gs -sDEVICE=pdfwrite -dAutoRotatePages=/All -o output.pdf input.pdf

This analyses text direction and rotates pages to match — useful for scanned documents where some pages are sideways.

Rotate all pages 90° clockwise manually:

gs -sDEVICE=pdfwrite -dBATCH -dNOPAUSE \
  -c "<</Orientation 3>> setpagedevice" \
  -f input.pdf -sOutputFile=output.pdf

Orientation values: 0=portrait, 1=landscape, 2=seascape, 3=upside-down.


Method 8: Python (PyPDF2 or PyMuPDF)

Using PyPDF2:

from PyPDF2 import PdfReader, PdfWriter

reader = PdfReader("input.pdf")
writer = PdfWriter()

for i, page in enumerate(reader.pages):
    page.rotate(90)  # Rotate 90° clockwise; use 180 or 270 as needed
    writer.add_page(page)

with open("rotated.pdf", "wb") as f:
    writer.write(f)

Rotate specific pages only:

for i, page in enumerate(reader.pages):
    if i in [0, 2, 4]:  # Rotate pages 1, 3, 5 (0-indexed)
        page.rotate(90)
    writer.add_page(page)

Using PyMuPDF (fitz):

import fitz
doc = fitz.open("input.pdf")
for page in doc:
    page.set_rotation(90)  # 0, 90, 180, or 270
doc.save("rotated.pdf")

Rotating Scanned PDFs: Auto-Deskew

If pages are slightly tilted (not exactly 90° off, just skewed by a degree or two from scanning), you need deskewing rather than standard 90° rotation.

Tools that auto-deskew:

  • NAPS2 (free scanning software) — includes auto-deskew during scan
  • ScanTailor (free) — advanced scan processing including deskew and despeckling
  • Tesseract — includes OSD (Orientation and Script Detection) to determine correct rotation for OCR

Summary

For quick, occasional rotation: online tools (Tools of PDF, ILovePDF) are the fastest path. For repeated work on desktop: PDFsam Basic or PDF-XChange Editor (free) are solid. For command-line or scripting work: pdftk offers precise per-page control. Always save the file after rotation to ensure the change is permanent — view-only rotation in PDF readers won't persist when the file is shared.