Why are my photos sideways when I upload them?

A photo looks right on your phone and sideways everywhere else. The hidden orientation tag behind it and how to fix a photo so it is upright in every program.

Last updated

It is one of the oddest everyday computer problems. The photo is upright on your phone, upright in your gallery and sideways the moment you upload it to a form, a shop listing or a website. Rotating it on the phone doesn’t help. The photo isn’t broken; two programs just disagree about which way is up.

The hidden tag

When you take a photo, the camera sensor always records it the same way round. If you held the phone upright, the picture is stored sideways and the phone adds a small tag to the file’s metadata saying “rotate 90 degrees when showing this”. Phones, modern browsers and most photo apps read the tag and turn the photo for you.

Some programs don’t. Older software, some upload systems and anything that strips metadata before processing the image show the pixels exactly as stored. That is when the photo appears sideways. The EXIF viewer shows the orientation tag, so you can confirm this is what is happening.

The fix: rotate the pixels

The reliable fix is to rotate the image itself, so it is upright with or without the tag. The image rotator does exactly that: it reads the tag, applies it and saves a photo whose pixels are the right way up. Every program then shows it correctly. It handles a whole folder at once, which helps when a batch of uploads all came out sideways.

When removing metadata is the cause

Stripping metadata for privacy removes the orientation tag too if the tool is careless and a photo that was upright becomes sideways. Remove EXIF avoids this by keeping that one tag and nothing else, for photos that were stored rotated. More on what else is in the metadata in should you remove EXIF data.

Scanned documents

Sideways scans in a PDF are a different mechanism, with its own fix, covered in how to rotate a PDF permanently.

Common questions

Why does the photo look fine on my phone but not on the website?

The phone reads the orientation tag and turns the photo for display. The website or the program processing the upload, ignores the tag and shows the pixels as they were stored, which is sideways.

Why do phones not just save the photo upright?

Writing a tag is instant, while rotating the pixels of a large photo takes time and, for JPG, would mean re-compressing it. Cameras have done it this way for decades.

Can removing metadata make a photo sideways?

Yes, if the orientation tag is removed with everything else. The photo then displays exactly as stored. The EXIF remover on this site keeps that single tag for photos that need it.

Does rotating a JPG lose quality?

Rotating the pixels means saving the JPG again, which loses a tiny amount of quality at a high setting. It isn’t visible in normal use.

Tools for this

More guides