How to rotate a photo online without cropping the corners
Two clicks for a quarter turn, one slider for the three degrees your horizon is off by.
A scan lands upside down. A skyline leans two degrees to the left and now you cannot unsee it. The rotate tool fixes both, and it does not throw away the corners while doing it.
How it works
- Drop a photo. It appears on a live canvas at its current orientation.
- Click Rotate left or Rotate right for quarter turns, or drag the angle slider for anything in between.
- Toggle horizontal or vertical flip if you need a mirror image, then download as PNG, JPEG, or WebP.
Why the output gets bigger
Turn a 1000 by 600 rectangle by 30 degrees and it no longer fits in a 1000 by 600 frame. Its corners stick out. Plenty of tools solve that by cropping, which quietly eats part of the picture.
Here the canvas is sized to the bounding box of the rotated rectangle instead. The width comes out as w·cos θ + h·sin θ and the height as w·sin θ + h·cos θ, using absolute values so the sign of the angle does not matter. For that 1000 by 600 image at 30 degrees, the result is 1166 by 1020. The "Output size" readout shows the exact figures before you download.
The new area around the corners has to be filled with something, so the background menu offers transparent, white, or black. Transparent only survives in PNG and WebP, so a transparent choice with JPEG selected falls back to white rather than turning black, which is what a naive canvas export would produce.
Multiples of 90 are the free case
At 90, 180, or 270 degrees the sine and cosine terms collapse to a clean swap: a 1000 by 600 image becomes 600 by 1000 with no filler and no interpolation. Every pixel maps exactly onto a new pixel. If all you need is to turn a sideways phone photo upright, use the quarter-turn buttons rather than the slider and the image comes through untouched.
Angles in between resample. A three degree straightening pass softens fine detail very slightly, which is a fair price for a level horizon but not something to repeat five times.
Flip is not the same as rotate
Rotating 180 degrees and flipping both axes look similar on a symmetrical subject and are completely different on text. A 180 degree turn leaves words readable upside down. A horizontal flip mirrors them. Flip is what you want to correct a selfie camera that reverses your shirt logo, or to make a pair of arrows point at each other. Rotation is what you want when the camera was simply held the wrong way up.
Both flips can stack on top of any angle here, and the transform readout spells out what is currently applied.
Local only
The browser decodes the image and draws it onto a canvas through a transform matrix. Nothing is uploaded, so scanned documents and personal photos stay on your machine. After the rotation you may want the cropper to trim the filled corners, or the compressor if the re-encoded file came out heavier than the original.