Your photo isn't sideways. Its orientation tag is.
Rotate a JPEG by rewriting the EXIF orientation tag instead of re-encoding the picture — the image data comes out byte-for-byte identical, so nothing is lost however many times you turn it. Nothing is uploaded.
Nothing is uploaded · runs 100% on your device
Awaiting frame · 0 files loaded
Drop a photo to rotate it
Rotation: JPG · viewing all formats
How to
How to rotate a photo without re-compressing it
Drop the JPEG in using the tool above.
Use Rotate left, Rotate right or Flip in the edit panel. The preview turns as you click, so you can see the result before committing to it.
Click Save edits. A rotated copy downloads. Only the orientation tag changed — the compressed image data is untouched.
Rotating four times returns you exactly where you started, with a file identical to the one you dropped in. That's the point: there's no generation loss to accumulate, because nothing is being re-encoded.
Orientation is one field among many. The EXIF viewer shows you the rest of what's in the file, and what is EXIF data? covers where all of it comes from.
The actual problem
There are two different things called "rotating an image"
Almost every photo that "comes out sideways" is not stored sideways by accident. Your phone was held at an angle, the sensor read the scene in its own fixed orientation, and rather than spending time re-encoding the picture the camera wrote a note: display this turned 90° to the right. That note is the EXIF orientation tag.
Rotating the tag changes the note. Instant, lossless, and it fixes the display in everything that reads the note.
Rotating the pixels physically rearranges the image. Slower, requires re-encoding a JPEG, and loses a little quality — but it works even in software that ignores the note entirely.
Ordinary "rotate image online" tools do the second, always, whether or not you needed it. This one does the first, which is the right answer for the common case and honest about when it isn't.
Diagnosis
Why one photo looks right in one app and wrong in another
If a photo displays correctly on your phone but sideways once you email it, upload it, or open it on a different computer, you're watching two pieces of software disagree about whether to read the orientation tag.
Modern browsers, phone galleries and operating-system previewers honour it. The things that commonly don't: older desktop programs, some content management systems, image-processing scripts, and upload pipelines that re-encode without carrying the tag across. None of them are wrong exactly — the tag is advisory, and the raw pixels really are sideways.
Uploads are the usual culprit, because re-encoding is also how platforms strip metadata — which apps strip EXIF data covers who does what. And iPhone photos hit this hardest: a vertical iPhone shot is a landscape file that depends entirely on the tag being read.
Quick diagnosis: drop the photo into the tool above and look at the Orientation field. If it says anything other than "Horizontal (normal)", the file depends on the tag and any software ignoring that tag will show it turned. If it says normal and the photo still looks wrong, the pixels genuinely are rotated and you need a pixel rotation, not this.
Limits
When rotating the tag won't help
Being straight about this, because a lossless fix that doesn't fix your problem is worse than no fix:
The destination ignores the tag. If you're uploading somewhere that strips or disregards EXIF, the tag can say anything and the picture still lands sideways. Use Bake into pixels for that: it turns the picture itself and clears the tag, so it lands the right way up everywhere. That one does re-encode the JPEG — it is the trade you make to stop depending on a tag.
The file isn't a JPEG. Rotation here is JPEG-only, because the library that writes EXIF handles JPEG only. PNG and WebP rarely carry an orientation tag in the first place, so rotating those genuinely means rotating pixels.
The pixels are actually rotated. If the orientation reads normal and the photo still looks wrong, the tag was already applied and baked in at some point. Rewriting it will only make things worse.
Worth knowing
Stripping metadata can turn a photo sideways
This catches people out, including on this site, so it's worth stating plainly: the orientation tag is metadata. Remove all of a photo's metadata and the tag goes with the GPS coordinates and the camera model.
For a photo that was relying on that tag to display upright, the cleaned copy will show the raw sideways pixels. The picture is unharmed — the instruction to turn it is simply gone.
Two ways round it. When a photo depends on its orientation tag the tool now says so, and offers “Keep the orientation tag when cleaning” — tick it and everything else still goes, but the one number describing which way up to draw the picture stays. It carries nothing about your camera, the time or the place. Or use Remove GPS only, which deletes the coordinates and leaves the rest of the metadata alone.
If you want a file that depends on no tag at all, rotate the pixels in an editor first and then strip it — that survives software which ignores EXIF entirely.
The EXIF orientation tag says to turn it and the software showing it is ignoring that instruction.
Can I rotate a photo without losing quality?
Yes — rotating the tag rather than the pixels means no decode and no re-encode, so the image data is byte-for-byte identical.
When doesn't the tag fix work?
When the destination software ignores the tag. Use Bake into pixels, which turns the picture itself and clears the tag — at the cost of re-encoding the JPEG.
Can I rotate a PNG, WebP or HEIC here?
PNG and WebP can be turned with Bake into pixels — and PNG re-encoding is lossless, so nothing is lost. Tag rotation stays JPEG-only. HEIC can't be rotated here at all, because browsers can't decode it.
Why did my photo turn sideways after removing its metadata?
Because the orientation tag is metadata and went with everything else. Tick Keep the orientation tag when cleaning — everything else is still removed — or use Remove GPS only.
Is the rotation really lossless?
Yes. Rotate four times and you get the original file back byte for byte — there is nothing to accumulate.