How to Fix a Sideways or Upside-Down PDF
Dev Nexus5 min read
Why a scan opens sideways or upside-down, and how to correct its orientation permanently so the file reads upright for everyone.
A document comes back from the scanner and it opens on its side. Or worse, upside-down. You can read it by tilting your head, but the moment you send it to someone else - or try to print it - the orientation is a real problem. A sideways scan looks unprofessional and, in some workflows, gets bounced back.
This guide explains why scans end up rotated in the first place and, more importantly, how to fix the orientation permanently so the file reads upright everywhere, not just on your screen.
The Problem
Scanners and phone cameras decide orientation based on how the page was fed or how the device was held, not on how the content should read. Feed a portrait page into a document feeder that expects landscape and you get a sideways scan. Photograph a receipt with the phone turned the wrong way and the saved PDF is rotated. The content is fine - it is just recorded at the wrong angle.
The instinct is to hit the rotate button in your PDF reader. It looks fixed, but that button usually rotates only the view - close the file or send it on, and it is sideways again, because the page's own orientation never changed. To fix the file itself people reach for heavy desktop editors, or upload the scan to a free website that processes it on a server. For an ID, a contract or a medical form, sending it off just to turn it upright is a privacy risk you should not have to take. And rotating blind, by degree value, often just swaps sideways for upside-down.
The Solution
The fix is to change the orientation stored in the file, not the view - and to do it without uploading anything. The Rotate PDF tool reads your scan locally, shows each page as a thumbnail, and lets you turn pages in undefined-degree steps until they are upright. When you download, that orientation is written into the document, so the file opens and prints the right way up for everyone, permanently.
Because you work from thumbnails, you can see each page straighten in real time and tell which way to turn it, so a sideways page becomes upright in one click and an upside-down page in two. Only the orientation flag changes - the scanned image, its resolution and any text layer are left exactly as they were. And since everything runs in your browser, your scan never leaves your device, which matters for the sensitive documents that most often need straightening. If some pages should be removed rather than rotated, use Delete Pages instead.
Step-by-Step Guide
- 1
Open the sideways scan locally
Go to the Rotate PDF tool and drag your scanned file onto the drop zone, or click to browse. It is read directly in your browser - nothing is uploaded - and each page shows as a thumbnail so you can see exactly how it is oriented.
- 2
Work out which way each page is turned
Check the thumbnails. A page lying on its side needs a single undefined-degree turn - but which way depends on whether it fell left or right. A fully inverted page needs undefined degrees. Note whether every page is wrong the same way or only some are.
- 3
Rotate until each page reads upright
Click rotate to turn the affected pages in undefined-degree steps, watching the thumbnails as they straighten. Stop as soon as a page reads upright rather than counting degrees - the live preview makes it obvious when you have gone one click too far.
- 4
Confirm the whole document is correct
Skim every thumbnail before saving. Make sure the pages you fixed are upright and you have not accidentally rotated a page that was already correct. This last look is what stops a sideways scan from becoming an upside-down one.
- 5
Save the permanently corrected file
Download the result. The new orientation is baked into the PDF, so it opens upright on any device, prints upright, and stays upright when you email it. Your original scan is untouched, so you can start over if you overshot a turn.
Common Mistakes
Trusting the reader's rotate button
Rotating inside a viewer typically changes only the on-screen view, which reverts when the file is reopened or sent elsewhere. To fix a scan for good, rotate and re-save with a tool that writes the orientation into the file.
Turning a sideways page the wrong way
Rotate a sideways page in the wrong direction and it lands upside-down. Use the thumbnails to watch each page straighten and stop at upright, instead of picking undefined or undefined degrees blind.
Rotating the whole file when only some pages are off
If a scan mixes correct and rotated pages, turning everything flips the good pages too. Select only the pages that are sideways or inverted and leave the rest alone.
Uploading a private scan to a website
IDs, contracts and medical forms are exactly the documents that end up sideways - and exactly the ones you should not upload just to rotate. Use a browser-based tool so the scan stays on your machine.
Frequently Asked Questions
Why does my PDF open sideways or upside-down?
Scanners and cameras record orientation based on how the page was fed or how the device was held, not on how the content should read. So a portrait page fed the wrong way, or a photo taken at an angle, saves as a rotated PDF even though the content is fine.
How do I fix a sideways PDF permanently?
Rotate the pages with a tool that writes the new orientation into the file, then download it. Unlike a reader's rotate-view button, this makes the file open and print upright everywhere, and the fix does not revert.
Will fixing the orientation lower the scan's quality?
No. Only the orientation flag on each page changes - the scanned image, its resolution and any text layer are left exactly as they were, so nothing is re-rendered or re-compressed.
Is my scan uploaded when I fix it?
No. The whole operation runs in your browser, so your file never leaves your device. That is important for IDs, contracts and medical scans, and it means the tool also works offline.
What if only some pages are sideways?
Select just the pages that are out of orientation and rotate only those, leaving the correctly-oriented pages untouched. The thumbnails make it easy to fix a mixed document one page at a time.
Try the Tool
Rotate PDF
Straighten a sideways or upside-down scan in your browser and save the fix for good - no upload, no install.
Related Tools
Related Articles
How to Rotate PDF Pages Online
A step-by-step guide to rotating some or all pages of a PDF in 90-degree steps and saving the fix so it sticks, all in your browser.
Read articleAre UUIDs Really Unique?
In practice UUIDs never collide - here is the math behind why, and the one thing people get wrong: a UUID is an identifier, not a secret.
Read articleencodeURI vs encodeURIComponent Explained
The clear difference between encodeURI and encodeURIComponent, with examples showing which one to use for a value versus a whole URL.
Read article