- images
- photos
- how-to
How to rotate a photo without losing quality
Sideways photos that look fine on your phone but wrong everywhere else are an EXIF orientation problem. Here's why it happens and how to fix it for good, in your browser.
You take a perfectly normal photo. It looks upright on your phone. Then you email it, or upload it to a form, or open it on a Windows laptop, and it's lying on its side. Nothing you did was wrong. The photo is fine. The way it was saved is the problem.
This one trips up a lot of people, because the fix that seems obvious (rotate it in one app) often doesn't stick when the file travels somewhere else.
The culprit: EXIF orientation
When a phone takes a photo, the sensor has a fixed physical orientation. Rather than rewrite all the pixels every time you turn the phone, the camera saves the raw frame and tags it with a small EXIF field that says, in effect, "display this rotated 90 degrees clockwise." Apps that read the tag show it upright. Apps that ignore the tag show the raw frame, which is sideways.
So the same JPG can look correct in iOS Photos and wrong in a government upload portal. It's not random. One reads the flag, the other doesn't. And honestly, in 2026 there's no excuse for software still ignoring EXIF orientation, but plenty of it does.
Why "rotate in the viewer" often fails
A lot of image viewers rotate the display by flipping the EXIF flag rather than the pixels. Looks fixed on your screen. But send that file to an app that ignores the flag and you're right back to sideways. The reliable fix is to bake the rotation into the actual pixel data and clear the orientation flag, so there's nothing left to misread.
How to fix it permanently
- Open the rotate image tool and drop your photo in.
- Click rotate left or rotate right until the preview is upright. Need a mirror instead? Use flip horizontal or vertical.
- Pick an output format and download. PNG keeps every pixel; JPG is smaller and fine for sharing.
The tool redraws the image onto a canvas at the new orientation, which writes real pixels and drops the stale EXIF tag. The result looks identical in every app, because there's no flag left to obey or ignore.
Does this hurt quality?
Barely, and only if you want it to. Rotating in 90-degree steps rearranges existing pixels rather than resampling them, so the image content survives intact. Export to PNG or WebP and there's zero added loss. Export to JPG and you pay the normal one-time JPG compression, invisible at quality 90 and up. If you're going to crop or shrink afterward anyway, do that in the same pass with our cropper or resizer and you only re-save once.
FAQ
Does rotating a JPG re-compress it and lose quality?
A plain 90, 180, or 270 degree rotation moves whole pixels around, so the image data itself isn't degraded. The only loss is the normal one-time JPG re-save when you export. Choose PNG or WebP output to avoid even that, or keep JPG quality at 90+ and the difference is invisible.
Why does my photo look correct on my phone but sideways on my computer?
Phone cameras often store the image in one orientation and add an EXIF flag saying 'rotate me'. Apple Photos and most phone apps obey it; some Windows apps, web forms, and older programs ignore it. Rewriting the actual pixels removes the dependency on that flag, so it looks the same everywhere.
How do I fix a whole batch of sideways photos?
For a handful, rotate each one in the browser tool. For hundreds at once, a desktop tool like IrfanView (Windows) or the jpegtran command line does lossless batch rotation. Browser tools are best for one-off fixes, not bulk jobs.
What's the difference between rotate and flip?
Rotate turns the image around its center (90 degrees at a time). Flip mirrors it: horizontal flip swaps left and right (useful for a selfie where text reads backwards), vertical flip swaps top and bottom. You can combine them.
A sideways photo isn't broken, it's just carrying a label some apps refuse to read. Bake in the rotation once and the label stops mattering. Five seconds now saves you re-explaining "but it looks fine on my end" later.