AAllMyToolsa pocketful of little tools
ROT

Rotate and flip image

ImagesNo. 34 / 84

Rotate JPEG and PNG images by 90, 180 or 270 degrees and flip them horizontally or vertically, locally.

the photo was sideways; now it is not.

work surface

Math, not advice — results are indicative.Read the disclaimer.

most-used utilities

A sideways phone photo

Rotate right until the horizon is level and download the JPEG.

A mirrored selfie

Flip horizontal to restore the version everyone else sees.

A scanned page

Rotate 90 degrees and keep PNG for crisp text.

pro tips

Rotate in 90 degree steps for photos; arbitrary angles need a proper editor and introduce soft edges.

Use PNG output if the image has text or sharp graphics and you want to avoid another JPEG generation.

A flip is not a rotation. If a portrait looks wrong, try flip horizontal before rotating again.

what it does

Open a JPEG or PNG, rotate it in quarter turns and flip it on either axis. The preview updates immediately and the download uses the orientation you see.

Phone photos are the usual reason: the camera was held sideways and the EXIF tag says one thing while the pixels say another. Scans and screenshots also arrive rotated, and a mirrored image is sometimes the only version you have.

A 90 or 270 degree rotation swaps the dimensions. A 3000 by 2000 photo becomes 2000 by 3000. A 180 degree rotation and a flip keep the original dimensions but change the pixels and any text in the frame.

The output can be JPEG or PNG. JPEG gets a white background because it has no transparency. Everything is drawn on a canvas in your browser.

quick answers

Does rotating lose quality?

The pixels are copied, not resampled, but the output is re-encoded. Use PNG for a lossless result; JPEG adds one more generation of compression.

What happens to the dimensions?

A 90 or 270 degree turn swaps width and height. A 180 degree turn or a flip keeps them the same.

Does this fix EXIF orientation?

The canvas reads the file with its orientation applied, so the output has the pixels in the orientation you see, without relying on the EXIF tag.