August 30, 2026
Why Do Photos Come Out Sideways? (And How to Fix It)
Your phone never rotated the photo. It wrote a note asking software to rotate it, and half your software ignores that note. Here is what is really going on.
You held the phone upright and took the picture. It looks upright on the phone. Then you email it to yourself, drop it into a shared document, or upload it to a form, and it arrives lying on its side.
Nothing rotated it in transit. The file that left your phone and the file that arrived are byte for byte identical. What changed is who was doing the looking.
Photos come out sideways because of a small piece of metadata your phone writes and a surprising amount of software ignores. Once you know what it is, both the sideways photo and the mirrored selfie stop being mysteries, and the permanent fix is obvious.
Your Photo Was Never Upright to Begin With
The camera sensor inside a phone is a fixed rectangle, bolted into the body one way round. It does not swivel when you turn the phone. However you hold the device, the sensor reads its pixels out in the same order every time, and the file gets written in that same order.
So a photo you shot in portrait is, at the pixel level, a landscape image lying on its side.
The phone could rotate those pixels before saving. It generally does not, for two decent reasons. Rotating a multi-megapixel grid costs time and battery on every shot. And for a JPEG, rotating means decoding and re-encoding the whole image, which throws away a little quality each time.
So instead of moving the pixels, the phone writes a note.
The Note Is Called the Orientation Tag
That note lives in the file's EXIF metadata, the same block that records the date, the shutter speed and often the location. The field is the orientation tag, and it holds a single small number.
There are eight possible values. Value 1 means the pixels are already the right way up, use them as they are. The others describe a quarter turn, a half turn, or a three quarter turn, plus four less common variants that also mirror the image. In practice, phone photos use only a handful of them.
Here is the part that explains everything else in this article: the tag is an instruction, not a change. The pixels stay exactly where the sensor put them. Every program that opens the file decides for itself whether to read that instruction and act on it.
A program that reads the tag shows you an upright photo. One that ignores it shows you the raw sensor grid, on its side. It is not wrong to do so. It just never checked.
The volunteer who sent the newsletter out sideways
She collects thirty photos from the summer fete, checks every one in her phone gallery, and they all look fine. She uploads them to the mailing tool and schedules the newsletter. The next morning she gets a reply from a committee member: eleven of the pictures are lying on their side. The mailing tool generated its own thumbnails, and whatever library it used to do that never looked at the orientation tag.
Who Reads the Tag and Who Does Not
Support has genuinely improved. Phone galleries and the viewers built into macOS and Windows honour the tag. Modern Chrome, Firefox and Safari all respect EXIF orientation on JPEGs by default, so a photo dropped straight onto a web page usually appears the right way up.
What still ignores it is everything in the middle of a pipeline. Server side resizers and thumbnail generators are the biggest offenders, which is why a photo can look correct in the upload preview and land sideways in the finished page. Older desktop software often skips it. Many content management systems skip it. Browsers do not honour the tag on PNG files at all.
There is one more trap. Anything that strips metadata for privacy, and plenty of tools do this deliberately, takes the orientation tag out along with the location data. The photo does not look stripped. It looks rotated, and the original instruction telling software to turn it back is gone.
Sideways Is One Problem. Backwards Is Another.
If the photo is not on its side but reads back to front, the orientation tag is not your culprit.
Front facing cameras show you a mirrored preview, because that is what people expect from a mirror. Depending on the phone and its settings, the saved file is sometimes the true image and sometimes the mirrored one. When it is mirrored, faces look fine, because faces are roughly symmetrical. Text does not. Any lettering in the shot, on a sign, a jersey, a whiteboard, reads backwards.
This is a real left to right flip in the pixels, not a note in the metadata, so no amount of rotating will correct it. It needs mirroring back.
The coach whose team banner reads backwards
He gets the squad lined up in front of the new sponsor banner and takes the photo on the front camera so he can see the framing. Everyone is in shot, everyone is smiling, and the sponsor's name across the banner behind them is reversed. The sponsor paid for that banner. Reshooting means getting fourteen eleven year olds back into one place.
Fixing It So It Stays Fixed
The durable fix in both cases is the same idea: stop depending on software to interpret a note, and put the pixels where they actually belong. Once the image data itself is the right way up, every viewer agrees, because there is nothing left to interpret.
That is what a rotation tool does. It turns the grid, writes a new file, and sets the orientation tag to normal so nothing downstream tries to helpfully rotate it a second time.
How the volunteer gets them upright
She drops the whole set in and rotates the sideways photos a quarter turn each, then downloads them and re-uploads. This time the thumbnail generator has nothing to misread: the photos are genuinely upright, not merely labelled that way. They never leave her laptop either, which matters when they are pictures of other people's children. The rotation happens in the browser, with no upload and no account.
How the coach gets the banner readable
His problem is mirroring, so rotating would not help. He flips the photo horizontally instead, and the sponsor's name reads correctly. The faces were symmetrical enough that nobody notices anything else changed, and the squad stays where it is.
The Short Version
Your phone saves the photo the way the sensor read it and attaches a note saying which way up to show it. Anything that reads the note shows it upright. Anything that ignores it, and thumbnail generators are the usual suspect, shows it sideways. A reversed picture is something else: front camera mirroring, with a different fix.
Rotating the file itself settles it permanently, everywhere.
Ready to set a photo the right way up? Try Rotate Image for free →
Dealing with a mirrored shot instead? Flip Image → handles that one.