Explainers5 min read
By ImageResizer.org Editorial Team·Last updated July 2026

Why Your iPhone Photo Is Sideways on Windows But Fine on Your Phone

It is one of the most quietly maddening problems in digital photography: a photo that displays perfectly on your phone arrives sideways on your laptop, or uploads rotated to a website. The pixels never changed. What changed is who was reading the instructions.

Your Camera Sensor Never Rotates

When you turn your phone sideways to take a landscape photo, nothing inside the camera physically turns. The image sensor is fixed to the body, and it captures the scene in its own fixed orientation regardless of how you are holding the device.

The phone knows which way up it was, because it has an accelerometer. But rather than rotating the millions of pixels it just captured — which takes time and, for lossy formats, costs a little quality — it does something far cheaper. It writes a small note into the file's metadata that says, in effect, display this rotated 90 degrees clockwise.

That note is the EXIF orientation tag. It is a single number between 1 and 8, and it is the entire source of the problem.

Some Software Reads the Note. Some Does Not.

Software that honours the orientation tag rotates the image on screen and shows it the way you intended. Software that ignores the tag shows the raw sensor data, which appears sideways.

Both are displaying the identical file. Neither is corrupted. They simply disagree about whether to follow an instruction stored alongside the pixels rather than in them.

Apple's own software has always honoured it, which is why the photo looks right on your phone. Modern browsers honour it. Plenty of desktop applications, older image libraries, and a long tail of upload handlers do not.

ValueMeaningWhat a correct viewer does
1NormalNothing
2Mirrored horizontallyFlips horizontally
3Rotated 180°Rotates 180°
4Mirrored verticallyFlips vertically
5Mirrored and rotated 90° CCWFlips and rotates
6Rotated 90° CCWRotates 90° clockwise
7Mirrored and rotated 90° CWFlips and rotates
8Rotated 90° CWRotates 90° counter-clockwise

Values 6 and 8 account for the overwhelming majority of sideways-photo complaints.

Why Uploading Often Makes It Worse

A photo can look correct everywhere you have tried it and still upload sideways to a website. This catches people out constantly, and there is a specific reason for it.

Many services strip EXIF metadata from uploads. There are good reasons to do so — EXIF frequently contains GPS coordinates, device identifiers and timestamps, and removing it protects user privacy while shrinking the file slightly.

But if the server strips the metadata without first applying the rotation the metadata described, the instruction is discarded while the un-rotated pixels remain. The photo is now permanently sideways, and no viewer can fix it, because the note explaining which way up it should be no longer exists.

This is why the problem feels random

Whether a given photo survives an upload depends on how that particular service handles metadata — something you have no visibility into. The same photo can upload correctly to one site and sideways to another on the same afternoon. It is not your phone being inconsistent; it is a difference between two servers.

The Fix: Make the Pixels Match the Intent

The permanent solution is to stop relying on the metadata entirely. Physically rotate the image so the pixels themselves are in the correct orientation, and normalise the orientation tag to 1 — meaning no further rotation needed.

Once that is done, every piece of software agrees, because there is no longer an instruction that can be ignored. The image is simply the right way up.

This is worth doing proactively before uploading anything important — job application photos, document scans, product images for a listing. It costs nothing and removes an entire category of problem.

90 degree rotations are free

Rotating by 90, 180 or 270 degrees rearranges pixels without recalculating any of them, so nothing is degraded no matter how many times you do it. Rotating by an arbitrary angle, such as straightening a crooked horizon by a few degrees, does require interpolation and does soften the image very slightly. Straightening is usually worth it — but do it once, from the original.

Related Symptoms With the Same Cause

Once you know about the orientation tag, several other odd behaviours stop being mysterious.

  • A photo that changes orientation the moment you crop or edit it — the editor applied the rotation and rewrote the tag.
  • Thumbnails that appear correct while the full image is sideways, or the reverse — the thumbnail was generated by different code than the viewer.
  • Selfies that appear mirrored to you but normal to everyone else — a related tag, and the same class of problem.
  • A batch of holiday photos where only some are rotated — those were the ones taken with the phone turned.

In every case the underlying question is the same: is this program reading the metadata, and is it writing it back correctly afterwards?

Frequently Asked Questions

Why does the photo look fine on my phone but sideways on my computer?

Your phone reads the EXIF orientation tag and rotates the image for display. The program on your computer is ignoring that tag and showing the raw sensor data instead. Both are displaying the same unmodified file — they simply disagree about whether to follow the rotation instruction stored in the metadata.

Why did my photo upload sideways when it looked correct before?

The service most likely stripped the EXIF metadata without first applying the rotation it described. That is common practice for privacy reasons, since EXIF can contain GPS location. Unfortunately, if the rotation is not baked into the pixels before the metadata is removed, the instruction is lost and the image stays sideways permanently.

Does rotating an image reduce its quality?

Not for 90, 180 or 270 degree rotations. Those simply rearrange existing pixels without recalculating any values, so the result is mathematically identical in quality. Rotating by an arbitrary angle does require interpolating new pixel values and softens the image very slightly.

Can I stop my phone from doing this?

Not really — writing orientation to metadata rather than rotating pixels is standard behaviour across essentially all phone cameras, and it exists for good reasons. The practical approach is to physically rotate images before uploading them anywhere that matters, which removes the ambiguity for good.

Why are only some of my photos affected?

Only the ones taken with the phone turned away from its default orientation carry a rotation instruction. Photos shot in the phone's natural upright position have an orientation value of 1, meaning no rotation is needed, so there is nothing for software to get wrong.