Skip to content
ImageDoctor
Guide5 min read

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 browser

A 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 valueMeaning
1Already upright
3Rotate 180° to display
6Rotate 90° clockwise to display — the usual value for a phone held upright
8Rotate 90° anticlockwise to display
2, 4, 5, 7The 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

  1. 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.
  2. 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.
  3. 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

The phone reads the photo's EXIF Orientation tag; the website either ignores it or removed it without rotating the pixels. Save a copy with the rotation built in and upload that.

Open it in the Image Metadata Viewer and look for Orientation among the image details. "Normal" means the pixels are already upright; anything else, such as "Rotated 90° CW", means apps have to turn the photo to show it correctly.

Rotating by 90° or 180° doesn't blur or crop anything, but the photo is saved again. For a JPEG that is one more lossy encode, which isn't visible at the default quality.

Tools in this article

Format reference

All blog