Rotate or flip an image
Turn images in quarter steps and mirror them, one at a time or a folder at once.
Rotating re-encodes the image, so the quality control matters. It defaults high because a rotation is usually not the moment to also compress.
Drop JPG, PNG, WebP, HEIC, AVIF, GIF, BMP files here or paste from the clipboard.
Your files are processed on this device. Nothing is uploaded.
The sideways photo problem
Almost every "my photo is rotated wrong" case isn’t about the pixels at all. It is the EXIF orientation flag: a number stored alongside the image saying which way up it should be displayed. Phones write it because the sensor captures in a fixed orientation regardless of how the phone was held.
The result is that the same file looks correct in one program and sideways in another, depending on whether that program reads the flag. This tool reads it, so the image you see here is the image as it is meant to appear and any rotation you apply is on top of that rather than fighting it.
It also means that if a photo looks correct here but sideways somewhere else, the fix is to rotate the actual pixels, which is what this page does. After that there is no flag left to disagree about.
When to reach for a desktop tool instead
If the file is an original you intend to keep and you’re turning it purely to correct an orientation, a lossless JPEG rotator is the better choice, because it rearranges the existing compressed data rather than decoding and re-compressing. The quality difference from a single pass here is very small, but it isn’t zero and on an original it is worth avoiding for free.
For a photo that is about to be uploaded, resized or compressed anyway, this is fine: that pass was going to happen regardless.
Common questions
Is rotating lossless?
Not here. A quarter turn of a JPEG can in principle be done losslessly by rearranging the compressed blocks, which is what the desktop tool jpegtran does, but that isn’t something a browser canvas can express. This decodes and re-encodes, so one rotation costs a small amount of quality. For an archival original, use a desktop tool; for everything else the difference is invisible.
Why is my photo sideways in one app and upright in another?
Because of the EXIF orientation flag. The camera captured the image in one orientation and wrote a tag saying how to turn it for display. Software that honours the tag shows it upright and software that ignores it doesn’t, even though the pixels are identical. This tool applies the flag when it reads the file, so what you see is what everyone else sees.
Can I rotate a whole folder at once?
Yes. Drop as many files as you like, they’re all turned the same way and the results come back as a single zip. This is the common case for a batch of photos taken with the camera held the wrong way round.
What is the difference between rotating and mirroring?
Rotating turns the image around its centre and leaves the content the same way round. Mirroring flips it, so text reads backwards and anything asymmetric is reversed. Mirroring is what you want for a selfie that came out reversed and what you don’t want for anything containing text.
Does rotating change the file size?
Slightly and sometimes in the direction you wouldn’t expect, because compression works on blocks of pixels and turning the image changes which details sit next to each other. A quarter turn of a photograph typically lands within a few percent of where it started.
Guides
The other tools
All of them work the same way: the file is read in your browser and never uploaded.