inyourbrowser.com

Rotate & Flip Image

Image rotator is an image tool that turns a picture 90°, 180° or 270° clockwise or mirrors it horizontally or vertically. It keeps the full resolution, swaps width and height for quarter turns, and saves a lossless PNG or a JPG. The tool runs in your browser.

Drop an image or click to choose

JPG, PNG, or WebP, up to 50 MB. Runs in your browser.

OPERATION

FORMAT

Runs entirely in your browser

How to rotate an image

  1. Drop your image or click to choose a file. JPEG, PNG, and WebP are accepted.
  2. Click 90°, 180°, or 270° to rotate the image clockwise, or Flip H or Flip V to flip it horizontally or vertically.
  3. Preview the rotated image before downloading.
  4. Click "Download" to save the result.

Common uses

  • Correcting the orientation of photos taken on a phone or camera, then compress the result before sharing
  • Rotating images to a specific orientation for documents or presentations
  • Turning a scanned page or screenshot that came out upside down the right way up with a 180° rotation
  • Flipping product photos horizontally for side-by-side comparison, use image crop to trim to the right composition afterward

Technical specification

  • Algorithm or formula: Rotation uses canvas translate and rotate at 90, 180, or 270 degrees. Flips use scale(-1, 1) for horizontal and scale(1, -1) for vertical. Output is then re-encoded with canvas.toBlob.
  • Browser API or library: Canvas 2D API. No external library.
  • Input limits: Files up to 50 MB and 50 megapixels.
  • Output: PNG by default, or JPG at quality 0.92 with transparent areas filled white, whatever the input format. EXIF data from the original is not copied into the new file.
  • Known limitations: Only 90-degree increments are supported. Arbitrary-angle rotation, which would require background fill or transparent padding, is not exposed.

Frequently asked questions

What rotation options are available?
You can rotate 90, 180, or 270 degrees clockwise (270 is the same as 90 degrees counter-clockwise), flip horizontal, and flip vertical.
Is my image uploaded to a server?
Rotation runs in your browser using the Canvas API. Our servers are not involved at any point.
Does rotating change the image quality?
PNG output, the default, is lossless. JPG output is re-encoded at quality 0.92, which adds a small amount of compression.
Can I rotate to an arbitrary angle?
The tool supports 90, 180, and 270 degree rotations. Arbitrary angle rotation is not currently available.
Why does my phone photo look sideways in some apps?
Phones often save the pixels unrotated and record the correct orientation in an EXIF tag, which some apps ignore. Modern browsers apply that tag when they draw a JPEG, so the photo here usually appears upright already; rotate it if it does not, then download. The new file has the orientation in its pixels and no tag left to misread.
Why is the rotated file larger than my JPEG?
The default output is PNG, which is lossless, so a PNG of a photo is often several times larger than the JPEG it came from. Choose JPG under Format for a smaller file; it is encoded at quality 0.92.

Related tools

Crop image
Crop images to any size, square, or circle shape. Canvas API. Runs in your browser.
Favicon generator
Generate favicon PNGs in 16, 32, 48, 64, 192, and 512 pixel sizes from any image. Runs in your browser.
Rotate PDF
Rotate or flip PDF pages 90°, 180°, or 270°. Adjust individual pages or all at once.

Reviewed and tested September 30, 2026.