How to Rotate a PDF for Free: Fix Page Orientation on Any Device
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:
- Open the PDF in Preview.
- To rotate the current page: go to Tools → Rotate Left (Cmd+L) or Tools → Rotate Right (Cmd+R).
- To rotate all pages: press Cmd+A to select all thumbnails in the sidebar first, then use Tools → Rotate.
- 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
- Open the PDF in Preview.
- Show the sidebar: View → Thumbnails.
- Click a page thumbnail to select it (Cmd+click for multiple, Shift+click for a range).
- Right-click the selection → Rotate Left or Rotate Right.
- Save.
How to rotate a PDF on Windows
Method 1: Microsoft Edge (built-in, free)
Edge has built-in page rotation:
- Open the PDF in Edge (drag and drop the file onto Edge, or right-click → Open with Edge).
- In the toolbar at the top, click the rotate icon (two arrows in a circle). Each click rotates the current page 90° counterclockwise.
- For multiple pages, navigate to each page and rotate individually.
- 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:
- Open the PDF in Chrome.
- Press Ctrl + P.
- Change Layout from Portrait to Landscape (or vice versa).
- Set the printer to “Save as PDF”.
- 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:
- Open the PDF in the Files app.
- Tap the file to open Quick Look.
- Tap the Markup icon (pencil tip).
- You will not see a rotation option directly — instead, tap Done → Keep Changes.
- Now tap Share → Print.
- In print preview, pinch outward on the thumbnail to open the PDF view.
- 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
- In the Thumbnails sidebar, click page 3 (for example).
- Hold Cmd and click any other pages you want to rotate.
- Right-click → Rotate Left or Rotate Right.
- 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° clockwisesouth= 180°west= 90° counterclockwisenorth= 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.
Related guides
- How to edit a PDF for free — add content after fixing orientation
- How to crop a PDF for free — trim the page margins after rotation
- How to flatten a PDF for free — lock the rotation before sharing
- How to compress a PDF for free — reduce file size after export