Rotate or Flip Image — Any Angle, Browser-Side
Rotate images by any angle or flip them horizontally/vertically. Free, browser-side, no upload.
Drop your image here
PNG, JPG, or WebP — up to 50 MB
Rotating an image by an arbitrary angle — or flipping it horizontally or vertically — are two of the most common image manipulations used in everyday workflows. Whether you are straightening a scanned document tilted a few degrees, creating mirrored compositions for a mirror-edge layout, or flipping a selfie that was taken with the wrong camera orientation, these operations are foundational.
How rotation works
When you rotate an image by an angle θ, each pixel’s position is transformed by a 2D rotation matrix:
[ x' ] [ cos θ -sin θ ] [ x ]
[ y' ] = [ sin θ cos θ ] [ y ]
This tool applies the matrix to the full image. At angles that are not multiples of 90°, the rotated image may need a larger bounding box. For example, rotating a 100 × 100 image by 45° produces a canvas of 142 × 142 pixels. The extra area is filled with transparency (for PNG/WebP) or a solid background (for JPG).
Flipping
Horizontal flip mirrors the image left-to-right by scaling the X axis by −1. Vertical flip mirrors top-to-bottom by scaling the Y axis by −1. Both are lossless transformations in terms of the Canvas operation — the flip does not degrade quality, it only rearranges which pixel is displayed where.
When you combine flip and rotation, flips are applied before rotation for the most intuitive result: the image is mirrored first, then the mirrored result is rotated by your chosen angle.
How to use
Drop your image
Drag a PNG, JPG, or WebP file into the drop zone (up to 50 MB). A live preview of the original image appears with rotation and flip controls.
Adjust rotation and flip
Use the angle slider (0° to 359°) and the Flip H / Flip V toggles to set the transformation. The preview updates in real time as you adjust controls.
Click Apply to process
Click the Apply button to process the image. The result is rendered to a new file in the same format. Rotation may enlarge the canvas to fit the rotated frame.
Frequently asked
Can I rotate by any angle, not just 90° increments?
Yes. The slider lets you pick any angle from 0° to 359°. The image is reconstructed with a new bounding box that fits the rotated frame, so no content is clipped.
What format is the output?
The output format matches the input: PNG stays PNG, JPG stays JPG, WebP stays WebP. For JPG, a quality of 92% is used to balance quality and size.
Will rotation reduce image quality?
Rotation itself re-rasterizes the image through the Canvas API at full resolution, so there is no quality loss from the transformation. JPG output re-encodes at 92% quality, which introduces minimal generational loss.
Are my images uploaded?
No. All processing — including the rotation matrix math — runs in your browser via the HTML5 Canvas API. The file never leaves your device.
What if I only want to flip without rotating?
Leave the angle at 0° and toggle Flip H or Flip V, then click Apply. The flip is applied without any rotation step.
Does rotation preserve transparency?
Yes. The alpha channel is preserved through the rotation pipeline. Areas outside the original image in the rotated bounding box are filled with transparent pixels.
Limitations
- No EXIF auto-rotationThis tool does not read EXIF orientation tags. If your photo has an orientation flag set by the camera, it will be ignored. Use the rotate slider to manually correct orientation.
- Canvas dimensions may changeNon-90°-multiple rotations produce a larger canvas to fit the rotated image. This can result in empty transparent corners if the original had an alpha channel, or a fill color for opaque formats.
- No lossless rotationEven when you rotate by exact 90°/180°/270° multiples, the image is re-rasterized through Canvas and re-encoded. Unlike some JPEG lossless rotation tools, this produces a new encode.
- JPG recompressionJPG input is re-encoded at 92% quality. This is visually near-lossless but not mathematically lossless. PNG and WebP do not have this issue.
Platform notes
- macOS
- Works in Safari, Chrome, and Firefox. Preview.app can rotate images 90°/180° but cannot set an arbitrary angle.
- Windows
- Works in Edge, Chrome, Firefox. The built-in Photos app can rotate in 90° increments only.
- Linux
- CLI equivalent: `convert input.png -rotate 45 output.png` (ImageMagick). For flip: `convert input.png -flop output.png` (horizontal) or `-flip` (vertical).
- Web
- Runs entirely client-side. No upload, no server roundtrip. Open in any modern browser.