Image Rotator

Sideways phone photos, scanned documents landing at 90°, horizons that are two degrees off, each needs a different rotation strategy. This rotator handles 90° multiples losslessly (especially useful for JPG), and arbitrary angles with clean anti-aliasing and a choice of fill colour for the exposed corners.

How to rotate an image

  1. 1

    Upload the image

    JPG, PNG, WebP or HEIC.

  2. 2

    Pick rotation

    90°, 180°, 270° (lossless for JPG) or any angle via the slider.

  3. 3

    Pick the fill

    For non-right-angle rotations, choose transparent, white or a HEX for the exposed corners.

  4. 4

    Optional: crop after rotate

    Crop to the inscribed rectangle to hide the corners entirely.

  5. 5

    Export

    Same format as input or convert on save.

Lossless vs interpolated rotation

90° multiples on JPG

JPEG stores data in 8×8 DCT blocks. Rotating by 90°, 180° or 270° can be done by shuffling these blocks without re-encoding, “lossless rotation”. Works when both dimensions are multiples of 8 (true for almost every camera photo). The tool uses this path automatically.

Arbitrary angles

For 1°, 2°, 15° or any non-90° rotation, each new pixel is a weighted sample of the original grid. The tool uses bicubic interpolation for smooth results.

Exposed corners

Rotating a rectangle by a non-90° angle leaves triangular gaps at each corner. Fill options:

  • Transparent (PNG only): the gaps are transparent pixels.
  • White / black / any HEX: solid fill for a clean look.
  • Edge-pixel extension: repeats the nearest pixel outward, handy for scanned documents where white is expected.
  • Crop to inscribed rectangle: removes the corners entirely by cropping to the largest rectangle that fits inside the rotated image.

Auto-straighten

If you have a photo with a tilted horizon, use the “auto” mode, the tool detects the dominant horizontal edge (usually the horizon) and rotates to make it level. Works reliably when there is a clear straight line.

EXIF orientation and real rotation

Phone photos sometimes store the rotation as an EXIF flag rather than rotating the pixel grid. This rotator bakes the rotation into the pixel data and writes EXIF orientation = 1, so the result looks identical in every viewer.

Frequently Asked Questions

For JPG, yes, when the image dimensions are multiples of 8 (virtually always). For PNG and WebP lossless, every rotation is lossless regardless of angle because the format is pixel-exact.

Rotating a rectangle tilts it, exposing corners that are now outside the original image. Either fill them with a colour or crop to the inscribed rectangle, both options are one click in the tool.

It works well when there is a strong horizontal or vertical line in the frame (horizon, building edge, shelf). Photos with only curved or diagonal features may need manual rotation.

Only for arbitrary angles, and only slightly. 90° multiples on JPG with multiple-of-8 dimensions are genuinely lossless. Small-angle rotations re-encode; one pass is barely visible but repeated rotations compound.

Related Tools

Tool available in other languages