Rotate an Image Online (Free)

Rotate Image turns a photo by 90, 180 or 270 degrees and mirrors it horizontally or vertically. No account, no upload, no watermark. Two details decide whether the result is usable, and neither is obvious from the buttons: every export is a PNG, and the flips work on the image's own axes rather than on your screen. This page explains both, plus the one input format that cannot survive the trip.

Try the free tool now

100% in your browser — no upload, no account, no watermark.

Open Rotate Image Online

What the four buttons do to the pixels

The transform is a single object with three fields - rotation, flipH and flipV - and the rotation value only ever takes 0, 90, 180 or 270 degrees. Rotate Right adds 90 and Rotate Left adds 270, both taken modulo 360 (RotateImageTool.tsx, lines 78 and 82), so the two buttons are the same operation with different increments.

Rotation happens on a canvas sized to the source. When the angle is not a multiple of 180, the canvas width and height are swapped (lines 42-45), so a 4000x3000 photo becomes a 3000x4000 export. The image is then drawn at its natural size (line 51): no scaling factor is applied, so pixels are copied rather than interpolated and a right-angle rotation is exact.

The flips are applied after the rotation in the same transform stack (lines 49-50): the canvas is translated to its centre, rotated, then scaled by -1 on one axis. Because that scale happens inside the rotated coordinate system, Flip Horizontal always mirrors the image's own left-right axis. If you have already rotated 90 degrees, the same click appears as a top-to-bottom mirror on screen. The order of the clicks changes the combination, not the meaning of the button.

Match the control to the symptom

Six situations cover almost every sideways file. The middle column is what to press, starting from an untouched image:

What the file looks likePress thisWhy
Subject is upright but the frame is sideways, head pointing leftRotate Right+90 degrees, canvas becomes portrait
Upside down, not mirroredRotate Right twice, or Rotate Left twiceBoth land on 180
Orientation correct, text reads backwardsFlip HorizontalMirrors the image's own x axis
Subject hangs from the ceiling in an otherwise normal frameFlip VerticalMirrors the image's own y axis
Front-camera capture, a part number reads reversedFlip HorizontalWebcam previews are mirrored, the saved file usually is not
A scan is both upside down and mirroredRotate Right twice, then Flip Horizontal180 first, then one mirror

The two rotation buttons are toggles on one number, not an undo history. Every click re-renders from the original file, because the render function reloads the image on each call (lines 31-57), so a dozen clicks do not stack a dozen re-encodes. Only the download creates a new file, and it encodes once.

Why the download is always a PNG

The export call is hard-coded: canvas.toBlob with the MIME type image/png at line 128, and the file is named with a -rotated.png suffix at line 222. There is no format menu and no quality slider in the component, so JPEG, WebP and GIF inputs all come back as PNG.

Two consequences are worth planning for. The good one: alpha survives, so a transparent logo stays transparent, and the pixels are stored losslessly. The awkward one: a photograph saved as PNG is usually far larger than the JPEG it came from, because PNG does not discard the detail a camera JPEG threw away. Rotating a 20 MB camera file for a form with a 2 MB cap will fail at the upload stage, not at the rotation stage. Rotate first, then compress the PNG.

The exported PNG also carries no EXIF block. Canvas writes pixels; it does not copy the source metadata container, so date, camera model, GPS position and the orientation tag are all dropped. For orientation that is an advantage - a viewer cannot ignore a tag that is not there - but if the date or location mattered, archive the original first.

The animated GIF that comes back still

The uploader accepts .jpg, .jpeg, .png, .webp and .gif (line 150), and the pipeline treats all five the same way: load the file into an image element, draw it once onto a canvas, export PNG. An animated GIF is a sequence of frames in one file; drawing it to a canvas captures one frame. The download is a valid, static PNG, and nothing in the interface warns you.

That is a real failure mode for stickers, loading spinners and short reaction clips. If the motion is the point, keep the GIF and rotate it elsewhere; if you only need the still, this tool gives you the cleanest possible frame at full resolution.

Limits, the daily counter and what rotation cannot fix

One file per run, 20 MB maximum. The limit comes from the shared uploader component, which rejects anything above maxSizeMB (FileUploader.tsx, line 34), and Rotate Image keeps the default of 20 (line 151 of the tool). The rotation itself is cheap - the canvas is the size of the source - so the ceiling is the browser's memory for decoding, not the maths.

The free tier counts operations per browser: 20 per day, tracked on the device. The counter is incremented when you press Download, before the export runs (line 118), so pressing Download twice for the same image spends two operations. Pro removes the daily cap but changes nothing else: one file at a time, PNG export, no angle field.

  • Rotation cannot correct perspective: a document photographed at an angle has four corners at four different depths, and this tool has no corner handles and no arbitrary angle.
  • Rotation cannot straighten a tilted horizon: that needs a fractional angle, and the angle field does not exist.
  • Rotation cannot recover detail: rotating a 600-pixel thumbnail gives a 600-pixel sideways-corrected thumbnail.

Resize after rotating rather than before: one resample instead of two.

About this guide

Written by
The ImageTools Pro team
Last reviewed
October 2026
How we test
Steps run in a real browser on real PNG, JPEG and WebP files

We revise this page whenever browser APIs, format support or recommended settings change. Corrections are welcome — tell us from the contact page.

Tools we recommend

Frequently Asked Questions

Can I rotate by an arbitrary angle, like 2.5 degrees?

No. The transform value only takes 0, 90, 180 and 270 degrees, plus the two flip toggles. There is no angle field and no drag-to-straighten control, so a slightly tilted horizon cannot be corrected here.

Does rotating lose quality?

No. At right angles the canvas copies the source pixels one for one with no interpolation, and the PNG export is lossless. The only quality effect is indirect: re-saving a JPEG as PNG keeps the JPEG's existing artefacts but does not add new ones.

Can I get a JPG instead of a PNG?

Not from this tool - the MIME type is hard-coded to image/png. Convert the PNG afterwards with the Convert Image tool if a form insists on JPG, and expect a smaller file with slight loss.

Will it fix a phone photo that shows up sideways?

The preview goes through the browser's decoder, so what you see is what gets written into the pixels. The exported PNG then has no orientation tag left to be ignored, which is the usual reason a correctly shot photo displays sideways elsewhere.

Ready to try it?

All tools are free and run entirely in your browser.

Open the tool now

We value your privacy

This site is ad-supported by a partner that may set a cookie to personalize ads. Reject and no third-party ad scripts load at all. All image processing stays 100% in your browser either way.