Rotate images by 90° steps or any angle
Photos taken with a phone held sideways, scanned documents fed in the wrong way, or a horizon that is a few degrees off — rotating fixes them all. This rotate image tool combines quick 90° and 180° turns with a fine slider from −180° to 180° in half-degree steps, and shows the result live.
How free rotation works
When you rotate by an angle that is not a multiple of 90°, the corners of the image would stick out of the original rectangle. Instead of cutting them off, the tool enlarges the canvas to fit the rotated image completely. The new empty corners are transparent when you save as PNG or WEBP, or filled with the colour you choose — handy for white paper scans. JPG does not support transparency, so JPG output always uses the background colour.
If you want a straight rectangle without corners after straightening, rotate first and then use the image cropper to trim the edges.
Lossless 90° rotation?
Rotating in the browser re-encodes the image. Saving as PNG keeps every pixel exactly; for JPG photos choose a high quality (90% or more) to avoid visible loss. The output dimensions are shown under the controls — a 90° turn swaps width and height.
Why photos appear sideways
Cameras often store images in sensor orientation and add an EXIF "Orientation" flag telling viewers how to display them. Some programs ignore the flag, so the photo appears rotated. Modern browsers apply the flag when decoding, which means the preview here shows the photo as your phone does; rotating and saving writes the pixels in the correct orientation without depending on metadata. To mirror an image rather than rotate it, use flip image.
Straightening tips
To level a horizon, move the free-angle slider in small steps and watch a straight edge in the picture, such as a building or the sea line. Corrections are usually between −5° and 5°. Larger angles create bigger empty corners, so plan to crop afterwards. Rotations are always applied to the original image rather than to a previous result, so you can adjust back and forth without accumulating quality loss.
Privacy
Everything happens locally in your browser with JavaScript and the Canvas API. Your images are never uploaded to our servers, so the tool also works with confidential screenshots and personal photos.