Skip to main content

Rotate an image

Rotate an image left, right, or to a custom angle directly in your browser. Le traitement est local et réutilise l’espace de travail d’édition d’image.

  • Export

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Image
No image loaded

Drop an image here

Add a PNG, JPEG, or WebP image. The file stays on your device and all edits run locally in your browser.

Need more editing options?

Use multiple editing tools in one workspace, with your open file and its current edits.

Open the full editor

Was this tool useful?

On this page

How does this tool work?

A photo lying on its side, a crooked scan or a tilted horizon is fixed with a rotation. This tool offers two settings: quarter turns left or right, in one click and lossless, and free rotation from −180° to +180° to straighten an image precisely, with a transparent or coloured background in the corners it creates.

Rotate left and Rotate right turn the image by 90° and apply at once: a 4,000 × 3,000 px image becomes 3,000 × 4,000 px with no pixel lost. Four clicks bring the image back to its original position.

Free rotation sets an Angle from −180° to +180°; a positive angle turns clockwise, and double-clicking the slider resets it to 0. The canvas grows to hold the whole rotated image, and the empty corners stay transparent (Transparent background, on by default) or take the Background color. Click Apply to confirm.

Free rotation recalculates pixels by interpolation, which very slightly softens edges, unlike quarter turns. Undo (Ctrl+Z) and Before / after remain available before you download.

How to use this tool

  1. Import the image

    Drop a PNG, JPEG or WebP image.

  2. Rotate

    Click a quarter turn, or set the free rotation angle and apply.

  3. Crop if needed and download

    After a free rotation, crop the empty corners if necessary, then download.

Image size after free rotation

The new canvas is the smallest rectangle that holds the image rotated by the angle θ.

New width

W' = ⌈w |cos θ| + h |sin θ|⌉

Rounded up to the pixel.

New height

H' = ⌈w |sin θ| + h |cos θ|⌉

At 90°, width and height swap exactly.

w, h
width and height of the original image
θ
rotation angle
W', H'
dimensions of the rotated image

Use cases

Right a sideways photo

Stand up a photo taken in portrait mode but shown on its side.

Fix a tilted horizon

Turn a sea or landscape photo by 1 or 2 degrees, then crop the corners.

Align a scan

Straighten a slightly crooked scanned page before putting it into a document.

Examples

Horizon tilted by 2°

W' = ⌈4,000 × cos 2° + 3,000 × sin 2°⌉ = 4,103 and H' = ⌈4,000 × sin 2° + 3,000 × cos 2°⌉ = 3,138. Crop slightly afterwards to remove the corners.

Input

4,000 × 3,000 px photo, free rotation of 2°, transparent background

Result

4,103 × 3,138 px image with four small transparent corners

Rotating a logo by 15°

cos 15° ≈ 0.966 and sin 15° ≈ 0.259: 1,000 × 0.966 + 600 × 0.259 ≈ 1,121.2, rounded up to 1,122 px.

Input

1,000 × 600 px logo, free rotation of 15°

Result

1,122 × 839 px image, logo tilted in the middle

Tips and best practices

  • For a photo on its side, always use a quarter turn: it is exact and degrades no pixel.
  • To straighten a horizon, find a line that should be level and try small angles one degree at a time.
  • Keep the background transparent, then crop: you avoid white or black corners around the image.
  • If you export to JPEG, transparent corners turn white; pick a suitable background colour or crop.

Sources and references

Frequently asked questions

Which way does a positive angle turn?

Clockwise. A negative angle turns anticlockwise.

Why does the image get bigger?

A tilted image no longer fits in its original rectangle: the canvas grows so nothing is cut off, and the new corners are transparent or coloured.

Does rotation reduce quality?

Quarter turns are exact. Free rotation interpolates pixels, which very slightly softens the image; avoid chaining many small rotations.

Can I rotate by 180°?

Yes: two quarter turns, or a free rotation of 180° or −180°, which give the same result.

How is this different from flipping?

Rotation turns the image; flipping mirrors it. Rotated text stays readable, flipped text is reversed.

Is my image uploaded to a server?

No. Rotation is computed in your browser.

Related tools

Tools similar or complementary to this one.

Similar tools

Flip an image horizontally or vertically directly in your browser.

Images & graphicsUse this tool

Draw a frame on the image, lock a ratio (1:1, 4:5, 16:9…) and download the cropped part.

Images & graphicsFeaturedUse this tool

Expand or reduce the canvas around an image without resizing its content.

Images & graphicsUse this tool
GuideBest practicesBeginner

Image Metadata: Read It, Keep It, or Remove It?

Understand EXIF, GPS, XMP, IPTC, ICC profiles, rights information, and how to manage image metadata for privacy, publishing, and Web performance.

31 August 202613 min
GuideBest practicesBeginner

Convert a PDF to images or images to PDF

Learn what changes when PDF pages are rasterized, how resolution and image format affect quality, and when to assemble images into a PDF.

29 August 20262 min
TutorialBest practicesBeginner

Optimize images for the Web without losing quality

Resize, compress and choose between WebP, AVIF and other formats with a practical workflow that reduces file size without unnecessary visual loss.

30 August 20264 min