How to Rotate and Flip an Image

Fix a sideways photo or mirror an image in seconds. Learn how to rotate and flip an image, why 90-degree turns swap width and height, and what flipping does.

Why photos come out sideways

A sideways photo is almost always a phone problem, not a camera problem. Phones record which way up they were held as orientation metadata attached to the photo, and most viewers read that metadata and rotate the picture automatically. But not every viewer does: some uploaders, editors, and older software ignore the metadata and show the raw pixels, which is why a photo that looks fine on your phone appears sideways after uploading or opening elsewhere.

The fix is to rotate the actual pixels, not just the metadata. Once the pixels themselves are the right way up, the image displays correctly everywhere, regardless of whether the viewer reads orientation data. Before sharing photos of people, it is also worth stripping the rest of that metadata: the EXIF removal guide explains what else a photo file can reveal.

Rotate versus flip: two different operations

Rotation turns the image: 90 degrees clockwise or anticlockwise, or 180 degrees upside down. Flipping mirrors it: a horizontal flip mirrors left and right, like looking in a mirror, while a vertical flip mirrors top and bottom. People confuse the two because a 180-degree rotation and a double flip can look similar on symmetrical subjects — but on anything with text, faces, or handedness, they are visibly different. Text mirrored by a flip reads backwards; text rotated stays readable, just turned.

Choose rotation when the picture is simply the wrong way up. Choose flipping when you need a mirror image — for example, a selfie that looks reversed compared to how you see yourself, a design element that should face the other direction, or a scanned image that came out mirrored.

What 90 degrees does to dimensions

Rotating 90 degrees swaps width and height. A landscape photo of 320 by 200 pixels becomes a portrait image of 200 by 320 pixels, and vice versa. That matters for layouts: a rotated image may no longer fit the frame, crop, or grid it was made for, and a platform that forces a specific aspect ratio may crop it unexpectedly. Check the rotated image in its destination, not just in the editor.

A 180-degree rotation, by contrast, keeps the dimensions exactly the same — width stays width, height stays height — because the image is simply turned upside down. Flips also keep dimensions unchanged: mirroring rearranges pixels but does not change the frame. So only the 90-degree turns change the shape of the image.

How to rotate and flip an image, step by step

Open the Rotate and Flip tool and upload your image. Apply the rotation or flip you need, and preview the result before downloading: check that text reads correctly (not mirrored), that faces are the right way up, and that the dimensions are what you expect after a 90-degree turn. Then download the corrected image and test it in its real destination — the uploader, document, or post it was fixed for — since that is where the original problem appeared.

If you are fixing a whole set of photos, fix orientation before doing anything else to them. Resizing, compressing, or watermarking a sideways photo just bakes the problem into the finished files, and you will have to redo the whole workflow. Orientation first, everything else second.

The re-saving quality note

Rotating and saving a JPG re-compresses it, because JPG is a lossy format: each save discards a little more detail. One rotation from a good-quality original is normally invisible, but repeated cycles of open, rotate, and save gradually soften the image. The practical habit is simple: keep the original file untouched, rotate a copy, and if you need to rotate again, start from the original rather than from the already-rotated copy. PNG images do not have this problem, since PNG compression is lossless.

Common mistakes

The most common mistake is trusting the preview in one viewer and skipping the destination check — an image that looks correct in an editor that reads orientation metadata can still be sideways in the uploader that does not. The second is flipping when rotation was needed, which mirrors text and faces and is only noticed after posting. The third is rotating a copy, deleting the original, and then discovering the rotation was wrong — keep the original until the corrected image is checked and used. If several images need fixing plus resizing, the Bulk Image Resizer can handle the sizing step once orientations are correct.

What this tool does and does not do

The free Rotate and Flip tool rotates and flips images entirely in your browser — your photos are never uploaded to a server. It changes the actual pixels, so the result displays correctly in viewers that ignore orientation metadata. It does not crop, resize, or enhance the image, and it does not repair photos that were captured blurry or at the wrong exposure. For stripping location and camera metadata before sharing, see the EXIF removal guide, and for resizing a corrected set, use the Bulk Image Resizer.

Try it now — free

Use the Rotate & Flip Image right in your browser. No signup.

Open the tool →

More guides

All guides →