PDF Rotate Pages
Rotate individual pages or entire PDFs instantly in your browser.
100% client-side — your files never leave your browser.
Drag & drop your PDF here
or click to browse files
How do you rotate a page in a PDF? You change the page's rotation attribute, a number stored in the page dictionary that tells every reader how far to turn the page clockwise before displaying it. Valid values are 0, 90, 180 and 270 degrees. This tool renders thumbnails with pdf.js, records the angle you choose for each page, and writes it back with pdf-lib. The page content itself is never touched.
How to Rotate Pages in a PDF
- Load the PDF — Drag a file onto the upload area or click to browse. Every page is rendered to a small canvas so you can see which ones are actually sideways.
- Rotate individual pages — Each thumbnail carries a rotate-left and a rotate-right button that move that page by 90 degrees a time. A badge in the corner shows the angle currently queued for that page.
- Or rotate the whole document — The toolbar applies 90° clockwise, 90° counter-clockwise or 180° to every page at once. Use it first for a batch that is uniformly wrong, then correct the odd page individually.
- Watch the angle badges, not the thumbnails — Angles accumulate and wrap at 360, so four presses of the same arrow return a page to 0°. The rendered thumbnail does not re-draw as you rotate — the badge is the reliable indicator.
-
Save the result — Click Save PDF to download
rotated-document.pdf. Pages you left at 0° are written back exactly as they were.
How PDF Rotation Works
Rotating a PDF page does not move any ink. Each page dictionary carries a rotation entry whose value is the number of degrees a reader should turn the page clockwise before showing it, and the specification restricts that value to multiples of 90. Everything else — the text drawing operators, the image streams, the coordinate system, the page box that defines its physical size — stays exactly as it was. Changing the orientation of a page is therefore closer to editing a label than to editing a picture.
That design is what makes rotation genuinely lossless. A scanned page rotated four times is byte-for-byte no worse than when it started, because nothing was ever decoded or re-encoded. It also explains something that surprises people: the page box keeps its original width and height. A 595 by 842 point portrait page rotated 90 degrees still records those numbers; it simply displays and prints turned on its side.
The tool uses two libraries for two different jobs. pdf.js, the rendering engine Firefox ships for its built-in PDF viewer, rasterises each page to a canvas at roughly 160 pixels wide so you can identify sideways pages at a glance. pdf-lib then does the writing: on save, it re-parses the original bytes, reads whatever rotation each page already had, adds the amount you queued, and stores the sum before serialising the document. Because it saves the same document rather than copying pages into a new one, bookmarks, metadata and form structure all come through unchanged.
Rotation Angles
| Angle | How to reach it | Fixes |
|---|---|---|
| 90° | Rotate right once | A page whose top edge is on the left |
| 180° | Rotate all 180, or either arrow twice | A sheet fed into the scanner upside down |
| 270° | Rotate left once | A page whose top edge is on the right |
| 0° | Four presses of the same arrow | Undoing a change before saving |
What Rotation Changes, and What It Does Not
| Aspect | Effect of rotating |
|---|---|
| Page content stream | Untouched — no operator is rewritten |
| Text selection and search | Preserved, and the selection follows the new orientation |
| Image resolution and compression | Unchanged; nothing is decoded or re-encoded |
| File size | Essentially identical to the original |
| Recorded page width and height | Unchanged; the display is turned, the box is not |
| Bookmarks, metadata and forms | Preserved — the same document is saved |
| Pages you left at 0° | Written back exactly as they arrived |
Rotation is not deskewing. This tool works in exact 90-degree steps because that is what the PDF page attribute allows. A scan that is tilted by three or four degrees cannot be corrected here; straightening it requires re-rendering the page as an image, rotating the pixels and rebuilding the document, which loses the text layer.
Frequently Asked Questions
Use the rotate-left or rotate-right button under that page's thumbnail rather than the toolbar buttons, which act on the whole document. Each press moves that page 90 degrees and updates its angle badge. Every other page keeps its existing orientation, so a single sideways scan in a long report is a two-click fix.
Only multiples of 90: 90 degrees clockwise, 90 counter-clockwise, and 180. That is not a limitation of the tool but of the PDF format, whose page rotation attribute accepts nothing else. Presses accumulate and wrap at 360, so rotating right twice is the same as rotating 180 once.
No to both. Rotation writes a number into the page dictionary and leaves the content stream alone, so no image is re-compressed and no text is re-drawn. The saved file is essentially the same size as the original, and a page can be rotated any number of times without accumulating any degradation.
The thumbnails are rendered once when the file loads and are not re-drawn as you work; only the angle badge in the corner updates. Trust the badge. It shows the exact rotation that will be written for that page, and the saved PDF will match it even though the preview still shows the original orientation.
Files that need a password to open are refused outright. A file carrying only an owner password — the kind that restricts editing rather than opening — may display thumbnails and then fail when you press Save, because the writing library will not modify an encrypted document. Save an unprotected copy first and rotate that.
No. The PDF is read by your browser and both the preview and the save happen in this page, so the document's bytes never leave the machine. The pdf.js and pdf-lib scripts are fetched from public CDNs, which carries none of your content. Nothing is retained once you close the tab.
No. Deskewing a page tilted by a few degrees means re-rendering it as an image and rotating the pixels, which throws away the searchable text layer and re-compresses the artwork. This tool only sets the quarter-turn attribute the PDF format defines, which is why it stays completely lossless.
Check the printer dialog rather than the file. Options such as auto-rotate, fit-to-page and landscape override often reinterpret a rotated page, particularly when the document mixes orientations. Turn auto-rotate off and print at actual size to confirm what the file really contains.
Use Cases
Fixing Sideways Scans
An office assistant corrects the pages a sheet-feeder pulled in the wrong way round, turning only the affected sheets rather than re-scanning the whole stack.
Landscape Tables in a Portrait Report
An analyst turns the two wide financial tables in an otherwise portrait report so reviewers can read them without tilting the screen.
Preparing Merged Documents
An administrator normalises the orientation of pages pulled from several sources before merging them, so the finished bundle reads consistently.
Photographed Documents
Someone who photographed a contract with a phone rotates the pages that came in upside down before filing the PDF or sending it on.
Print Preparation
A designer sets every page to the orientation the print shop expects, avoiding the auto-rotate guesswork that causes misaligned trims.