Skip to main content

Rotate and Flip Images: Complete Guide

Learn how to rotate and flip images online: 90 and 180 degree turns, custom angles, mirrored selfies, and EXIF orientation fixes, all in your browser.

CompressMyPic Editorial Team · Published Nov 17, 2026 · 11 min read

Rotate and Flip Images: Complete Guide

A sideways photo is one of the most common image problems. You open a picture you took on your phone and find the horizon running vertically, or a document scan that reads bottom to top.

Rotation and flipping are the two moves that fix it. Rotation turns the whole image by a set angle, while flipping mirrors it left to right or top to bottom.

This guide explains both moves in plain language. You will learn which angles to use, how to fix mirrored selfies, why some photos rotate on their own, and how to straighten a tilted shot without losing any corners. You can try every move in this guide with the free Rotate and Flip Image tool, which rotates, flips, and straightens photos right in your browser.

What Rotation and Flipping Actually Do

Rotation spins the image around its centre. A 90 degree turn swaps width and height, so a landscape photo becomes a portrait one, and a 180 degree turn puts the image upside down.

Flipping is different from rotation. A horizontal flip mirrors the image left to right, like looking at it in a mirror, while a vertical flip mirrors it top to bottom.

The two moves can be combined. You can rotate a photo 90 degrees and then flip it horizontally, which is useful when a scanned page is both sideways and mirrored.

Neither move changes the colours, the brightness, or the sharpness of the image. They only change where each pixel sits, so the picture itself stays the same in every other way.

Why Photos End Up Sideways

Phone cameras record orientation as a note inside the file, called EXIF data, rather than by physically turning the pixels. Some apps read that note and others ignore it.

When an app ignores the note, the photo appears rotated. That is why the same image can look fine in your gallery and sideways in a form, a chat app, or an old viewer.

Scanners create the same problem in a different way. A page fed into a scanner upside down comes out upside down, and there is no orientation note to correct it.

Selfies add a third cause. Front cameras often save a mirrored preview, so text on a shirt reads backwards until the image is flipped horizontally.

Rotation Angles Explained: 90, 180 and Custom

Ninety degrees is the workhorse angle. It fixes a photo taken in portrait mode that displays in landscape, or a landscape shot that displays as a tall portrait.

One hundred and eighty degrees fixes a fully upside-down image. This happens with scanned pages, photos taken with the phone held the wrong way, and images saved by some older cameras.

Custom angles handle the in-between cases. A horizon that tilts by five degrees needs a small correction, not a full quarter turn, and a slider lets you dial in the exact number.

The CompressMyPic tool supports custom angles from minus 180 to plus 180 degrees. It also expands the canvas automatically, so a tilted photo never loses its corners to cropping.

Flip Horizontal vs Flip Vertical

A horizontal flip mirrors the left and right sides. It is the fix for a mirrored selfie, where text reads backwards and a parting in the hair sits on the wrong side.

A vertical flip mirrors the top and bottom. It is less common, but it fixes images that were captured upside down by a camera mounted in an unusual position.

Flipping changes the meaning of an image, not just its orientation. A flipped photo of a street sign will read backwards, and a flipped map will point the wrong way.

Use flips deliberately. Rotate first when the problem is only about which way is up, and flip only when the image is genuinely mirrored.

EXIF Orientation: Why Some Photos Rotate by Themselves

Every photo from a phone or camera carries EXIF metadata. One field in that metadata records which way the camera was held when the shot was taken.

Modern galleries and browsers read that field and display the photo correctly. Older software, some upload forms, and a few social platforms skip it entirely.

That mismatch is why a photo can look right on your phone and wrong everywhere else. The pixels were never rotated; only the note describing them was ignored.

Rotating the image in an editor fixes the problem permanently. The tool rewrites the actual pixels and resets the orientation note, so the file displays correctly in any viewer.

Formats and Quality: What Happens to Your File

The Rotate and Flip tool accepts JPG, PNG, WebP, HEIC, GIF, BMP, and SVG files up to 20 MB each. You can keep the original format or switch to JPG, PNG, or WebP on export.

Rotating by 90 or 180 degrees is nearly lossless for most formats. The pixels are rearranged, not re-encoded from scratch, so the visible quality stays the same.

Custom angles are different, because the image must be re-rendered onto a new canvas. The tool handles this cleanly, but a JPG saved again at a lower quality setting will show some softening.

Choose PNG or WebP when you need the sharpest result, especially for screenshots and graphics with text. For ordinary photos, JPG at a high quality setting is fine.

Rotating Many Photos at Once

Fixing one sideways photo is quick, but a whole folder of them is tedious. The tool supports batch rotation, applying the same turn to every image in the queue at once.

This is useful after a holiday or an event, when dozens of photos share the same wrong orientation. Upload them together, pick one angle, and download them all as a ZIP file.

Batch mode applies the same setting to every file, so it works best when the problem is consistent. If half the photos need 90 degrees and half need 270, split them into two batches.

Each file keeps its own name in the ZIP export. You can download a single file from the batch too, if only one of them needs attention.

Straightening a Tilted Photo Without Losing Corners

A tilted horizon is a small rotation problem. The photo is only a few degrees off, but the eye notices it immediately, especially in landscapes and seascapes.

Drag the rotation slider in small steps and watch the horizon level out. One or two degrees is often enough, and the change is visible in the live preview.

When you rotate by a custom angle, triangular gaps appear at the corners of the frame. The tool expands the canvas to fit the whole rotated image, so no part of the photo is cut away.

Those gaps are filled with a background colour or transparency, depending on the format. For JPG exports the corners become a solid colour, while PNG keeps them transparent.

Fixing a Mirrored Selfie

Front-facing cameras show you a mirrored preview, because that is how a mirror behaves. Some phones save the mirrored version, and some save the corrected one.

If your selfie comes out with text reading backwards, it needs a horizontal flip. One click mirrors the image back, and the text reads correctly again.

Check the whole image before flipping, not just the text. A flip also moves a mole, a scar, or a hair parting to the other side, which changes how the photo looks.

For profile pictures and ID-style portraits, the unmirrored version is usually the right one. It matches how other people see you, rather than how you see yourself in a mirror.

Rotate or Crop: Which Fix Comes First

Rotation and cropping solve different problems, but they often work together. Rotate first to fix the orientation, then crop to tighten the framing.

Rotating after cropping can waste your work. A crop chosen for a landscape frame may no longer fit once the image turns into a portrait shape.

Straightening a photo and then cropping is a common pair. Rotate by a few degrees to level the horizon, then crop away the empty corner triangles the rotation created.

If you need both tools, use the Image Cropper after rotating. The cropper keeps the rotated pixels exactly as they are and only trims the edges you choose.

Privacy: Your Photos Stay on Your Device

Rotation happens entirely in your browser. Your photos are never uploaded to a server, which matters when the images are personal, medical, or work documents.

This is a real advantage over tools that require an upload. A passport scan or a family photo should not travel to a server you cannot see, just to turn it the right way up.

The tool also strips EXIF location data when it exports. A rotated photo downloaded from the tool carries no record of where it was taken.

That combination is useful for ID documents and scanned forms. The orientation gets fixed and the location data gets removed in a single step.

Common Mistakes When Rotating Images

The most common mistake is rotating the wrong direction. A photo that needs 90 degrees clockwise will look worse after 90 degrees anticlockwise, so check the preview before downloading.

Another mistake is flipping when rotation is the real fix. Flipping a sideways photo mirrors it but leaves it sideways, and the result looks stranger than the original.

People also forget that a 90 degree turn swaps width and height. A photo cropped to a wide banner shape becomes a tall portrait after rotation, which may not fit its destination.

Finally, do not rotate the same JPG many times. Each save adds a little damage, so always rotate from the original file and save once.

When to Rotate and When to Reshoot

Rotation fixes orientation, but it cannot fix a bad photo. A blurry or badly lit image stays blurry and badly lit after any number of turns.

Reshoot when the subject is out of focus or the lighting is wrong. No rotation angle will bring back detail that the camera never captured.

Rotate when the photo itself is good and only the direction is wrong. That is the whole point of the tool: a quick fix for a good image.

For documents, the same rule applies. A straight, legible scan only needs rotation, while a skewed or shadowed scan is worth feeding through the scanner again.

Rotating Scanned Receipts and Forms

Receipts and paper forms are often scanned at odd angles, especially when they are fed through a scanner in a hurry. A receipt scanned sideways is hard to read and harder to file.

Fix the orientation before you save the scan to your records. A 90 degree turn puts the text upright, and a small custom angle straightens a receipt that sits slightly crooked on the glass.

For expense records, rotate the scan and then crop away the empty scanner bed around it. The result is a clean, readable file that is easy to attach to an expense claim.

Check the numbers after rotating. A total or a date that reads clearly in the preview will stay clear in the download, while a blurry scan may need to be re-scanned rather than rotated.

Rotating Images for Print

Printers follow the pixels, not the orientation note. A photo that looks right on screen can print sideways if the file still relies on EXIF metadata to display correctly.

Fix the orientation before you send a file to print. Rotate the pixels in the tool, download the corrected file, and print from that version instead of the original.

Check the dimensions after a 90 degree turn. The width and height swap, so a landscape photo becomes a portrait one, and your paper size may need to change with it.

For a framed print, rotate first and then crop to the frame ratio. Doing the steps in this order keeps the composition intact and avoids cutting off the subject.

Naming and Organising Rotated Files

Rotated files deserve clear names, especially when you fix a whole batch. A name like beach-rotated.jpg is easy to find later, while a name like IMG_4821.jpg tells you nothing.

Keep the originals in a separate folder. The rotated versions are the ones to share and upload, but the originals are your safety net if a rotation ever needs to be redone.

When you rotate a batch, download the ZIP and extract it into a folder named for the event or the project. A tidy folder saves time when you need one photo months later.

Avoid overwriting the original file with the rotated version. Once the original is gone, you cannot undo the rotation without re-editing, and each extra save adds damage to a JPG.

Combining Rotation with Other Edits

Rotation is often the first step in a longer edit, not the only one. A sideways photo may also need cropping, brightening, or resizing before it is ready to share.

Work in a sensible order: rotate first, then crop, then adjust brightness or contrast. Each step builds on the last, and reordering them usually wastes effort.

After rotating, a photo may need its brightness adjusted, since a sideways shot taken in poor light stays dark even when it is upright. The Image Brightness Editor handles that step.

If the rotated photo is too large for its destination, resize it with the Image Resizer. Resizing after rotation keeps the dimensions correct for the new orientation.

If your image also needs trimming after rotation, open the Image Cropper next. For the step-by-step version of this process, see How to Rotate or Flip an Image, and for the deeper orientation problem, read Image Orientation: EXIF Rotation Problems Explained.

Frequently asked questions

When should I rotate an image instead of flipping it?

Rotate when the image is sideways or upside down and the content itself is correct. Flip only when the image is mirrored, such as a selfie with backwards text. If you flip a sideways photo it stays sideways, so always check which problem you actually have before choosing.

Will rotating my photo make the file size much bigger?

A 90 or 180 degree rotation barely changes the file size, since the pixels are rearranged rather than re-encoded. A custom angle can change the size slightly because the image is re-rendered onto a larger canvas. The difference is usually small and easy to ignore.

Why does my photo look correct in my gallery but sideways on a website?

Your gallery reads the EXIF orientation note inside the file, while the website ignores it and shows the raw pixels. Rotating the image in the tool rewrites the pixels and resets the note, so the photo displays correctly everywhere afterwards.

Can I rotate a scanned document that is both sideways and upside down?

Yes. A 180 degree rotation fixes a fully upside-down page, and a 90 degree rotation fixes a sideways one. If the scan is also mirrored, add a horizontal flip after the rotation. Check the preview after each step to confirm the text reads normally.

What angle should I use to fix a slightly tilted horizon?

Start with one or two degrees and watch the preview. Most tilted horizons need only a small correction, and the slider lets you fine-tune by single degrees. Larger angles are for photos that are clearly sideways, not for subtle tilts.

Does rotating an image remove its location data?

Yes, exporting from the Rotate and Flip tool strips EXIF GPS tags from the file. The rotation itself rewrites the pixels, and the export does not carry the original location metadata forward. Keep your original file if you want to preserve that data.

Related guides

Share this guide

← Back to the blog