Rotate Image
Rotate one image up to 50 MB by 90°, 180° or 270° clockwise, with an optional mirror. Processing stays in your browser. JPG, PNG, WebP and AVIF keep their format; other readable formats become PNG.
How to use
- Choose one image: Drop an image onto the box or click to pick it — JPG, PNG, WebP and AVIF come back in the same format. One image per run, up to 50 MB, and its pixel size appears next to the file name as Original size: 1200 × 800 px.
- Pick the rotation: Under Rotation, choose 90° clockwise, 180°, or 270° clockwise (90° counter-clockwise). It starts on 90° clockwise; choose 270° if the photo needs a quarter turn to the left.
- Add a mirror if you need one: Under Mirror, leave No mirror, or choose Mirror horizontally for a left-right reflection or Mirror vertically for a top-bottom one. The mirror is applied after the rotation.
- Rotate and save: Click Rotate image. The line above the preview reads Rotated 90°: 1200 × 800 px → 800 × 1200 px, so you can check the result before you press Download — on a phone the button says Save to device and opens the share sheet when your browser offers one.
How to rotate an image in your browser
Rotate image files in your browser: one image of up to 50 MB, turned a quarter, a half or three quarters of the way round, with an optional mirror. JPG, PNG, WebP and AVIF keep their format; other readable formats are saved as PNG. Nothing is resized or cropped, so a 1200 × 800 photo turned 90° comes back as 800 × 1200 with every pixel still in it — no white bars, no trimmed corners.
Nothing is uploaded. The engine is libvips compiled to WebAssembly (wasm-vips 0.0.18), downloaded with the page and run by your own browser; the file is read straight off your disk into memory and the finished image is handed back as a local link. There is no server step at any point. The browser isolation that engine needs also blocks third-party scripts, which is why this page carries no ads and no analytics. The result exists only in the open tab: close or refresh the page and the download link is gone, and the tool keeps no history and does not remember the angle you last used.
The limits are one image at a time — the drop box disappears once a file is loaded, so swapping images means removing the current one with its ✕ button first, and dropping several files at once adds none of them and tells you how many were refused — 50 MB per file, and about 100 megapixels (roughly 10000 × 10000), above which the image is refused at the decoding stage. Only image files are accepted; anything else is filtered out at the drop box. The turn itself runs on the page's main thread, so a very large photo can make the page sit still for a moment while the button reads Rotating… and stays disabled.
Pages in a document rather than a photo? Rotate PDF turns PDF pages instead.
90°, 180°, 270° — and what the mirror actually does
Photo lies on its left side (needs turning right) → 90° clockwise Photo is upside down → 180° Photo lies on its right side (needs turning left) → 270° clockwise (90° counter-clockwise) Left-right mirror with no net turn → 180° + Mirror vertically Top-bottom mirror with no net turn → 180° + Mirror horizontally
90° is clockwise — the picture turns to the right. In the test image used to pin this down, a 64 × 48 file with a solid red stripe down its left edge, the 90° result is 48 × 64 with that stripe running along the top, which is where the left edge ends up after a turn to the right. The 270° button is the same quarter turn the other way and puts the stripe along the bottom, so 270° clockwise and 90° counter-clockwise are two names for one button.
A quarter turn swaps the two sides: 1200 × 800 becomes 800 × 1200 at 90° and at 270°. A half turn leaves them alone — 800 × 600 is still 800 × 600 after 180°, and two 90° turns in a row land back on 800 × 600 as well. The line above the result spells this out with the real numbers that came back, rather than the ones it expects, so what you read is what you are about to download.
Rotating and mirroring are different operations, and the difference shows up in text: after any rotation, writing in the picture is still readable, just sideways; after a mirror it reads backwards. Mirror horizontally reflects left to right, which is what undoes the reversed look of a front-camera selfie; Mirror vertically reflects top to bottom. Neither changes the width or the height.
The mirror is applied after the rotation, as the hint under the buttons says — the picture is turned first, then flipped. With 180° and Mirror horizontally, the red stripe returns to the left edge; reversing these two operations gives the same result. With 90° or 270°, changing the order can change the result. There is no 0° option, so an angle is always applied; if you want a plain mirror with no net turn, use 180° with Mirror vertically for a left-right reflection, or 180° with Mirror horizontally for a top-bottom one. A half turn is itself a horizontal and a vertical flip at once, so the mirror you add cancels one of them and only the other survives.
Why the rotated file usually comes out bigger
Fixed encoder settings for the result: JPG quality 92 · WebP quality 92 · AVIF quality 72 · PNG lossless, compression 9 Measured with wasm-vips 0.0.18 under Node 22 on the image-core test fixtures. File sizes, not browser timings. photo.jpg 1200 × 800, 541,541 B → 90° → 800 × 1200, 711,961 B (+31.5%) photo.jpg 1200 × 800, 541,541 B → 180° → 1200 × 800, 717,842 B (+32.6%) photo.png 800 × 600, 214,657 B → 90° → 600 × 800, 694,159 B (+223%) photo.webp 800 × 600, 194,060 B → 90° → 600 × 800, 186,442 B (−3.9%)
The rotated file can be larger or smaller because it is re-encoded with fixed settings. In our Node 22 tests with wasm-vips 0.0.18, the JPEG grew 31.5%, the PNG grew 223%, and the WebP shrank 3.9%. The reason is the write, not the turn: the result goes back through the encoder at the settings listed above instead of keeping whatever compression strength your file was saved at. The PNG in that table had already been through an optimiser, so rewriting it as an ordinary PNG tripled it.
The turn is still lossless in the geometric sense, and that part is worth separating from the file size. Rotations by multiples of 90 degrees move whole pixels to new whole-pixel positions: nothing is scaled, resampled or interpolated, so no edge is softened and no colour is invented. What changes is the container around those pixels. For a JPG, a WebP or an AVIF the bytes go back through a lossy encoder, so this is not a byte-for-byte lossless rotation of the kind a dedicated JPEG block-shuffler performs. Rotate from the original each time rather than re-rotating a result, so the encodes do not stack. Only PNG output is a genuinely lossless rewrite.
If the size increase is a problem — an upload form with a cap, an email attachment, a portal that rejects anything above a stated limit — rotate first and compress second, and compress the rotated file rather than the original so the turn survives.
Need the rotated image under a specific KB limit? Use Compress Image to Size after rotating.
Why a phone photo can look turned twice
This tool rotates the pixels as they are stored in the file and leaves the EXIF orientation tag exactly as it found it. Many cameras and phones save a photo in whatever way the sensor read it and add that tag to tell viewers how far to turn it on screen. When such a file goes through here, the stored picture moves and the instruction stays, so a viewer that honours the tag applies its own quarter turn on top of yours and the photo looks as if it had moved 180°. The test file that pins this down carries an orientation value of 6 before the rotation and still reports 6 afterwards.
The page flags it rather than guessing for you: when the result still carries an orientation tag, a note under the preview says the image carries a capture-orientation tag, that a gallery or phone may turn it once more on top of this, and that you should check the direction in the preview above. The preview displays the output file in your browser, which may also apply its EXIF orientation tag. It is not a view of the stored pixels with the tag ignored. If another viewer shows a different direction, normalize the orientation with Compress Image → Photo info (EXIF) → Remove all, then check the saved result.
To settle orientation for good, bake it into the picture and drop the tag. Compress Image does that under Photo info (EXIF) → Remove all: it writes the photo's orientation into the pixels first and then removes the metadata, so every viewer sees the same thing. That option also swaps width and height for a portrait shot, which is the point of it.
Use Compress Image with Photo info (EXIF) set to Remove all when a photo keeps coming out sideways somewhere else.
What is kept, what is dropped, and what this tool will not do
Kept: the whole picture and its pixel count — quarter turns swap the two sides, a half turn keeps them — and, for JPG, PNG, WebP and AVIF, the file format, so a JPG comes back a JPG and a PNG a PNG. Also kept, and this one surprises people: the EXIF block, including the GPS coordinates, the capture time and the camera or phone model, plus any XMP. Rotating is not a privacy step. The test photo still gives up its GPS position, a capture time of 2026-05-01 10:20:30 and a device of Apple iPhone 15 Pro after a 90° turn. Strip that with Compress Image's Remove location or Remove all before you publish a photo.
Dropped: the original bytes and the compression strength they were written at, which is the size story above. Containers other than JPG, PNG, WebP and AVIF are also dropped — a TIFF, GIF, BMP, ICO or HEIC file is identified by its header, and when that header is not one of the four the result is saved as PNG, with a note under the preview saying so. Animation does not survive either: a GIF or an animated WebP comes back as a single still image, because this path reads and writes one frame.
What it will not do: any angle other than 90, 180 and 270. There is no slider and no degree box, so it cannot straighten a crooked horizon by a few degrees, and it cannot turn just part of a picture. There is no automatic detect-and-fix-orientation step — you choose the angle and judge it from the preview. It handles one file per run rather than a folder, offers no output-format choice, and does not touch PDFs.
Need a part of the picture rather than a different orientation? Crop Image cuts a rectangle out to exact pixels.
Frequently asked questions
- How do I rotate an image 90 degrees clockwise?
- Choose one image, leave Rotation on 90° clockwise, keep No mirror selected, and click Rotate image. A 1200 × 800 px image becomes 800 × 1200 px. Save the result before closing the tab.
- Does rotating an image reduce its quality?
- The turn itself does not: 90°, 180° and 270° move whole pixels, with no scaling, resampling or interpolation. The file is still written again afterwards, and for JPG and WebP that write is a lossy encode at quality 92 (AVIF at 72), so it is not a byte-for-byte lossless rotation. PNG output is rewritten losslessly.
- Why is my rotated image bigger than the original?
- Because the result is re-encoded with fixed settings instead of your file's original compression strength — JPG and WebP at quality 92, PNG at maximum compression. A 541,541 B test JPEG came back at 711,961 B after a 90° turn (+31.5%), and an already-optimised 214,657 B PNG tripled to 694,159 B. Run the rotated file through Compress Image to bring it back down.
- I rotated my photo but my gallery still shows it sideways. Why?
- Your photo carries an EXIF orientation tag, which this tool keeps as it is. The stored pixels were turned, and a viewer that honours the tag then turns the picture again on top of that, so it can look like a 180° move. The page warns you under the result when that tag is present. To fix it permanently, use Compress Image with Photo info (EXIF) set to Remove all, which writes the orientation into the pixels and removes the tag.
- What is the difference between rotating and mirroring an image?
- A rotation pivots the whole picture, so text in it stays readable, just sideways. A mirror reflects it, so text reads backwards — Mirror horizontally reflects left to right, which undoes a reversed selfie, and Mirror vertically reflects top to bottom. Mirroring never changes the width or the height.
- Can I mirror an image without rotating it?
- Yes, by combining the two: choose 180° with Mirror vertically for a plain left-right mirror, or 180° with Mirror horizontally for a plain top-bottom one. A half turn is a horizontal and a vertical flip at once, so the mirror you add cancels one of them. There is no 0° button, so some angle is always applied.
- Can I rotate an image by a custom angle, like 5°, to straighten it?
- No. The only options are 90°, 180° and 270° clockwise — there is no slider, no degree field and no auto-straighten, so a tilted horizon cannot be levelled here. Quarter turns are what keep the rotation free of resampling.
- Can I rotate several images at once?
- No, it is one image per run. While an image is loaded there is no drop box, so remove it with the ✕ button next to the file name before you pick the next one, and a drop of several files at once is refused as a whole — none of them is added. Rotate them one after another, or use a desktop image manager for a whole folder.
- Does rotating remove the GPS location from my photo?
- No. The EXIF block travels into the result untouched, so the coordinates, the capture time and the camera model are all still there — a rotated test photo still reported its GPS position, a capture time of 2026-05-01 10:20:30 and an Apple iPhone 15 Pro. Use Compress Image's Remove location or Remove all to strip it.
- Is my image uploaded to a server?
- No. The rotation engine (libvips compiled to WebAssembly) is downloaded with the page and runs in your browser, and the file never leaves your device. Nothing is stored either: closing or refreshing the tab discards the result.