🔄 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.
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
- Choose or drop one or more images
- Rotate by 90°, 180° or any angle, and flip if needed
- Pick the output format and a corner fill for odd angles
- Check the preview
- 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°.
- 4000 × 0.9962 + 3000 × 0.0872 = 4246
- 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.
- Width becomes the old height: 4000
- 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 photo | 90° left or right |
| Fix an upside-down scan | 180° |
| Undo a mirrored selfie | Flip horizontal |
| Straighten a tilted horizon | Slider, 1–5°, then crop |
| Make a reflection effect | Flip vertical |
Common Camera Orientation Tags (EXIF)
| Tag value | How the pixels are stored | Turn needed to display upright |
|---|---|---|
| 1 | Upright | None |
| 3 | Upside down | 180° |
| 6 | On its side | 90° clockwise |
| 8 | On its other side | 90° 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.