TheTools.World tool
Rotate PDF online
Rotate every page, or specific pages, of a PDF by 90, 180, or 270 degrees. Useful for fixing sideways or upside-down pages from a scanner or phone camera, without uploading your file.
Rotate PDF pages
Rotate every page, or specific pages, of a PDF by 90, 180, or 270 degrees. Useful for fixing sideways or upside-down pages from a scanner or phone camera, without uploading your file.
How to rotate a PDF
- Choose a PDF file.
- Choose the rotation angle: 90, 180, or 270 degrees clockwise.
- Enter which pages to rotate, like 1,3-5, or leave blank to rotate every page.
- Click Rotate PDF.
- Check the inline preview to confirm the pages are now right-side up before downloading.
Rotation is applied on top of each page's existing orientation, so rotating an already-rotated page adds to its current angle rather than resetting it.
What rotating does and how it works
Every PDF page has a rotation value (0, 90, 180, or 270 degrees) that tells a PDF viewer how to display that page's content. This tool reads each target page's current rotation and adds the angle you chose, wrapping around at 360 degrees. This means the underlying page content is never redrawn or re-rendered; only the display orientation changes, so text stays sharp and selectable exactly as before.
Best practices
- Check the preview after rotating before downloading, since 90 vs. 270 degrees is easy to mix up when a page is sideways.
- Rotate only the pages that need it. If a scan mixed portrait and sideways pages, use the page-range field to target just the sideways ones rather than rotating every page.
- Use 180 degrees for upside-down pages, and 90 or 270 for sideways pages, choosing the direction that makes the text read normally.
Common mistakes to avoid
- Rotating all pages when only some are sideways. Check each page first; a mixed-orientation scan needs the page-range field, not a blanket rotation.
- Confusing clockwise and counter-clockwise. This tool's 270-degree option is equivalent to a 90-degree counter-clockwise turn; pick whichever value straightens the text.
- Re-rotating an already-rotated page by the wrong amount, which adds to its current rotation rather than resetting it — if a page ends up wrong, recheck its current orientation before choosing the next angle.
Real-world use cases
- Fixing sideways pages from a flatbed or mobile scanner that captured a page in landscape orientation by mistake.
- Correcting upside-down pages from a document fed into a scanner the wrong way.
- Standardizing orientation across a document assembled from multiple scanned sources.
- Preparing a document for printing where every page needs to match the printer's expected orientation.
Supported formats
Input: a single standard, non-encrypted PDF file. Output: the same PDF with rotation applied to the selected pages. This changes display orientation only; it does not crop, resize, or re-flow page content.
Worked example: fixing 2 sideways pages in a 5-page scan
A 5-page scanned document has pages 2 and 4 sideways (scanned in landscape by mistake, needing a 90-degree clockwise turn to read normally). Setting the rotation to "90 degrees clockwise" and the pages field to "2,4" leaves pages 1, 3, and 5 untouched while fixing only the two sideways pages.
| Page | Original orientation | Rotation applied | Result |
|---|---|---|---|
| 1 | Upright | None (not in range) | Upright |
| 2 | Sideways | +90° | Upright |
| 3 | Upright | None (not in range) | Upright |
| 4 | Sideways | +90° | Upright |
| 5 | Upright | None (not in range) | Upright |
Limitations
This tool cannot open password-protected or encrypted PDFs. It rotates the page's display orientation only; it does not re-flow text, crop margins, or change page dimensions to match the new orientation, which is standard PDF rotation behavior and matches what most PDF viewers and printers expect.
Privacy
Your PDF is read and rotated locally in your browser using the pdf-lib JavaScript library loaded from this site. Files are not uploaded to a server. See the privacy policy for full detail.
Troubleshooting
- If a page rotates the wrong way, try the other direction (90 vs. 270 degrees) rather than 180.
- If only some pages need fixing, use the page-range field instead of rotating the whole document.
- If rotation seems to do nothing visually in some viewers, some very old PDF viewers ignore the rotation flag; the file's rotation metadata is still correctly set per the PDF specification.
Why scanned pages end up sideways in the first place
Sideways or upside-down pages usually happen for one of two reasons: a physical page was fed into a scanner or photographed in landscape orientation while the rest of the batch was portrait, or a scanning app auto-rotated based on a guess about text orientation and guessed wrong on a page with little text, a diagram, or a photo. Multi-page batch scans are especially prone to this because a single misfed sheet can throw off just one page in an otherwise consistent document, which is exactly the case the page-range field here is designed for: fix the one or two odd pages without touching the rest.
Reading rotation values from a PDF viewer
If you want to check a page's current rotation before deciding which angle to apply, most desktop PDF viewers show a rotate button in their toolbar that previews the effect without saving, which is a quick way to test 90 vs. 270 degrees before committing. This tool applies the same style of rotation value that PDF viewers use internally (0, 90, 180, or 270 degrees from upright), so a page that looks correct after rotating in a viewer will look the same way here.
Conclusion
Use this tool to fix sideways or upside-down PDF pages without re-scanning. For removing pages entirely instead of rotating them, see delete PDF pages; to change page order, see reorder PDF pages.
Related tools
FAQ
Does rotation change the page size?
No. Rotation changes the page's display orientation only; it does not crop or resize the page content.
Can I rotate just some pages?
Yes. Enter specific page numbers or ranges, like 1,3-5, in the pages field. Leave it blank to rotate every page.
What if I rotate a page that's already rotated?
The new rotation is added to the page's current rotation, not reset to zero first, so check the result and adjust the angle if needed.
Is my PDF uploaded anywhere?
No. Rotation happens locally in your browser. Files are not sent to a server.
Can I rotate different pages by different amounts in one pass?
Not in a single run. Each run applies one chosen angle to the pages you list. For mixed rotations, run the tool once per angle, targeting the relevant pages each time on the previously downloaded result.
Will rotating affect text selection or searchability?
No. Rotation only changes the display orientation flag; the underlying text objects are unchanged, so text stays selectable and searchable exactly as before.