Why photos turn sideways when you upload them (and how to fix it)
Your phone often doesn't rotate the photo it saves. It stores the picture the way the sensor saw it and adds a note saying which way is up. Apps that read the note show it correctly; apps that don't, show it sideways.
Processed locally in your browserA photo shows up sideways when its pixels are stored unrotated and an EXIF "Orientation" tag says how to turn them — and the app or website displaying it ignores that tag. The lasting fix is a copy with the rotation applied to the pixels themselves, which then looks the same everywhere.
Why cameras store photos this way
A camera sensor has a fixed shape, usually landscape. When you hold the phone upright, the camera saves the image as the sensor captured it and writes a small tag recording how the phone was held. Writing the tag is instant; rotating millions of pixels is not. Software that reads the tag turns the picture the right way when it displays it.
| Orientation value | Meaning |
|---|---|
| 1 | Already upright |
| 3 | Rotate 180° to display |
| 6 | Rotate 90° clockwise to display — the usual value for a phone held upright |
| 8 | Rotate 90° anticlockwise to display |
| 2, 4, 5, 7 | The same turns combined with a mirror flip |
Why some places get it wrong
- Older software and some image libraries read the raw pixels and never look at the tag.
- Upload systems that strip metadata without rotating first. This is the most common cause: a website removes EXIF for privacy — the tag goes with it — but the pixels were never turned, so the photo is published sideways.
- Apps that rotate by changing only the tag. The photo looks fixed on your computer, but anything that ignores the tag still shows it the old way.
Current web browsers do apply the Orientation tag when showing a photo, which is why the same file can look right in a browser tab and wrong after it has been through someone's upload system.
Fix it for good
- Open Rotate & FlipAdd the photo to Rotate & Flip. ImageDoctor applies the Orientation tag when it opens a photo, so it appears the way your phone shows it.
- Adjust if neededIf it's already the right way up, change nothing. If the tag itself was wrong, use Rotate left, Rotate right or the flips until it is.
- DownloadThe saved copy has the orientation built into its pixels. If you choose to keep the metadata, its Orientation tag is reset to "upright" so nothing rotates it twice.
Add a whole folder to fix a batch at once. The same thing happens when you resize, compress or convert a photo here — any of them writes the rotation into the pixels.
Scans and documents upside down
A scan or screenshot that is simply the wrong way round has no Orientation tag involved: the pixels themselves are upside down. Rotate it 180° (or 90°) in Rotate & Flip and download.
Common questions
Tools in this article
Format reference
Keep reading
- Does your photo contain its location? How to checkHow to tell whether a photo carries GPS coordinates, how to check on iPhone, Android, Windows and Mac, and how to remove the location before you share it.
- What your photos reveal: EXIF data and how to remove itEvery phone photo carries hidden metadata — often including exactly where it was taken. How to see what is in yours, and how to strip it before sharing.Guides
- Cropping and aspect ratios: getting the framing rightWhen to crop instead of resize, which aspect ratio to use where, how to straighten a crooked horizon, and how to make one photo work in every social format.Guides