The photo looked fine on your phone, but in the PDF it lies on its side. Or the scanner fed two pages upside down, and now the person you sent it to has to turn their head. Sideways pages are one of the most common problems with PDFs made from photos and scans, and they’re easy to fix for good, as long as you fix them in the file and not just on your screen.
Why photos come out sideways
A phone’s camera sensor always records the picture the same way round. When you hold the phone upright or turn it, the camera doesn’t rotate the pixels; it writes a small note in the photo’s EXIF data saying which way is up. Your gallery app reads that note and shows the photo correctly. Software that ignores the note shows the raw pixels, which is why the same photo can appear upright in one app and sideways in another.
The image to PDF converter on this site reads that orientation note and turns the photo upright before placing it on the page, so phone photos land the right way up. If a page still comes out sideways, the photo itself was taken at an angle (for example a document shot from above with the phone tilted), and you’ll need to turn the page yourself.
Why scans come out upside down
Scanners with a document feeder scan pages in whatever direction they go in. One sheet put in the wrong way round, or a double-sided scan where the backs come out flipped, produces upside-down pages. Some scanning apps try to detect text direction and turn pages automatically, but they get it wrong on pages with little text, such as forms or ID cards.
Fix it in the file, not in the viewer
Every PDF viewer has a rotate button, but in most of them it only changes how the page is shown to you, right now. Close the file or send it to someone else and the page is sideways again. To fix it for everyone, the rotation has to be saved in the PDF.
Step by step
- Open Rotate PDF and drop your file on the page. You’ll see a thumbnail of every page.
- Use the rotate buttons under each sideways page. Each click turns the page by 90°, so a page that is upside down needs two clicks. If every page is wrong in the same way, use Rotate All Left or Rotate All Right.
- While you’re there, remove any blank or unwanted pages with the bin icon under the page, such as the empty backs of single-sided sheets in a double-sided scan.
- Click Save & Download Rotated PDF. The new file has
_rotatedadded to its name; open it to check that every page reads normally.
Rotating doesn’t lower the quality
A PDF page has a rotation setting that tells viewers how to display it. The tool changes that setting and nothing else: images aren’t re-compressed and text stays selectable, so you can rotate as many times as you like without losing quality. The file size stays the same, too.
When a page is only slightly crooked
Rotation in a PDF works in steps of 90°. A photo of a document taken at a slight angle, where the text runs a few degrees uphill, can’t be straightened that way. Straighten the photo before you build the PDF: the photo editor on most phones has a crop tool with a straighten or tilt slider, and document-scanning apps (including the one built into the iPhone Notes app and Google Drive on Android) correct the perspective automatically. The guide on scanning paper documents with your phone has tips for getting it right when you take the picture.
Mixed portrait and landscape pages
Some documents really do have landscape pages, such as a wide table or a spreadsheet printout. Those should stay landscape: rotating them to portrait would make the text run sideways. A PDF can contain both orientations, and readers handle that well. Only turn the pages whose text isn’t the right way up.
If you’re building a PDF from photos and want every page the same size, the guide to page sizes and orientation explains the A4 and original-size layouts.