Skip to content

Image Flip & Rotate

Rotate an image by 90, 180 or 270 degrees, or mirror it horizontally and vertically.

Processed in your browser — your image is never uploaded.

How do you rotate an image permanently?

Rewrite the pixels rather than setting an EXIF orientation flag. Rotating 90 or 270 degrees swaps width and height, so a landscape photo becomes a true portrait. A flag-only rotation looks correct in software that reads EXIF and sideways in software that ignores it.

Understanding your result

There are two ways to rotate a photo, and they behave very differently. Many phone and camera apps only set an EXIF orientation flag, leaving the pixels untouched — which works until the image reaches software that ignores that flag, at which point it appears sideways again. This tool rewrites the actual pixel data, so the result displays identically everywhere, including in older editors, email clients and print workflows. The trade-off is that the file is re-encoded, so for JPGs it is worth doing all your edits in one pass rather than saving repeatedly.

Formula and method

The canvas origin is moved to the centre, rotated by the chosen angle and scaled by −1 on either axis to mirror, then the image is drawn back centred. For 90 and 270 degree rotations the output canvas swaps width and height first.

Assumptions and limitations

Rotation is limited to 90-degree steps; arbitrary angles would need to either crop the corners or pad the canvas, which is a different operation. Re-encoding a JPG loses a little quality each time it is saved, so avoid repeated round trips on the same file. Any EXIF metadata in the original, including camera details and GPS, is not carried into the output.

Worked example

A 4000 × 3000 landscape photo rotated 90 degrees clockwise becomes a 3000 × 4000 portrait, with what was the top-left corner now appearing at the top right.

How to use this tool

  1. Choose your image.
  2. Pick a rotation, and tick either mirror option if you need it.
  3. Choose an output format.
  4. Download the transformed image.

Common mistakes to avoid

  • Expecting an arbitrary angle — only 90-degree steps are supported.
  • Re-saving the same JPG repeatedly, which compounds compression loss.
  • Confusing mirroring with rotation; a mirrored image is not a rotated one.
  • Assuming EXIF metadata survives the transformation.

About the Image Flip & Rotate

This tool rotates an image in 90-degree steps and mirrors it horizontally or vertically. The transformations are baked into the pixels and the canvas is resized correctly, so a 90-degree turn converts a landscape photo into a true portrait rather than cropping it.

Who should use this tool

Anyone fixing a sideways photo, preparing images for print, or mirroring a picture for a design.

Benefits

  • Rewrites the pixels rather than setting an EXIF flag, so it looks right everywhere.
  • Rotation and mirroring can be combined in one pass.
  • Resizes the canvas correctly for 90 and 270 degree turns.
  • No upload, so private photos stay on your device.

Practical use cases

  • Fixing a photo that imported sideways.
  • Mirroring a selfie so text in it reads correctly.
  • Turning a scanned page the right way up.
  • Flipping an image to face the other way in a layout.

Explore all Image Tools tools

Frequently asked questions

Why does my photo look sideways in some apps but not others?

Because the camera set an EXIF orientation flag rather than rotating the pixels. Software that reads the flag shows it correctly; software that ignores it does not. Rotating here fixes it permanently.

Can I rotate by an arbitrary angle?

Not with this tool. Angles that are not multiples of 90 leave empty triangular corners that must be cropped or filled, which is a separate operation with its own trade-offs.

Does rotating reduce image quality?

The rotation itself is lossless, but saving as JPG re-compresses the file. Choose PNG if you plan further edits, or accept a small quality cost with JPG.

Is my image uploaded anywhere?

No. The image is read and redrawn entirely in your browser using canvas, so it never leaves your device.

What is the difference between flipping and rotating 180 degrees?

Rotating 180 degrees is the same as flipping both horizontally and vertically. A single flip produces a mirror image, which is a different result entirely.

Share this tool

Free to use — copy the link, share it anywhere, or add the tool to your own website.

Embed this tool on your site (free)

Copy this code and paste it into any web page — it stays free and always up to date: