Rotate & Flip Image

Rotate by 90°, or flip horizontally and vertically — instantly, in your browser.

or drag & drop

In your browser · No upload

How to rotate or flip an image

Upload a photo and tap Left or Right to rotate in 90° steps, or Flip H / Flip V to mirror it. The preview updates instantly and you download the result — no account, no watermark.

Private by default

Everything runs on a canvas in your browser — the image never leaves your device.

Rotate or flip an image, and why photos turn sideways after upload

The buttons

Drop a photo and you get four controls:

  • Left and Right turn the picture 90° counterclockwise or clockwise. Click twice for 180°. Each click redraws the preview, and the size line above it updates (a 4000 × 3000 photo becomes 3000 × 4000 after one turn).
  • Flip H mirrors the picture left to right. That's the fix for a selfie where the text on your shirt reads backwards.
  • Flip V mirrors it top to bottom.

The flips toggle on and off, and the active one is highlighted. You can combine them with any rotation.

One quirk to know: the flips work on the picture's original axes. After a 90° or 270° turn they swap places on screen, so Flip H mirrors top to bottom and Flip V mirrors left to right. If a flip goes the wrong way, click it again to undo it and press the other one.

Every click starts again from the photo you loaded, not from the last result. Turning it right four times leaves you exactly where you started, with no quality lost along the way.

Why a photo is upright on your phone but sideways somewhere else

Phone cameras usually don't rotate the pixels when you hold the phone vertically. They save the image the way the sensor sees it and add an EXIF tag called Orientation that says "show this rotated 90° clockwise". The Photos app, modern browsers and most social networks read that tag and display the picture upright.

Software that ignores the tag shows the raw pixels, and your portrait shot lies on its side. It also goes wrong when a program strips the metadata without applying the rotation first. Then the instruction is gone, and the sideways pixels are all that's left. Upload forms and server scripts that resize images are the usual suspects.

The Orientation tag has eight possible values:

Value What it tells a viewer
1 Show as stored (normal)
3 Rotate 180°
6 Rotate 90° clockwise (typical for a phone held upright)
8 Rotate 270° clockwise, i.e. 90° counterclockwise
2, 4, 5, 7 Mirrored versions of the above, mostly from front cameras and scanners

To see which value your photo has, open it in the EXIF viewer and look at the Orientation row.

What this tool does about it

It reads the tag when it opens the photo, the same way your browser does, so the preview starts out the way you see it in your gallery. Your rotation is then applied to the pixels themselves, and the file is saved without any EXIF block. With no Orientation tag left, there's nothing for another program to misread. The picture looks the same in every viewer, uploader and email client.

That also makes this a reliable fix for the sideways-upload problem even when the preview already looks right. Load the photo, don't press anything, and download it. The result has the rotation baked in.

What you get back

You load You download Notes
JPG JPG Re-encoded at quality 92
PNG PNG Lossless, transparency kept
WebP WebP PNG or JPG in Safari, which can't write WebP
HEIC (iPhone) JPG Decoded on your device first
GIF PNG First frame only

The file is named after the original with -rotated added, like IMG_2041-rotated.jpg.

All metadata goes: GPS location, camera model, date taken. That's good if you're about to post the photo publicly. If you need the capture date to keep your library sorted, rotate a copy, or use your phone's built-in editor instead.

Photos over about 16.7 megapixels are scaled down to fit, because that's the largest image Safari on iPhone can draw. You'll see a note with the old and new size when it happens. Many recent phones save 24-megapixel photos by default (iPhone 15 and newer, for example), so expect that note on full-size shots from them.

Lossless vs. re-encoded

A JPG can't be rotated by 90° in a browser without decoding and re-encoding it. At quality 92 the difference is very hard to see, and since every click starts from your original, you only pay that cost once. Don't run the same photo through several editors one after another, though. Each JPG re-save softens fine detail a little more.

If you need a truly lossless turn, for archive scans or professional work, these two command-line tools can do it:

  • jpegtran (part of libjpeg-turbo) moves the compressed JPG blocks around without decoding them: jpegtran -perfect -rotate 90 in.jpg > out.jpg. With -perfect it refuses to run on images whose width or height isn't a multiple of the JPG block size, instead of quietly trimming an edge. Don't add -copy all to a phone photo: that copies the old Orientation tag too, and viewers would turn the picture a second time.
  • ExifTool can change the tag without touching the pixels: exiftool -Orientation=6 -n photo.jpg. It's instant and lossless, but it only helps in programs that read the tag, so it doesn't solve the sideways-upload problem above.

For PNG and other lossless formats there's no trade-off. The rotated PNG from this tool is pixel-for-pixel exact.

Common jobs

  • A scanned page or receipt came out upside down. Two clicks on Right, download, done.
  • A product photo for a marketplace keeps showing up sideways. Load it, check the preview, download. The baked-in result uploads correctly everywhere.
  • Mirror a photo of a document or whiteboard taken through a webcam. Flip H.
  • Several photos at once. This page handles one image at a time. For a batch, your gallery app's rotate button (it usually just changes the tag) or jpegtran in a loop is faster.

Related tools

Sideways pages inside a PDF need Rotate PDF, which turns pages without converting them to images. If the picture is also crooked by a few degrees or has edges you want gone, rotate it here first, then trim it with Crop image. To check a photo's orientation and other tags before you share it, use the EXIF viewer.

Related tools

Frequently asked questions

Can I rotate to any angle?
You can rotate in 90° steps (left or right) and flip horizontally or vertically — the most common fixes for sideways phone photos.
Does rotating lose quality?
90° rotations and flips are lossless in terms of pixels; re-saving a JPG uses high quality so the difference is not visible.
Is my photo uploaded?
No — everything runs on a canvas in your browser; the image never leaves your device.