Skip to content
ToolZone

Rotate ImageUpdated

Rotate or flip an image by any angle, useful for correcting a sideways photo or adjusting orientation before using it in a document or design.

Runs in your browser. Nothing you enter or upload leaves your device.

Save as

Images are processed in your browser and never uploaded. Saving removes EXIF data such as GPS location.

Keyboard shortcuts

Run the main action
⌘ / Ctrl + Enter
Copy the result
⌘ / Ctrl + Shift + Enter
Download the result
⌘ / Ctrl + S
Paste a file or image into file tools
⌘ / Ctrl + V
Search all tools
⌘ / Ctrl + K
Show these shortcuts
?

You can also drop files anywhere on the page.

About the Rotate Image

Rotate Image turns a picture by a quarter turn, a half turn, or any whole-degree angle, and flips it horizontally or vertically. It is handy for fixing sideways phone photos and scans, mirroring selfies, or straightening a crooked shot.

How it works

For an angle θ, the tool sizes a new canvas so the whole rotated image fits: the new width is |w·cos θ| + |h·sin θ| and the new height is |w·sin θ| + |h·cos θ|. At 90° and 270° this simply swaps width and height; at 180° it stays the same.

It then moves the drawing origin to the canvas center, rotates by θ clockwise, applies any flips, and draws the image centered on that point. At angles that are not quarter turns the empty corners are transparent, white or black as you choose; JPEG can't store transparency, so there they're white.

How to use

  1. 1

    Drop an image on the box or click it to choose one; it is turned 90° to the right straight away.

  2. 2

    Use Left 90° and Right 90°, the flip buttons, or the Angle slider to straighten a photo.

  3. 3

    For angles that aren't a quarter turn, choose what fills the corners.

  4. 4

    Check the preview, then click Download.

Worked examples

Fixing a sideways portrait

A 4032 × 3024 photo appears lying on its side.

Input
Angle: 90° (or 270°, depending on direction)
Result
A 3024 × 4032 photo standing upright

Width and height swap at quarter turns.

A tilted graphic

A 400 × 200 banner rotated for a playful layout.

Input
Angle: 30°
Result
About a 446 × 373 image with transparent corners

Width = 400·cos30° + 200·sin30° ≈ 346.4 + 100 = 446.4; height = 400·sin30° + 200·cos30° = 200 + 173.2 ≈ 373.2.

Limitations
Only whole-degree angles are available. Angled rotations make the image bigger to fit the corners; there's no automatic crop. Animated GIFs and WebPs are saved as a single still frame.
Assumptions
Your browser can decode the chosen image format.
Privacy
Rotation happens in your browser using a canvas, and your image is not uploaded anywhere.

Frequently asked questions

Can I rotate an image by a custom angle, not just 90 degrees?+

Yes. Use the Angle slider to pick any whole number of degrees from 0 to 360.

Will rotating change the image's dimensions?+

At 90° or 270° the width and height swap. At other angles the image grows so the rotated picture fits completely, and the corners are filled with the color you pick.

Which direction does it rotate?+

Clockwise. 90° turns the top of the image to the right side.

Does rotating reduce quality?+

Quarter and half turns and flips move pixels without loss. Other angles require resampling, which softens fine detail slightly. Saving as JPEG or WebP adds normal compression on top.

What format is the rotated image saved in?+

By default the same kind as the original (JPEG stays JPEG, others become PNG), or PNG, JPEG or WebP if you choose. The file name ends in -rotated.

Related tools