How to Rotate PDF Pages — Fix Sideways and Upside-Down Pages
Methods for rotating PDF pages — covering browser tools, macOS Preview, command line, and how PDF rotation actually works under the hood.
Why Rotate PDF Pages?
Scanned documents often end up sideways or upside down. Mixed-orientation PDFs — where some pages are portrait and others landscape — are common when combining documents from different sources. Rotating fixes these issues so every page displays correctly.
Methods for Rotating PDF Pages
1. Browser-Based Rotation
FileKit's Rotate PDF tool lets you rotate all pages or specific pages by 90°, 180°, or 270°. The rotation changes a metadata flag — page content is never re-rendered, so quality stays identical. Everything happens in your browser.
2. macOS Preview
Open the PDF, select page thumbnails, then use Tools → Rotate Left/Right (or the keyboard shortcut ⌘L / ⌘R). Save to apply. Quick and built-in, but Mac-only.
3. Command Line with qpdf
qpdf input.pdf --rotate=+90:1-5 -- output.pdfThis rotates pages 1 through 5 by 90° clockwise. The + prefix means "add to existing rotation" rather than setting an absolute value.
Understanding PDF Rotation
- Metadata-based. PDF rotation works by changing a flag in the page dictionary, not by re-rendering pixels. This means zero quality loss and instant processing.
- Cumulative. Rotating a page that already has a 90° rotation by another 90° results in 180°. FileKit handles this correctly.
- All content rotates. Text, images, annotations, and form fields all rotate together — the entire page turns as a unit.
Common Scenarios
- Fixing upside-down scanned pages (use 180° rotation)
- Converting landscape tables to portrait orientation (use 90° or 270°)
- Correcting a single misaligned page in a long document (use specific page mode)