New width
W' = ⌈w |cos θ| + h |sin θ|⌉
Rounded up to the pixel.
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.
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 editorA 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.
Drop a PNG, JPEG or WebP image.
Click a quarter turn, or set the free rotation angle and apply.
After a free rotation, crop the empty corners if necessary, then download.
The new canvas is the smallest rectangle that holds the image rotated by the angle θ.
W' = ⌈w |cos θ| + h |sin θ|⌉
Rounded up to the pixel.
H' = ⌈w |sin θ| + h |cos θ|⌉
At 90°, width and height swap exactly.
Stand up a photo taken in portrait mode but shown on its side.
Turn a sea or landscape photo by 1 or 2 degrees, then crop the corners.
Straighten a slightly crooked scanned page before putting it into a document.
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 backgroundResult
4,103 × 3,138 px image with four small transparent cornerscos 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 middleClockwise. A negative angle turns anticlockwise.
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.
Quarter turns are exact. Free rotation interpolates pixels, which very slightly softens the image; avoid chaining many small rotations.
Yes: two quarter turns, or a free rotation of 180° or −180°, which give the same result.
Rotation turns the image; flipping mirrors it. Rotated text stays readable, flipped text is reversed.
No. Rotation is computed in your browser.
Related tools
Tools similar or complementary to this one.
Flip an image horizontally or vertically directly in your browser.
Draw a frame on the image, lock a ratio (1:1, 4:5, 16:9…) and download the cropped part.
Expand or reduce the canvas around an image without resizing its content.
Understand EXIF, GPS, XMP, IPTC, ICC profiles, rights information, and how to manage image metadata for privacy, publishing, and Web performance.
Learn what changes when PDF pages are rasterized, how resolution and image format affect quality, and when to assemble images into a PDF.
Resize a batch of images, convert them to WebP and remove metadata with one reusable Pipeline.
Resize, compress and choose between WebP, AVIF and other formats with a practical workflow that reduces file size without unnecessary visual loss.