Why Your Photo Is Sideways (EXIF Orientation) and How to Fix It

Why Your Photo Is Sideways (EXIF Orientation) and How to Fix It

Quick answer: If a photo is sideways on a website but upright on your phone, blame the orientation tag: your phone often saves a photo sideways and adds a hidden EXIF “orientation” tag telling apps how to turn it. Your gallery reads the tag; some websites, programs and upload systems don’t, so the photo appears rotated. The permanent fix is to rotate the photo upright with Rotate Image and save it, which stores the correct orientation in the pixels themselves.

It is one of the most confusing little problems in digital photos: a picture looks perfect on your phone, then shows up on its side the moment you upload it to a form, attach it to an email or open it on another computer. Nothing is wrong with your eyes or your phone. The photo is carrying an instruction that some software follows and some doesn’t.

Why phones save photos sideways

A camera sensor has a fixed shape, usually wider than it is tall. Whether you hold your phone upright or sideways, the sensor records the image in its own native orientation. Physically rotating every image at the moment you take it would cost time and battery, so most phones take a shortcut: they save the pixels exactly as the sensor captured them and add a small note to the file’s EXIF metadata saying which way is up.

That note is the EXIF orientation tag. It holds a value from 1 to 8:

  • 1 means the image is already the right way up.
  • 3 means it needs turning 180°.
  • 6 means it needs turning 90° clockwise, typical of a photo taken with the phone held upright.
  • 8 means it needs turning 90° counter-clockwise.
  • 2, 4, 5 and 7 are the same turns combined with a mirror flip.

Any app that reads the tag rotates the photo on screen before showing it to you, so you never notice anything unusual.

EXIF orientation values: 1 upright, 3 turn 180 degrees, 6 turn 90 degrees clockwise, 8 turn 90 degrees counter-clockwise
Values 2, 4, 5 and 7 are the same turns combined with a mirror flip.

Why it only goes wrong in some places

Phone galleries and, since around 2020, all major web browsers apply the orientation tag automatically. The trouble starts with software that doesn’t:

  • Upload systems on some websites resize or re-save your photo on their servers and drop the metadata without applying the rotation first. The tag disappears and the sideways pixels are all that is left.
  • Older programs, some email clients and some printing services ignore the tag.
  • Tools that strip metadata for privacy or to save space can remove the tag without rotating the pixels.

A side effect: the file’s width and height reflect the stored pixels, not what you see. A portrait photo can report itself as 4032 × 3024, wider than it is tall, which can confuse forms that check dimensions. Our guide to image dimensions and aspect ratio explains how those numbers are read.

Comparison of software that reads the EXIF orientation tag and software that may ignore it
Rotating the pixels themselves makes the photo correct everywhere.

Why it matters

A sideways holiday photo is just annoying. A sideways ID photo is a problem: systems that check for a face in a certain position can reject it outright, and a human reviewer may ask you to resubmit. It is also one of the reasons covered in our guide to rejected photo uploads.

How to fix a sideways photo for good

The reliable fix is to rotate the actual pixels, so the image is correct whether or not the software reads any metadata:

  1. Open Rotate Image in your browser, on a phone or computer.
  2. Add the photo. Check how it appears in the preview.
  3. Rotate in 90° steps until it is the right way up. If the picture is mirrored, flip it.
  4. Download the result and use that file for your upload, email or print.

The new file has its pixels stored upright, so it displays correctly in every program. Turning an image by 90, 180 or 270 degrees is a clean operation, so the visible quality stays the same. The photo is processed on your device and never uploaded.

Four steps to fix a sideways photo: open Rotate Image, turn it upright, download, use the new file
Turning by quarter turns keeps the visible quality the same.

How to check that the fix worked

  • Open the new file in a different app, or on a different device, from the one you used before.
  • Look at its dimensions in the file information: a portrait photo should now be taller than it is wide.
  • Use the preview that many upload forms show after you select a file.

Mirrored selfies and flipped text

A related problem: text on a shirt or a sign reads backwards in a selfie. Front cameras show you a mirror image while you frame the shot, and depending on your phone’s settings, the saved photo may be mirrored too. On an iPhone, the “Mirror Front Camera” option in the Camera settings controls this. To fix a photo you’ve already taken, open it in Rotate Image and flip it horizontally.

Straightening a slightly tilted photo

Orientation problems come in quarter turns. A horizon that is off by a few degrees is a different issue. PixelKit’s rotate tool handles 90° turns and flips; for a small tilt, use the straighten control in your phone’s photo editor, then trim any uneven edges with Crop Image. If you need a precise shape afterwards, our guide on cropping to a square or any ratio shows how.

How to avoid sideways photos in the future

  • For anything important, such as ID photos, documents and job applications, rotate the photo upright and save it before uploading, rather than trusting the upload system to read the tag. Our guide to preparing a passport or visa photo builds this into its steps.
  • Hold the phone steadily in the orientation you want before you take the picture. Phones decide the orientation from their motion sensors, and a phone held flat, pointing at a document on a table, often guesses wrong.
  • Check the preview that most upload forms show before you press submit.

Photo sideways? The short version

A photo sideways on upload but upright on your phone is almost always an EXIF orientation problem: the camera stored the image one way and relied on a tag to turn it. Some sites ignore that tag, so the photo sideways effect comes from the software, not the picture. The lasting fix is to rotate the image so the correct orientation is written into the pixels with Rotate Image, then check it on a computer before you upload it again.

Frequently asked questions

Why is my photo upright on my phone but sideways on my computer?

The photo is stored sideways with an orientation tag. Your phone reads the tag and turns it; the program on your computer, or the website, doesn’t. Rotating and saving the photo fixes it everywhere.

Does rotating a photo reduce its quality?

Turning by 90, 180 or 270 degrees moves pixels around without inventing new ones, so the visible quality stays the same.

Why did my photo turn sideways after I sent it?

The app or service that handled it probably removed the metadata, including the orientation tag, without rotating the pixels first. Send a copy that has been rotated and saved upright.

Can I rotate a photo on my phone without an app?

Yes. Rotate Image works in Safari, Chrome and other mobile browsers, so there is nothing to install.

Sources and further reading

  • Exif (Wikipedia): How camera metadata, including orientation and GPS location, is stored in photos.
  • image-orientation (MDN Web Docs): How browsers apply EXIF orientation when displaying images.
  • CSS image-orientation (Can I use): Browser support for applying EXIF orientation to images.