Crop tool
CropKit
All guides

Why a photo shows up sideways: EXIF orientation

Phones save the photo lying down and attach a note that says "rotate me." Software that ignores the note shows it sideways, and the fix is simple.

Updated 2026-09-10

A photo that looks upright on the phone shows up sideways or upside down on some website. The file is not broken and neither is the site. The photo is stored in one orientation and displayed in another, and the two are separate.

The camera always shoots the same way

The phone's camera sensor is fixed in place. Whether you hold the phone upright or on its side, the sensor always records pixels in landscape. A photo shot upright is actually stored lying on its side. The phone compensates by reading its gyroscope at the moment of capture and writing a note into the file: "display this rotated 90 degrees clockwise." That note is the EXIF Orientation value.

Software that reads the note rotates the photo for display; software that does not shows it as stored, lying down. Phone galleries, current browsers, and most photo apps read it. Older image viewers, some websites' upload previews, and tools that draw the image themselves sometimes do not.

Orientation valueMeaning
1As stored. No rotation
3Rotate 180 degrees
6Rotate 90 degrees clockwise (most upright shots)
8Rotate 90 degrees counter-clockwise
2, 4, 5, 7Mirrored versions of the above. Rare

Where it goes wrong

  • The site you upload to ignores the note and stores only the pixels. A photo that looked upright on screen lies down once posted.
  • The site strips the note but does not rotate the pixels. The downloaded file is sideways everywhere.
  • An editing tool ignores the note and draws the pixels as stored. It is sideways from the first screen.
  • A tool reads the note, rotates the pixels, and leaves the note in place. Rotated twice, it ends up upside down.

The fix: rotate the pixels themselves

The reliable fix is to stop depending on the note. Rotate the pixels for real, save, and drop the note; then it shows upright whether or not the note is read. Rotating in a photo app and saving as a new file, or opening and re-saving in an editor, usually does this.

A mirrored selfie is a different problem

The front camera shows a mirrored preview, because that is what makes your movements feel natural. But the file is saved unmirrored, in the real orientation. That is why your own face looks slightly off in the result. If there is text in the selfie, check it reads correctly in the saved file; a horizontal flip brings it back to the preview's orientation if you prefer.

EXIF holds more than rotation

The same metadata area holds the capture date, camera model, aperture and shutter speed, and location. If the phone is set to record location, the file contains the coordinates of where it was taken. Most social platforms strip this on upload, but a file passed on directly carries it. Baking the rotation into the pixels and dropping EXIF fixes the orientation and removes the location in one step.

Further reading