Why is my photo sideways when I upload it?

Your phone's camera saves photos in a fixed orientation no matter how you hold it. A small piece of metadata called the EXIF Orientation tag tells apps how to rotate the image for display. Modern apps respect this tag. Older apps and most web upload pipelines ignore it, which is why your photo looks correct on your phone but sideways once uploaded.

The fix in one click

Drop the photo into the rotate tool. The tool reads the EXIF orientation tag, applies the rotation to the pixel data itself, and resets the tag to 1 (normal). Upload anywhere afterward — the photo will display correctly.

Fix photo orientation →

How EXIF orientation actually works

Phone cameras have an accelerometer that detects how you're holding the device. When you take a photo, the sensor captures the image in its native orientation (landscape with the lens up, usually), and the camera writes:

The eight possible values:

  1. Normal — display as stored
  2. Mirror horizontal
  3. Rotate 180°
  4. Mirror vertical
  5. Mirror horizontal + rotate 270° CW
  6. Rotate 90° CW
  7. Mirror horizontal + rotate 90° CW
  8. Rotate 270° CW

When you hold an iPhone vertically (portrait) and take a photo, the sensor captures landscape and writes Orientation = 6 ("rotate 90° clockwise to display upright"). When your gallery app reads the file, it sees the tag and rotates on the fly. You never see the underlying landscape image.

Why uploads break this

Many server-side image processors and older desktop programs ignore the Orientation tag. They show you the raw stored image — landscape — even though it was taken in portrait. Even some browsers ignore it inside `<input type="file">` previews while showing it correctly in `<img>` tags. The result is the upload form showing a sideways thumbnail of a photo that looks fine in your gallery.

Apps that get it right

Apps that get it wrong

The permanent fix: bake the rotation into the pixels

The reliable solution is to physically rotate the image data so the photo looks upright when read raw, and set the Orientation tag to 1 (normal). After that, even broken software displays it correctly.

The rotate tool here does this in one step. It:

  1. Reads your photo and its EXIF orientation tag
  2. Decodes the image to pixel data
  3. Rotates the pixels by the angle indicated
  4. Re-encodes as a fresh JPG or PNG with Orientation = 1 (normal)

Nothing uploads. The whole thing runs in your browser.

Open rotate tool →

Batch mode

If you have a whole folder of iPhone photos with this problem, drop them all in. Get a ZIP back with everything fixed.

How to prevent it next time

Related tools