Home / Image Tools / Rotate Image Online
Free online tool

Rotate Image Online

Rotate one image by 90°, 180° or a custom angle. Adjust canvas, margin and background, then download PNG in your browser.

Start using

What this tool actually does

Simple mode offers left 90 degrees, right 90 degrees (selected by default), and 180 degrees. Advanced mode exposes an angle defaulting to 90 with displayed range 0..360 and clockwise/counterclockwise direction. Direction applies to the advanced angle; the signed simple presets already encode their direction.

Checkable behavior

Transparent background is selected by default; solid background uses a native color picker defaulting to #ffffff. Expand canvas to fit is checked by default, and extra margin defaults to 0 px with a 0..1000 control. There is no automatic horizon detection, arbitrary crop or batch rotation.

Controls, output and limitations

With fit enabled, canvas width is ceil(|cos angle|*source width+|sin angle|*source height+2*margin), and height swaps the sine/cosine terms. A 100 by 50 px source rotated 90 degrees with zero margin becomes 50 by 100 px. At 45 degrees with margin 10 it becomes 127 by 127 px.

With fit disabled, output stays at source width by source height plus twice the margin; rotated corners can be clipped. The image is rotated around the output center. Transparent mode leaves uncovered areas transparent; solid mode fills them with the selected color before drawing.

Load one image, choose simple or advanced angle, fit, margin and background, press Generate and inspect all edges, then download PNG. Press Generate after control changes. Processing is browser-local; PNG preserves transparent uncovered areas, and mobile download location depends on the browser.

The source file must not exceed 25 MiB (26214400 bytes), and both the source and final output must not exceed 24000000 pixels each. Expansion and margin can make a valid source too large to export; try a different angle, reduce the margin, or resize the source first. Margin applies with canvas fitting both on and off: without fitting, each output dimension is the corresponding source dimension plus twice the margin, rounded up. Clear removes the loaded image and result and disables download, while keeping the angle, background and margin settings. Arbitrary-angle rotation resamples pixels and may change sharpness; keep the original.

Processing takes place locally in your browser.