Fix sideways and upside-down pages
Scanners and phone-camera PDFs often produce pages that are rotated the wrong way. Rather than re-scanning, you can correct the orientation in seconds. This tool reads each page, lets you turn the ones that need it, and writes a corrected PDF — all without uploading your document.
How it works
Every PDF page stores its display orientation in a /Rotate entry, which must be a multiple of 90 degrees. Viewers read that value and rotate the page content when drawing it. This tool:
- Loads the PDF with pdf-lib and reads each page’s existing rotation.
- Tracks the additional rotation you apply per page (the previews update live).
- On save, sets each page’s
/Rotateto its original angle plus your change, normalised to 0, 90, 180, or 270 degrees.
Because only this metadata value changes, nothing is rasterised — text remains selectable, vector graphics stay crisp, and the file size barely changes.
Why rotation-as-metadata beats re-rendering
Many online PDF rotation tools rasterise each page to an image, rotate the image, and re-embed it back. This approach destroys text selectability, inflates file size substantially, and reduces sharpness on high-resolution documents. Worse, any subsequent OCR pass has to re-process the now-image content.
Updating the /Rotate value is the clean PDF-native approach. The content stream — every character, vector path, and image — is completely untouched. Only the display instruction changes. A viewer that respects the PDF specification will show the page in the corrected orientation immediately, with all text remaining searchable and selectable.
Common rotation scenarios
Phone-camera PDFs. Photo-scanning apps like scanning via the Files app or a document scanner sometimes misread the phone’s orientation sensor, particularly for landscape pages. A single 90-degree clockwise rotation fixes these.
Double-sided scan mixups. When a double-sided document is fed into a sheet-fed scanner with the backside pages captured correctly but the front rotated 180 degrees, you get an alternating-page rotation issue. The “rotate all” function cannot fix this — you need to rotate odd pages only. Use the per-page controls to correct each page individually.
Upside-down pages from a book scanner. Overhead book scanners sometimes flip the orientation when scanning the right-hand page. A 180-degree rotation on affected pages restores the correct orientation without any re-scanning.
Mixed orientations in one document. A report that includes both portrait and landscape charts may already have correct /Rotate values per page, but a merge operation sometimes strips those values. Loading the merged PDF here shows each page’s current rotation and lets you restore the intended orientation.
Tips and notes
- Rotate all, then fine-tune. If most pages need the same turn, use the “rotate all” buttons first, then adjust the odd page out.
- Clockwise vs counter-clockwise: the two single-page arrows turn that page in each direction; the displayed angle confirms the result.
- No quality loss: unlike tools that flatten pages to images, metadata rotation keeps your PDF fully searchable and lightweight.
- Everything is processed locally, so confidential documents stay on your machine.