Rotate Image

Published Updated

Rotate your image by 90° or 180°, or flip it horizontally and vertically, then download the result in seconds — free, private, and processed entirely in your browser.

Each click re-saves the image

Moves stack: the tool turns the current picture, saves it, and uses that new file for your next click. With an opaque PNG without a colour profile that costs nothing. With JPEG or WebP each click is a fresh encode at quality 92. Two or three clicks are rarely visible. Ten would be.

The output type follows the input: PNG, JPEG or WebP. The rotation is applied to the pixels and no orientation flag is stored, so the result is upright in any viewer.

How a click turns the pixels

A clockwise click moves the origin to the top right and rotates the canvas by a quarter turn, so the pixel at (x, y) of a W × H picture lands at (H - 1 - y, x) in a picture that is now H wide and W high (HTML Living Standard, canvas). Measured with the page's own transform code in Chromium 152 on an opaque 1,200 × 800 PNG, every one of the five buttons put all 960,000 pixels exactly where that mapping says. Four clockwise clicks, or one clockwise followed by one counter-clockwise, gave the original back with no differing pixel. On opaque 400 × 300 and 403 × 297 PNGs, each of the five buttons changed no pixel in Google Chrome 158 and in Firefox 155.

Which button for which problem

Photo looks like thisClick
Top of the scene points right (turned clockwise)Rotate 90° CCW
Top of the scene points leftRotate 90° CW
Upside downRotate 180°
Mirror image, text backwardsFlip Horizontal
Turned over top to bottomFlip Vertical

Rotating an image

  1. Step 1

    Add an image

    The preview shows the original size and, after your first move, the current size.

  2. Step 2

    Click the moves you need

    Rotate 90° clockwise or counter-clockwise, rotate 180°, or flip. Each click is applied to the previous result.

  3. Step 3

    Download the result

    The file is saved as name-rotated in the same format as the input, using PNG when the input type cannot be written.

Measured: what repeated clicks do to a JPEG

A 1,200 × 800 synthetic photo was saved as a JPEG (305,762 bytes) and rotated clockwise again and again, each click starting from the file the previous click made, as the tool does. After each count, the picture was compared with an exact rotation of the original decoded pixels by the same net angle. PSNR is a score for how close two pictures are, where a higher number means closer.

ClicksPicture sizeFile sizePixels that differPSNR
1800 × 1,200312,230 bytes71.97%44.9 dB
21,200 × 800313,861 bytes71.37%43.5 dB
41,200 × 800313,928 bytes71.70%43.4 dB
81,200 × 800314,006 bytes71.95%43.4 dB
121,200 × 800314,011 bytes71.89%43.4 dB

The loss arrives in the first two clicks and then levels off at about 43.4 dB, and the largest change in any colour channel was 10 levels out of 255. The file grew by 2.1% after one click and 2.7% after four. With an opaque PNG in our test there was no loss at all. Four clicks on a JPEG are therefore not an exact return to the start, and they are not a steady slide either.

Phone photos, GIF and AVIF

A photo with a rotation tag is turned as your browser shows it. A test JPEG stored as 400 × 300 with orientation tag 6 was shown as 300 × 400, and one clockwise click made it 400 × 300 with the tag not written, so what you see is what is saved (CSS Images Module Level 3 describes the default). The output type follows the input only when the browser can write it: in Chromium 152, asking for GIF or AVIF returned a PNG, in line with the canvas rule that PNG is used when a type is not supported (HTML Living Standard). WebP stayed WebP.

When to use another tool

For a tilt of a few degrees, Straighten Image is the right tool. To change the output format or shrink the file, run the result through Image Converter afterwards.

Rotate image, answered

Does rotating reduce quality?

For an opaque PNG without a colour profile, no. For JPEG and WebP, every click writes a new file at quality 92 from the previous one, so four clicks mean four generations. Work out the shortest route first: one counter-clockwise click instead of three clockwise ones.

Can I rotate by an arbitrary angle?

No. The tool offers 90°, 180° and two flips. For a slightly tilted horizon use Straighten Image.

Is the picture cropped when it turns 90 degrees?

No. Width and height are swapped. A 4000 × 3000 landscape photo becomes 3000 × 4000, with nothing cut off.

Why did my GIF come out as a PNG?

The tool saves in the input's format only for PNG, JPEG and WebP. For other types, including GIF, it falls back to a PNG of the current frame, so the animation is lost.

If I rotate a JPEG four times, do I get the original back?

Not exactly. With an opaque PNG in our test, four clockwise clicks returned every pixel unchanged. In a test PNG with partly transparent pixels, those pixels changed on the first click, 75% of them in Chrome 158 and 97% in Firefox 155. With a JPEG at quality 92, about 72% of the pixels differed after four clicks, by at most 10 levels out of 255, and it stayed at that level through twelve clicks. The picture looks the same, but the file is a few percent larger.

Does the tool use the rotation tag my phone saved?

It uses the picture as your browser displays it. A test file stored sideways with orientation tag 6 appeared as 300 × 400 and stayed that way, and the saved result has the turn applied to its pixels and no tag. If your photo looks upright here, it will look upright elsewhere.

Why is my rotated JPEG a little bigger than the original?

Each click encodes the picture again at quality 92, and the new file is not tuned to the old one. A 305,762-byte test JPEG became 312,230 bytes after one click and about 314,000 after twelve. PNG output stays within about 1 KB of the starting size in a lossless test.

Will it look right in every app afterwards?

Yes, in the sense that the pixels themselves are turned and no orientation flag is written. Software that ignores rotation flags will show the same picture as everyone else.

Related Tools