Rotate PDF Pages
Rotate all or specific pages of a PDF by 90°, 180° or 270°, locally in your browser.
Loading Rotate PDF Pages… If nothing happens, please enable JavaScript.
Frequently asked questions
Are my files uploaded to a server?
What is the maximum file size this tool supports?
Does this work with password-protected PDFs?
Does rotation reduce image or text quality?
How does this compare with rotating pages in Adobe Acrobat or macOS Preview?
Why does my PDF appear rotated in the first place?
What input file formats does the tool accept?
Is the rotation applied permanently to the output file?
Can I rotate pages in bulk across many PDFs at once?
Which PDF versions and standards are compatible?
About Rotate PDF Pages
PDF rotation is a metadata operation, not a re-rendering. Every page in a PDF document has a property called the rotation entry (or 'rotate' key in the page dictionary), which tells viewers how many degrees to spin the content clockwise before displaying it: 0, 90, 180, or 270. The actual content stream — the drawing instructions that describe text, graphics, and images — remains untouched. This is fundamentally different from rotating a JPEG image, where pixels are physically rearranged and quality can degrade. Rotating a PDF page simply changes a single integer in the file, which is why it is instantaneous and lossless.
Misoriented PDFs are extremely common. They arise when a document is scanned on a flatbed scanner with the paper loaded sideways, when a mobile phone camera photograph is converted to PDF without respecting the EXIF orientation tag, when a landscape spreadsheet is exported to PDF by software that applies a 90-degree rotation differently from what was intended, or when individual pages of a multi-page scan were fed in different directions. Engineers, lawyers, and administrators who receive signed documents by email regularly encounter pages that need to be rotated before filing or forwarding.
This tool fixes orientation in seconds, entirely inside your browser using pdf-lib. You select your PDF, choose which pages to rotate (all pages, or a specific range like 2,4-6), pick the rotation angle — 90° clockwise, 180°, or 90° counter-clockwise (270°) — and download the corrected file. The operation does not re-encode any images or text; it simply writes the correct rotation value into each affected page's dictionary. File size is essentially unchanged, and the document's visual quality is perfectly preserved.
A practical tip: if only some pages appear sideways, use the 'Selected pages' option and enter just those page numbers rather than rotating the whole document. This is common with scanned booklets where the cover was loaded upright but internal pages were fed sideways. Also note that the rotation value is cumulative — if a page already carries a 90° rotation and you apply another 90°, the stored value becomes 180°. The tool reflects the existing rotation so you can see what you are working with before applying a change.
Why PDF Pages Have a 'Rotate' Key: The Hidden Metadata Behind Your Screen
The PDF coordinate system was inherited from PostScript, which in turn was influenced by the mathematical convention of placing the origin at the bottom-left of the page with the y-axis pointing upward. This meant that early PDF content streams described pages in terms of a 'natural' upright orientation, and the rotation entry was added as a display hint to tell viewers how to present the page without altering the underlying drawing instructions. The four allowed values — 0, 90, 180, 270 — were chosen to match the physical orientations of paper as it might be loaded into a scanner or printer.
This separation between content and display orientation was a deliberate design choice that has both advantages and limitations. The advantage is speed and losslessness: changing orientation requires updating a single integer, not re-rendering a page. The limitation is that some older PDF software ignores the rotate entry altogether, displaying the page in its 'natural' orientation and confusing users who expect their rotation to stick. Early versions of certain Unix PDF viewers and some embedded document renderers had this bug, which is why scanned PDFs from the 1990s and early 2000s still occasionally appear sideways in niche viewing environments.
Interestingly, PDF's rotation system interacts with another rarely-noticed feature called the MediaBox and CropBox. A PDF page can have multiple box definitions — the MediaBox (full physical page), the CropBox (the visible area), TrimBox, BleedBox, and ArtBox — all of which are rotated together when the rotate entry changes. This matters in print-production workflows where the bleed area extends beyond the trim, and rotating a page incorrectly can misalign these boxes and cause printing defects. Understanding this layered geometry is one reason professional PDF editors like Acrobat Preflight exist alongside simple rotation tools.