How-To

How to Rotate a PDF for Free: Fix Page Orientation on Any Device

· 6 min read

Quick summary: To rotate a PDF for free, open it in Preview on Mac, go to Tools → Rotate Left or Rotate Right, then save. On Windows, open the PDF in Edge, click the rotate icon in the toolbar. On iPhone, open it in the Files app, tap Markup, then rotate from the Share menu after saving. For permanent rotation on every page, use the command-line tool Ghostscript or a free online rotator.

A scanned document saved sideways, a phone photo converted to PDF in portrait when it should be landscape — rotation is one of the most common quick fixes. The methods below permanently embed the new orientation so the file opens correctly in any viewer. After fixing orientation, upload the file to our free AI PDF reader to summarize or read it hands-free.

How to rotate a PDF on Mac

Method 1: Preview (built-in, free)

Preview handles single-page and full-document rotation:

  1. Open the PDF in Preview.
  2. To rotate the current page: go to Tools → Rotate Left (Cmd+L) or Tools → Rotate Right (Cmd+R).
  3. To rotate all pages: press Cmd+A to select all thumbnails in the sidebar first, then use Tools → Rotate.
  4. Save with Cmd+S.

Rotation is saved permanently — the file opens at the correct angle in any PDF viewer.

Method 2: Preview via thumbnail sidebar

  1. Open the PDF in Preview.
  2. Show the sidebar: View → Thumbnails.
  3. Click a page thumbnail to select it (Cmd+click for multiple, Shift+click for a range).
  4. Right-click the selection → Rotate Left or Rotate Right.
  5. Save.

How to rotate a PDF on Windows

Method 1: Microsoft Edge (built-in, free)

Edge has built-in page rotation:

  1. Open the PDF in Edge (drag and drop the file onto Edge, or right-click → Open with Edge).
  2. In the toolbar at the top, click the rotate icon (two arrows in a circle). Each click rotates the current page 90° counterclockwise.
  3. For multiple pages, navigate to each page and rotate individually.
  4. Press Ctrl + S to save.

Method 2: Google Chrome (print to PDF)

Chrome does not have a rotate button, but the print dialog can achieve the same result for the whole document:

  1. Open the PDF in Chrome.
  2. Press Ctrl + P.
  3. Change Layout from Portrait to Landscape (or vice versa).
  4. Set the printer to “Save as PDF”.
  5. Save.

This rotates all pages uniformly — not useful for rotating just one page.

How to rotate a PDF on iPhone

iOS does not have a dedicated PDF rotation tool, but there is a workaround:

  1. Open the PDF in the Files app.
  2. Tap the file to open Quick Look.
  3. Tap the Markup icon (pencil tip).
  4. You will not see a rotation option directly — instead, tap Done → Keep Changes.
  5. Now tap Share → Print.
  6. In print preview, pinch outward on the thumbnail to open the PDF view.
  7. From here you cannot directly rotate, so use a free app from the App Store (search “PDF rotate”) for proper single-page rotation on iPhone.

For a simpler path on iPhone: use a free browser-based rotator at iCloud.com (Pages), or a well-reviewed online PDF tool in Safari.

How to rotate pages permanently with Ghostscript

For scripted or batch rotation, Ghostscript provides precise control. To rotate all pages 90° clockwise:

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

Orientation values:

  • 0 — portrait (default, 0°)
  • 1 — landscape (90° counterclockwise)
  • 2 — upside-down portrait (180°)
  • 3 — seascape (270° counterclockwise)

How to rotate only specific pages

Mac — Preview

  1. In the Thumbnails sidebar, click page 3 (for example).
  2. Hold Cmd and click any other pages you want to rotate.
  3. Right-click → Rotate Left or Rotate Right.
  4. Only the selected pages rotate; others are unchanged.

Command line — pdftk + Ghostscript

pdftk can rotate specific pages by number:

pdftk input.pdf rotate 3east 5south output rotated.pdf
  • east = 90° clockwise
  • south = 180°
  • west = 90° counterclockwise
  • north = back to original

Install pdftk via Homebrew on Mac: brew install pdftk-java.

Rotation vs. flip: what’s the difference

Rotating turns the page 90°, 180°, or 270°. Flipping (mirroring) creates a mirror image — horizontally or vertically. Standard PDF tools rotate; flipping requires image editing or Ghostscript. If your scan looks mirrored (text backwards), you need a flip, not a rotation.

Frequently Asked Questions (FAQ)

Why does my PDF rotate back to the original orientation when I open it?

Some PDF viewers (older versions of Chrome, certain mobile apps) ignore the PDF’s rotation metadata and display the raw page. The rotation was saved correctly — try opening the file in Preview on Mac or Acrobat Reader to confirm. For viewer-independent rotation, rasterize the pages: export each page as a PNG at the rotated angle, then reassemble into a new PDF.

Can I rotate a PDF without losing quality?

Yes. PDF rotation is a metadata change — it stores a rotation value without touching the content. No re-rendering or quality loss occurs, unlike rasterizing to an image. Ghostscript and Preview both preserve full quality.

How do I rotate a scanned PDF?

A scanned PDF is an image inside a PDF container. Rotating it works the same as any other PDF — Preview and Edge both handle it without any special steps. The rotation flag is added to the page descriptor, and the image is displayed at the new angle.

Does rotating a PDF change the file size?

Not meaningfully. PDF rotation modifies a small metadata field; the page content is untouched. The file size change is typically under 1 KB.

Can I rotate a password-protected PDF?

Not until you unlock it first. See how to remove a password from a PDF for free, then rotate the unlocked file.

How do I rotate a PDF on a Chromebook?

Use the Files app to open the PDF in the built-in PDF viewer, or open it in Chrome and use the print-to-PDF method to change the layout orientation. Alternatively, use a free online PDF rotator in the Chrome browser.

Upload your PDF and let AI read it

Get an instant summary, ask questions about the content, or translate into another language — all free, no sign-up.

Try the AI PDF Reader