PNG Rotator

Rotate a PNG image by 90°, 180°, 270° or any custom angle. Rotations in 90° steps are pixel-perfect with no quality loss; arbitrary angles use smoothing. Transparency is preserved automatically.

Custom angles expose new corners — choose transparent or a fill colour.
100% private — processed in your browser. No upload, no server.

When you'll want to rotate a PNG

Rotation comes up more often than people expect. A photo taken with a phone held sideways often imports rotated 90° because the EXIF orientation flag was stripped during processing. A scanned document arrives upside-down. A product shot needs the label aligned vertically for a packaging mock-up. A piece of pixel art needs to face the other direction. Each of those is a one-click fix with the right tool — and this is the right tool.

This rotator gives you two modes. The three "quick rotate" buttons handle the common 90°, 180° and 270° cases — these are pixel-perfect, meaning the output image contains exactly the same pixels as the source, just rearranged. There's no resampling, no smoothing, no loss of detail. The custom-angle slider handles everything in between (15°, 45°, -7°, etc.); these rotations have to interpolate between pixel positions, so you'll see a small amount of smoothing along edges, but the result is still high quality.

How rotation works under the hood

For 90° and 270° rotations, the output canvas swaps width and height — a 1920×1080 photo becomes 1080×1920. The rotator simply applies a 2D transformation matrix to the canvas context (translation + rotation) and draws the source image onto it. For 180° both dimensions stay the same. For arbitrary angles, the output canvas is sized to fit the rotated image's bounding box (which is always larger than the source for angles that aren't multiples of 90°), and the empty corners are filled with either transparency or your chosen background colour.

That last detail surprises people the first time they see it. Rotate a 1000×1000 square by 45° and the output canvas has to be roughly 1414×1414 — large enough that the diagonal of the rotated square fits inside. Four triangular corner regions are now "outside" the original image; we fill them transparent (default for PNG) or with a solid colour you pick.

90° rotations vs. arbitrary angles

Aspect90° / 180° / 270°Custom angle
QualityPixel-perfect, losslessSlightly softened by interpolation
Output dimensionsSame pixels, swappedLarger to fit the rotation
Empty cornersNoneYes — need transparent or fill colour
File sizeSame as originalLarger (more pixels)
Best forPhone photos, scans, sideways uploadsTilted compositions, deliberate angles

Practical scenarios

Tips and best practice

FAQs

Is rotation lossless?

For 90°, 180°, and 270° rotations, yes — every pixel is preserved. For other angles, the canvas interpolates pixels between the source and destination grids, which introduces a tiny amount of softening near edges.

Will my transparent PNG stay transparent?

Yes — keep the "Keep transparent" checkbox ticked. The new corners exposed by an arbitrary rotation will be transparent too.

Why is the rotated image bigger than the original?

Only for non-90° rotations. The output canvas has to be wide and tall enough to contain the entire rotated image, which is always larger than the source bounding box.

Is anything uploaded?

No. The rotation runs in your browser.

Can I rotate by very precise angles like 1.5°?

The slider is in 1° steps. For finer control, type the exact angle into the number input that appears next to the slider value.

Will EXIF orientation be applied automatically?

The browser usually honours EXIF orientation when first loading the image, so you'll be rotating from the visually-correct starting orientation. EXIF is then stripped from the output.

Can I batch-rotate many PNGs?

Not yet — one file at a time.

Related tools