Esc
↑ ↓ to moveEnter to openEsc to close

Edit tool

Rotate an image

Rotate a photo that came out sideways or upside down. Turn it in quarter steps, or flip it horizontally and vertically.

Your image

Processed on your device
Canvas support is required.

Live preview

Try the demo

Choose your crop

Drag on the preview for a custom crop. The shaded edges will be removed. Need more room instead? Uncrop the photo.

PNG and WebP keep transparency.

Continue with this photo Christmas frameNew Year frame Uncrop a photoCompressAdjust photoConvert Open a photo first, then pick the next step. Your edit carries over and stays on this device.

Three steps

How to rotate an image

  1. Open your image.
  2. Rotate left or right, or choose a horizontal or vertical flip.
  3. Check the new dimensions and download.

A quick turn, a different perspective.

Quarter-turn rotation changes a landscape photo into portrait orientation without cutting away its edges. Two quarter turns produce a 180-degree rotation. A horizontal flip creates a mirror image; a vertical flip reverses the top and bottom. These changes affect the saved pixels, not just an orientation tag.

Text and logos are mirrored when the whole image is flipped. If they need to remain readable, add new text after adjusting the orientation. You can combine rotation with cropping, resizing, frames and color adjustments inside this editor.

The output width and height switch when you rotate by 90 or 270 degrees. Check the dimensions before exporting, particularly if another service expects a specific size. This tool uses quarter turns; it does not currently provide arbitrary-angle straightening.

Why photos turn up sideways

A phone can save a photo the way its sensor captured it, then add a small orientation note, an EXIF tag, that tells apps which way is up. Browsers have read that note by default since 2020, so the picture looks right in your gallery and on a web page. You can see that tag, listed as Orientation, in our photo metadata viewer.

It goes wrong when an app or upload system ignores the note, or strips it without turning the pixels. The photo then lands on its side, even though it looked fine on your phone. The tag can describe eight positions, four of them mirrored, so now and then a photo needs a flip as well as a turn.

Opening the photo here usually fixes that. Your browser applies the note before the editor draws the image, so the preview should match your phone. The file you download has the turn built into its pixels and no orientation note, so it looks the same in every app. If the preview is sideways too, the pixels themselves are sideways: use Rotate left or Rotate right.

Which button to press

Each quarter turn swaps the width and height, so a 1080 x 1350 portrait becomes a 1350 x 1080 landscape. A half turn keeps the original size. Check the dimensions under the preview if a site expects exact pixels.

For a mirror-image problem, flip image is the right tool. And if you want a wide picture with the subject still standing upright, rotating is not the answer; portrait to landscape adds space at the sides instead.

What you see in the previewWhat to do
The top of the scene points to the leftRotate right once (90 degrees clockwise)
The top of the scene points to the rightRotate left once (90 degrees counterclockwise)
The picture is upside downRotate right twice (180 degrees)
Writing reads backwards, as in a mirrorFlip horizontal; rotating cannot undo a mirror image
The horizon is only slightly tiltedNot possible here; this tool turns in quarter steps only

Scans, documents and saving the result

A page placed the wrong way on a scanner, or photographed with the phone held sideways, comes out turned. Rotate it upright here when you need the image file itself. If the pages are going into a PDF, JPG to PDF can also turn each page while you arrange them. An upright page also reads better in image to text.

The editor keeps a JPG as a JPG and a PNG as a PNG. JPG and WebP photos are saved at 92 percent quality by default, so a JPG goes through one more round of compression; choose PNG under Format if you want to avoid that, at the cost of a larger file.

Very large photos, such as full-resolution phone shots, are edited as a smaller working copy so your browser stays responsive. The status line under the preview tells you the working size, and you can set exact output pixels in Resize.

Questions

Does rotating crop the edges?

No. Quarter and half turns keep the whole picture, because the canvas swaps its width and height to fit. Nothing is cut off unless you also crop, and if a crop is set, the turn applies to the cropped area.

What is the difference between rotate and flip?

Rotating turns the picture around its center, so writing stays readable once you tilt your head. Flipping mirrors it across a line, which reverses writing. Rotate sideways or upside-down photos, and flip mirror-image selfies.

Can I undo the rotation?

Yes. Rotate the other way, or keep pressing the same button, since four quarter turns bring the picture back to the start. Reset edits clears every change at once, including crop, text and color adjustments.

Why does my photo turn sideways when I upload it?

Your phone most likely stored the picture sideways with an orientation note that tells apps to turn it. If the site ignores or removes that note, the photo appears on its side. Open it here and download a copy with the turn written into the pixels.

How do I rotate a picture 180 degrees?

Press Rotate right twice, or Rotate left twice. The picture turns upside down and keeps its original width and height. This fixes a page scanned the wrong way up or a photo taken with the phone upside down.

Can I rotate by 45 degrees or straighten a crooked horizon?

No. This tool turns pictures in exact 90 degree steps only. It has no free-angle rotation or straighten control, so a slightly tilted horizon needs a different photo editor. Quarter turns cover sideways phone photos and scans.

Does rotating a JPG reduce its quality?

Slightly, because the editor saves a new JPG. By default it uses 92 percent quality, a high setting, so the extra compression is small. If you want no further compression at all, choose PNG under Format; the file will be larger.

Will the downloaded photo still have an orientation tag?

No. The rotation is applied to the pixels themselves, and the new file carries no EXIF orientation tag. That is why it shows the same way in every app, including ones that ignore orientation tags.

Sources: MDN: image-orientation, W3C CSS Images Module Level 3: the image-orientation property, MDN: CanvasRenderingContext2D rotate() (positive angles turn clockwise)

See all tools

Guides for this