Rotate an image

Turn a sideways photo upright with one click, or type any angle to straighten a tilted horizon.

Private by design: your image is opened, edited and saved by your own browser with the Canvas API. It is never uploaded to a server, and the page keeps working offline once loaded.

How to rotate

  1. Choose or drop the image.
  2. Click Left 90° or Right 90°, or type an exact angle such as 2.5 to fix a crooked horizon.
  3. For angles that are not multiples of 90°, choose a corner color or transparent corners (PNG/WebP).
  4. Download.

Why the canvas grows at odd angles

A rotated rectangle needs a bigger box to fit. For an image of width w and height h rotated by angle θ:

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

Example: 1000 × 600 rotated 10° → 1000·0.985 + 600·0.174 = 1089 wide and 1000·0.174 + 600·0.985 = 765 tall. Crop afterwards with the crop tool to remove the corners.

Why phone photos sometimes appear sideways

Phones often save pixels in sensor orientation and add an EXIF “Orientation” tag telling viewers to rotate. Some older programs ignore the tag. Rotating here bakes the correct orientation into the pixels, so the image looks right everywhere.

Frequently asked questions

Does rotating by 90° lose quality?
The pixels are moved exactly, but saving as JPG re-compresses them. Use quality 90+ or PNG to keep it virtually identical.
How do I mirror an image?
Use Flip horizontal above, or see the flip image page.