Switching
Troubleshooting

Why photos rotate themselves — EXIF orientation, explained and fixed

Why a photo that looks upright on your phone lies on its side once uploaded, and how to bake the rotation into the file so it stops happening.

September 14, 2026

Phones save the pixels exactly as the sensor read them and record which way is up in the EXIF orientation tag. Software that reads the tag shows the photo upright; software that ignores it shows it on its side. The reliable fix is to bake the rotation into the pixels instead of leaving it to a tag.

A photo sits happily upright in your phone's gallery, then lies on its side the moment you upload it to a forum or drop it into a document. Download it again and it looks fine. Nothing is corrupted and the upload did not fail.

The camera does not rotate anything when it saves

Hold the phone in portrait and the image sensor is still mounted the same way it always is, so the captured pixels usually come out landscape. Rotating them at capture time costs time and quality, so the camera leaves **a note** instead: 'display this rotated 90 degrees clockwise'. That note is the EXIF orientation tag.

Which is why one file looks different in different places. Software that reads the note rotates the image for you. Software that does not draws the pixels as stored, on its side. Neither is a bug — they are two readings of the same file.

Where it tips over and where it does not

SituationResultWhy
Phone gallery, modern browsersUprightReads the orientation tag
Older forums and upload previewsOn its sideIgnores the tag and draws the pixels
Pasted into a documentVariesDepends on the application
After cropping or editingStuck sidewaysThe tag often does not survive the edit
If the same file behaves differently in different places, suspect the orientation tag.

The reliable fix — rotate pixels, not the tag

The fix is simple: rewrite and save the pixels in the orientation you actually see. The tag is then unnecessary, and software that never read it shows the same thing as everything else. People usually call this 'baking in' the rotation.

Switching's rotate tool already applies the orientation tag when it opens the file, so **saving without rotating anything at all** is enough to fix the pixels in place. If it genuinely looks tilted, turn it in 90-degree steps first, then save.

Why stripping EXIF does not lay the photo down

A common worry: if I remove EXIF to get rid of the GPS coordinates, does the orientation go with it and tip the photo over? It does not. Stripping metadata means redrawing and re-saving the image, and at that point the pixels are written in the orientation you were already seeing — the one the tag described. The tag disappears, but **the job it was doing has already been applied to the pixels**.

So removing EXIF clears the location and device data and settles the rotation at the same time. Use the rotate tool when orientation is the goal and the EXIF tool when privacy is, and either way the orientation ends up fixed.

Keeping it from coming back

  • Save once to settle the orientation, then upload that saved file.
  • With several photos, process them together and take the ZIP — it is far quicker.
  • Keep the original. Re-encoding means a JPG goes through compression one more time, however slightly.
  • A photo that is upside down is usually about how it was taken, not the tag. That one you do have to turn yourself.

Frequently asked questions

The preview is upright but the upload is sideways. Which one is real?
They are the same file. The preview read the orientation tag and the destination did not. Rather than one being right, assume the receiving end may ignore the tag and settle the orientation into the pixels before you upload.
Does this reduce quality?
A JPG goes through lossy compression each time it is saved, so very slightly. One pass is not visible. Saving as PNG avoids the loss but produces a much larger file. Keeping the original around saves you from repeated round trips.
Can I only rotate in 90-degree steps?
For this problem, 90-degree steps are all you need — the orientation tag only expresses quarter turns and mirroring. Straightening a slightly tilted horizon is a different job, and it leaves wedges of empty space in the corners.
Is the file uploaded anywhere?
No. Both rotation and EXIF removal run inside your browser. That matters especially for the EXIF case: the photo never passes through someone else's server while it still carries its location data.

Explore related tools