Why photos appear sideways — and how to fix them for good
A photo upright on your phone shows sideways on a website or computer. Here is why orientation data causes it, and how to rotate the picture permanently.
Updated
Tools for this job: Rotate Image · EXIF Viewer and Remover · Crop Image
Photos appear sideways because phones often save the picture in one orientation and record the correct rotation in a small EXIF tag; a program that ignores the tag shows the picture on its side. To fix it for good, rotate the pixels themselves and save a new copy: rotate the photo permanently, and it displays upright everywhere.
The photo looks perfect on your phone. You upload it to a website, attach it to an email or open it on a computer — and it is lying on its side. Nothing is wrong with the picture. It is being shown by a program that ignores one small piece of information inside the file.
Why it happens
A phone's camera sensor always captures the image the same way round, whichever way you hold the phone. Rather than turning the pixels, many cameras save the picture as captured and add a note to the file's EXIF data saying “rotate this 90 degrees to display”. Programs that read the note show the photo upright. Programs that ignore it — some websites, older software, some upload systems — show the raw pixels, on their side.
The permanent fix: rotate the pixels
- Add the photo to Rotate Image. It appears the way your browser displays it.
- If it is not upright, use the quarter-turn buttons until it is.
- Download the result.
The saved picture has its pixels stored the right way up, so every program shows it correctly, whether or not it reads orientation notes. Quarter turns and flips are exact: no pixels are resampled and nothing is lost.
Straightening a tilted horizon
For a photo that is a few degrees off — a sloping horizon, a leaning building — drag the angle slider a little at a time until a line you know should be level looks level. Rotating by an arbitrary angle leaves empty corners, filled with the background colour you choose; crop them away afterwards with Crop Image. This kind of rotation does resample the image, so expect a very slight softening.
Mirror images
Front cameras often save selfies mirrored, so writing in the background reads backwards. Flip the picture horizontally to correct it. Flipping is different from rotating: it mirrors the image rather than turning it.
Removing location data without breaking orientation
The orientation note lives in the same EXIF data as the photo's location and camera details. A careless metadata remover deletes the note too, and the cleaned photo turns sideways. The EXIF Viewer and Remover keeps just the orientation value by default while removing everything else, so cleaned photos stay upright.
Preventing it
- Rotating the photo in your phone's gallery app and saving usually fixes the pixels for that photo.
- Sending photos through apps that re-process them often fixes orientation along the way.
- For photos going to a website or a system you know is fussy, rotating them first is the reliable route.
If you run a website
Modern browsers honour the orientation note when displaying images, but image processing on the server may not. If uploads from phones appear sideways on your site, the fix is to apply the orientation when processing uploads, then store the image upright.