Skip to content

Rotate an Image 90 Degrees, 180 Degrees, or Flip It

Turn a sideways or upside-down picture the right way up, or mirror it, in quarter turns. The file stays on your device and downloads as a PNG.

Runs in your browserFree, no sign-upLast reviewed

Settings

Results update automatically as you type.

Fill in the settings to see your result here.

Your result appears here instantly — nothing is uploaded.

Quick answers

How do I rotate an image 90 degrees?
Load the picture, set Rotate to 90° clockwise for a right turn or 270° clockwise (90° left) for a left turn, and download the result. The output has the original width and height swapped.
How do I rotate a picture 90 degrees counterclockwise?
Choose 270° clockwise (90° left). Three quarter turns to the right land in exactly the same place as one quarter turn to the left, so the two are the same operation.
What is the difference between flipping and rotating an image?
Rotating turns the picture around its center, so text in it stays readable once you tilt your head. Flipping mirrors it, so text reads backwards and left-handed becomes right-handed. No amount of rotating produces a mirror image, and no single flip produces a quarter turn.
Is flipping an image horizontally the same as mirroring it?
Yes. A horizontal flip swaps left and right, which is what a mirror does, and it is the option labeled Horizontal (mirror). A vertical flip swaps top and bottom instead, like a reflection in water.
Does rotating an image reduce its quality?
Not here. A quarter turn or a flip moves each pixel to a new position without blending or resampling, and the result is saved as PNG, which is lossless. You can rotate the output again as often as you like without it degrading.
Is rotating 180 degrees the same as flipping vertically?
No. A 180 degree turn reverses both top-bottom and left-right, so text is upside down but still reads correctly when you turn the page. A vertical flip reverses top-bottom only, leaving mirrored text. A 180 degree turn equals a horizontal flip plus a vertical flip.

How Image Rotator & Flipper works

Pick a picture, choose a quarter turn (90 degrees clockwise, 180 degrees, or 270 degrees clockwise, which is the same as 90 degrees left) and optionally a horizontal or vertical flip. The tool redraws the pixels in their new positions and gives you a PNG to download, named after the original with -rotated added. A 90 or 270 degree turn swaps width and height, so a 4000 x 3000 landscape photo becomes 3000 x 4000 portrait; a 180 degree turn and both flips keep the size. Nothing is uploaded: the work happens in your browser. It only turns in quarter steps, so it cannot straighten a horizon that is a few degrees off.

Which setting fixes which problem

Find how your picture looks now, then use the settings beside it. Width and height are given for a 4000 x 3000 original.

What you see or wantRotateFlipOutput size
Top of the picture points left90° clockwiseNo flip3000 x 4000
Top of the picture points right270° clockwise (90° left)No flip3000 x 4000
Picture is upside down180°No flip4000 x 3000
Selfie or scan is mirrored, text reads backwardsNo rotationHorizontal (mirror)4000 x 3000
You want a water-style reflectionNo rotationVertical4000 x 3000
Landscape photo needed as portrait90° clockwise or 270° clockwiseNo flip3000 x 4000
Subject should face the other wayNo rotationHorizontal (mirror)4000 x 3000

A subject that faces the other way after a horizontal flip also has any lettering, logos, watches and hair partings reversed. Check for those before using a mirrored photo.

Every rotate and flip combination, and where the top-left corner ends up

The two menus give twelve combinations, but only eight different results exist. The four pairs below that share a row give identical output.

Rotate + FlipSame result asOriginal top-left corner moves toWidth and height
No rotation + No flipNothing elseTop-left (unchanged copy)Same
90° clockwise + No flipNothing elseTop-rightSwapped
180° + No flipNothing elseBottom-rightSame
270° clockwise + No flipNothing elseBottom-leftSwapped
No rotation + Horizontal180° + VerticalTop-rightSame
No rotation + Vertical180° + HorizontalBottom-leftSame
90° clockwise + Horizontal270° clockwise + VerticalBottom-rightSwapped
90° clockwise + Vertical270° clockwise + HorizontalTop-leftSwapped

The last two rows are the diagonal flips: 90° clockwise + Vertical mirrors the picture across the line from top-left to bottom-right, and 90° clockwise + Horizontal mirrors it across the other diagonal.

When you pick both, the flip is applied before the turn

With both menus set, the tool mirrors the original picture first and then rotates the mirrored picture. The order only matters for 90 and 270 degree turns. With 180 degrees or no rotation you get the same result either way.

This catches people who think of it the other way round. If you want to turn a photo a quarter turn to the right and then mirror the turned picture left to right, choosing 90° clockwise with Horizontal gives a result turned 180 degrees from what you pictured. Choose 90° clockwise with Vertical instead, or 270° clockwise with Horizontal, which is the same thing.

If a combination is hard to picture, do it in two passes: rotate, download, load the downloaded file and flip that. Because the output is lossless, the extra pass costs nothing in quality.

Width and height after a quarter turn

A 90 or 270 degree turn swaps the two dimensions. A 180 degree turn and both flips leave them alone.

OriginalAfter 90° or 270°After 180° or a flip
1920 x 1080 (16:9 landscape)1080 x 1920 (9:16 portrait)1920 x 1080
4000 x 3000 (4:3 landscape)3000 x 4000 (3:4 portrait)4000 x 3000
1080 x 1350 (4:5 portrait)1350 x 1080 (5:4 landscape)1080 x 1350
1080 x 1080 (square)1080 x 10801080 x 1080
2480 x 3508 (A4 scan at 300 dpi)3508 x 24802480 x 3508

Why phone photos turn up sideways, and what this fixes

Most cameras and phones save the pixels the way the sensor captured them and add an orientation tag to the file saying which way up to display it. Software that ignores the tag shows the photo on its side, while software that reads it shows it upright, which is why the same file can look right in one place and wrong in another.

The file this tool gives you has the pixels physically in the position you see in the preview and carries no orientation tag, so it looks the same everywhere. Current browsers apply the tag when they open a photo, so the preview normally starts from the upright version. If the preview is already the right way up, download it with No rotation and No flip and the sideways problem is gone.

Saving as a new PNG also drops the rest of the photo's embedded metadata, including camera details and any location data. That is useful before sharing, but keep the original if you need that information.

Limits worth knowing before you start

  • Quarter turns only. There is no free-angle setting, so a slightly tilted horizon needs a photo editor with a straighten control.
  • The download is always a PNG. A JPEG photo saved as PNG is usually a noticeably larger file; run it through an image converter or compressor afterwards if size matters.
  • One image at a time. There is no batch mode.
  • Animated GIFs come out as a single still frame.
  • Transparent areas stay transparent, because PNG supports them.
  • The picture must be a format your browser can open. JPEG, PNG, WebP and GIF work everywhere; HEIC photos from an iPhone generally open only in Safari.
  • Files over 30 MB are rejected.

Step by step

  1. 1

    Choose your file in the Image field. Files up to 30 MB are accepted.

  2. 2

    Set Rotate to 90° clockwise, 180° or 270° clockwise (90° left). Leave it on No rotation if you only want to mirror the picture.

  3. 3

    Set Flip to Horizontal (mirror) to swap left and right, Vertical to swap top and bottom, or leave it on No flip.

  4. 4

    Check the Result preview and the Dimensions shown under Details.

  5. 5

    Download the PNG. To undo a turn, run the downloaded file through again with the opposite setting.

Questions people ask

Why did the width and height swap after I rotated my photo?
A quarter turn lays the picture on its side, so the long edge that ran across now runs up and down. A 1920 x 1080 image becomes 1080 x 1920 after a 90 or 270 degree turn. A 180 degree turn keeps the original dimensions. The new size is shown under Details.
Can I rotate an image by 45 degrees or any custom angle?
No. The Rotate menu offers 90, 180 and 270 degrees only. Those are the turns that can be done exactly, pixel for pixel. Any other angle forces the software to blend neighboring pixels and either crop the corners or add empty ones, which needs a photo editor.
Can I rotate and flip in one go?
Yes. Set both menus and you get one output with both applied. The flip is applied to the original first and the rotation second. The combinations table on this page shows what each pairing produces and which pairings are duplicates.
Why is the rotated file bigger than my original photo?
Your original was probably a JPEG, which discards detail to stay small. The output is a PNG, which keeps every pixel exactly and so takes more space for photographs. Nothing is wrong with the picture. Convert it back to JPEG or compress it if you need a smaller file.
Is my photo uploaded to a server?
No. The file is opened, turned and re-saved by your own browser, and the download is created on your device.
How do I unflip a mirrored selfie?
Set Rotate to No rotation and Flip to Horizontal (mirror). Front cameras often save the mirrored preview you saw on screen, which makes writing on signs or clothing read backwards. One horizontal flip puts it back the way other people see you.
How do I rotate a scanned page that came out upside down?
Save or export the page as an image, load it and choose 180°. For a page scanned on its side use 90° clockwise or 270° clockwise depending on which way it leans. The tool takes image files only, so a PDF has to be exported to an image first.
What happens if I leave both menus on their defaults?
You get an unrotated, unflipped PNG copy of the picture at the same dimensions. That is still useful for converting a photo to PNG with its orientation baked into the pixels and its embedded metadata removed.

Looking for something else? Browse all image tools or see every tool.