🔄 Rotate Image

Rotate images 90°, 180° or any angle and flip them horizontally or vertically. Batch-rotate many photos, keep transparency, download as a ZIP. No upload.

✓ Free✓ No Signup Required✓ Browser-Based
🔄
Choose or drop images
JPG, PNG, WebP, GIF (first frame) — processed on your device

What Rotate Image Does

This tool rotates and flips images in your browser. Turn photos 90° left or right or 180° with one click, or set any angle with the slider to straighten a tilted horizon or a scanned page. Flip horizontally to mirror a selfie or vertically to turn an image upside down. Load a whole folder and the same change is applied to every image, downloaded together as a ZIP.

Nothing is uploaded. Images are decoded on your device with their camera orientation applied, rotated on a canvas, and saved as JPG, PNG or WebP. For angles that are not quarter turns, the canvas grows so nothing is cropped, and the new corners can be filled with a color or left transparent.

How to Use Rotate Image

  1. Choose or drop one or more images
  2. Rotate by 90°, 180° or any angle, and flip if needed
  3. Pick the output format and a corner fill for odd angles
  4. Check the preview
  5. Download the image, or all images as a ZIP

Formula Used by Rotate Image

Size after rotating by any angle

New width = w·|cos θ| + h·|sin θ| · new height = w·|sin θ| + h·|cos θ|

Worked example

A 4000 × 3000 photo rotated 5°.

  1. 4000 × 0.9962 + 3000 × 0.0872 = 4246
  2. 4000 × 0.0872 + 3000 × 0.9962 = 3337

Result: A 4246 × 3337 canvas, so no corner is cut off.

Quarter turns and flips

90° or 270° → width and height swap · 180° or any flip → size unchanged

Worked example

A 3000 × 4000 portrait photo rotated 90° right.

  1. Width becomes the old height: 4000
  2. Height becomes the old width: 3000

Result: A 4000 × 3000 landscape image with no pixels added or lost.

Rotate or Flip?

You want to…Use
Fix a sideways phone photo90° left or right
Fix an upside-down scan180°
Undo a mirrored selfieFlip horizontal
Straighten a tilted horizonSlider, 1–5°, then crop
Make a reflection effectFlip vertical

Common Camera Orientation Tags (EXIF)

Tag valueHow the pixels are storedTurn needed to display upright
1UprightNone
3Upside down180°
6On its side90° clockwise
8On its other side90° counter-clockwise

How to Read Your Result

Why photos show up sideways

Phone cameras often save the pixels in the sensor’s orientation and add a tag saying how to turn them. Apps that read the tag show the photo upright; apps that ignore it show it sideways. This tool applies the tag when it opens the file and saves a copy whose pixels are already upright, with no tag, so it displays the same way everywhere.

Rotating JPGs and quality

A JPG has to be re-encoded after rotating. The tool saves at high quality, so the change is not visible in normal viewing, but each extra save adds a little loss — rotate from the original once rather than rotating a copy of a copy. PNG output keeps every pixel exactly.

Straightening photos

A small rotation leaves wedge-shaped corners outside the original image. After straightening, use the image cropper to trim to a clean rectangle, or keep transparent corners if the image will sit on a plain background.

Which format to save

Keep the original format for photos (JPG) unless you need transparency; choose PNG for screenshots, graphics and anything with text, where JPG compression would blur sharp edges. WebP gives smaller files and supports transparency.

Limitations & Accuracy Notes

  • Animated GIFs and WebPs are saved as a single still frame.
  • Camera metadata (EXIF), including location, is not copied to the rotated file.
  • Very large images are limited by the browser’s canvas size and memory.

Frequently Asked Questions

How do I rotate an image?
Choose or drop your image, then press 90° left, 90° right or 180°, or drag the slider for any angle. The preview updates immediately; press Download to save the rotated copy. Your original file is not changed.
Can I rotate many photos at once?
Yes. Add as many images as you like — the same rotation and flip are applied to all of them, and they download together as a ZIP file with “-rotated” added to each name.
Does rotating reduce quality?
Quarter turns (90°, 180°, 270°) move pixels without resampling. Saving as JPG re-encodes the image, which loses a tiny amount of detail; choose PNG to avoid that. Other angles resample the pixels, which slightly softens fine detail.
What happens to the corners at other angles?
The canvas grows so no part of the image is cut off, and the new corners are filled with a color you choose — or left transparent if you save as PNG or WebP.
How do I flip or mirror an image?
Use Flip horizontal to mirror left and right (useful for selfies and scanned transparencies) or Flip vertical to turn it upside down without rotating. Flips can be combined with rotation.
Why is my phone photo sideways?
Phones often store a photo in one orientation and add an EXIF tag telling apps to rotate it. Some apps ignore the tag. This tool applies the tag when the image is loaded, and the saved file has the rotation built into the pixels, so it displays correctly everywhere.
By OnlineToolHubs Team • September 2026