Rotate Image
Why photos come out sideways
Most sideways photos are not actually sideways in their pixels — they carry an orientation flag (the EXIF orientation tag) that says "display me rotated 90 degrees", and not every program honours the flag. Phones shoot in whatever position the sensor sits and record how you were holding the device; well-behaved viewers rotate the display, but upload the same file to a website, a forum or an older editor and the pixels appear in their raw, lying-down form. Rotating here fixes it in the strongest way: the pixels themselves are rearranged into the upright position and saved as a new image, so the result displays correctly everywhere, flag or no flag. If the corrected file then travels, it travels right side up.
Rotation by exact quarter turns is a lossless rearrangement — every pixel moves, none are invented or blended. That is different from rotating by an arbitrary angle, which must resample and slightly soften the image (and leaves corners to fill or crop). This tool sticks to the quarter turns and the two flips, which between them cover every orientation a camera or scanner can produce: the eight combinations of rotation and mirroring are exactly the eight EXIF orientations.
Scanners have their own version of the problem: a page fed through a sheet feeder upside down, or a book scanned against the glass from the wrong side, produces the same family of errors, and the fix is the same — diagnose from the text. Backwards text means mirrored; upside-down text means 180 degrees or a double flip; sideways text means one quarter turn, with the direction decided by which way the top of the page points. Thirty seconds of looking beats three rounds of guessing.
Flips: the mirror questions
Flip horizontal mirrors the image left-to-right — the selfie correction. Front cameras preview you mirrored (as a mirror does) but save the photo unmirrored (as others see you), which is why saved selfies can look subtly "wrong" to their subject; flipping restores the version you recognise. Flip vertical turns the image upside down without rotating it — the fix for a scan fed through a document feeder the wrong way up, and the building block, combined with the rotations, for any orientation at all. Text is the tell: if text in the image reads backwards, the image is mirrored and needs a flip, not a rotation; if it reads upside down, it needs 180 degrees; if it reads correctly but sideways, a single quarter turn.
The download is a PNG at the image's full pixel dimensions — no resizing, no compression surprises. PNG is larger than JPEG for photographs, so if the rotated file is destined for a website and size matters, run it through the image compressor in this hub afterwards. The preview on this page is scaled to fit your screen; the file you download is not.
A worked example
A phone photo of a certificate, shot in portrait but displaying in landscape with the text running down the screen. Load it: the preview shows it lying on its side. The text reads bottom-to-top, which means the top of the certificate points left — one "Rotate right 90°" stands it up. If the text had read top-to-bottom, "Rotate left" would be the one. Download, and the saved PNG is the certificate upright, at the same pixel size as the original — ready to attach to the application that needed it, with no upload to any server in between.
Frequently asked questions
Why is my photo sideways in the first place?
Because the camera stored the pixels in the sensor's orientation and added an EXIF flag saying how to display them. Software that honours the flag shows the photo upright; software that ignores it shows the raw pixels, lying down. Rotating here rewrites the pixels themselves into the upright position and saves a fresh image without relying on the flag, so the result displays correctly in every program, including the one that showed it sideways.
Does rotating reduce the quality?
Quarter-turn rotations and flips are lossless rearrangements: every original pixel is moved, none are blended or invented. The only re-encoding is the save itself — this tool saves PNG, which is lossless, so the downloaded image carries exactly the pixels of the original, rearranged. Rotating by arbitrary angles would resample and soften, which is why this tool does not offer them.
What is the difference between rotate and flip?
Rotation turns the whole image around its centre: 90 degrees swaps width and height, 180 turns it upside down. A flip mirrors it: horizontal flip swaps left and right (text reads backwards afterwards — it is a mirror image), vertical flip swaps top and bottom. A sideways photo needs rotation; a mirrored selfie needs a horizontal flip; an upside-down scan needs either 180 degrees of rotation or a vertical plus horizontal flip — the result is the same.
Is my image uploaded to a server?
No. The image is read into your browser, drawn on a canvas on your device, and the download is generated locally. Nothing is sent anywhere, stored or logged — the tool works offline once the page has loaded, and closing the tab destroys the only working copy. That makes it safe for documents, certificates and personal photos, which are exactly the images that most often need rotating.
What size is the downloaded image?
The full original pixel dimensions, with width and height swapped after a 90 or 270-degree rotation, exactly as they should be. The on-page preview is scaled down to fit the screen, but the download is not. The format is PNG: for photographs the file may be larger than the original JPEG. If you need it smaller for a website or email, the image compressor in this hub will re-encode it afterwards.
Related tools
Built and checked on 24 November 2026. Everything runs in your browser — your images never leave your device.