Rotate a JPG Without Losing Quality

5 min read · Updated · Last checked:

On this page
  1. What the Orientation flag is
  2. Why the usual way costs a little quality
  3. What Lossless does in Imgovo
  4. Step by step
  5. Lossless or the usual way
  6. Common mistakes
  7. What Imgovo cannot do
  8. Privacy
  9. Try it now

Short answer: In Rotate & Flip Image, add a JPG, turn it and tick Lossless (JPEG only). Imgovo then changes only the rotation flag in the file and copies the picture data unchanged, so nothing is compressed again. Some older programs and some upload forms ignore that flag; for them, untick the option and turn the photo the usual way.

What the Orientation flag is

A phone does not turn the pixels when you hold it sideways. It stores them as the sensor delivered them and adds a small note to the file, the EXIF Orientation, that says how to show them. Current browsers, phones and photo apps follow the note, so the picture looks right. The flag has eight values:

Value What a program must do to show the picture upright
1 Nothing (normal)
2 Mirror left to right
3 Turn 180°
4 Mirror top to bottom
5 Mirror along the top-left to bottom-right diagonal
6 Turn 90° clockwise
7 Mirror along the other diagonal
8 Turn 90° counter-clockwise

Cameras mostly write 1, 3, 6 and 8. The mirrored values 2, 4, 5 and 7 are rare. To see why a photo looks sideways in one place and fine in another, read Photo Sideways or Upside Down? Why and How to Fix It.

Why the usual way costs a little quality

A JPG is saved with lossy compression. To turn it the usual way, a program decodes it into pixels, moves them and compresses the result into a new JPG. Each new save rounds the colors and brightness a little again, and the errors add up when the same file is turned and saved several times. Imgovo moves the pixels exactly, with no blur, and saves the result as JPG or WebP at 95% quality, which is practically invisible in one pass. It is not exactly the same data, and the file size changes.

What Lossless does in Imgovo

When you tick Lossless (JPEG only), Imgovo does not decode the picture. It writes the new Orientation value and copies everything from the start of the picture data to the end of the file byte for byte. The result line says “no re-encoding” and the Output format is set to JPG.

The limit is honest: this sets the flag. It does not rearrange the picture’s blocks, which is what a pixel-level lossless turn does. Browsers, phones and current photo apps follow the flag; some older programs and some upload forms ignore it, and the picture stays sideways there.

Step by step

  1. Open Rotate & Flip Image and add a JPG. The Lossless option appears only for JPEG files.
  2. Click Rotate left 90°, Rotate right 90°, Flip horizontal or Flip vertical until the preview is right (basics: How to Crop, Rotate and Flip a Photo Online (Exact Ratios and Pixel Sizes)). Reset starts again.
  3. Tick Lossless (JPEG only).
  4. Decide about Remove hidden data: location, camera, comments, thumbnails (still lossless). It is ticked by default: it removes EXIF, XMP, IPTC, comments and embedded thumbnails, and keeps the colour profile. Untick it to keep the other information, for example a photographer’s copyright (to remove it for good, see How to Remove GPS Location and EXIF Data from Photos Before Sharing). If you untick it and the file contains a location, the note says so.
  5. Click Download image.

For many photos, open the Batch Photo Editor, choose Turn every photo and tick Lossless (JPEG only). It works only when turning is the only step; the note under the field tells you when it is off. In Batch, the hidden data is always removed from JPEG files.

Lossless or the usual way

Lossless (JPEG only) The usual way
Picture data Unchanged, byte for byte Moved exactly, then saved again
Quality No new loss JPG and WebP at 95%, PNG without loss
File size About the same, a little less if hidden data is removed Can be bigger or smaller
Hidden data Removed by default, optional A new file is made from the pixels
Compatibility Needs a program that follows the flag Looks right everywhere
Formats JPEG only JPG, PNG, WebP

Common mistakes

  • Using Lossless for a form that ignores the flag. If the photo is still sideways there, turn it the usual way.
  • Turning the same JPG again and again the usual way. Do it once from the original, or use Lossless.
  • Expecting Lossless with a crop. Cropping, resizing, effects or a watermark need a new picture, so Imgovo saves the file again.
  • Unticking the hidden-data box by accident. Check the note under the option, especially if the file has a location.
  • Starting from a screenshot or a chat copy. Those files are not the camera’s JPG, and have usually been compressed already.

What Imgovo cannot do

  • It does not turn the picture’s blocks like a pixel-level lossless turn. It sets the flag.
  • It cannot make an older program follow the flag.
  • It rotates in 90° steps and flips. It has no free angle.

Privacy

Everything happens in your browser. Your photos are not uploaded.

Try it now

Open Rotate & Flip Image, add a JPG, turn it and tick Lossless (JPEG only).

Frequently asked questions

Does rotating a JPG lose quality?

Usually only a little. Imgovo moves the pixels exactly, but the turned picture is saved again as a new JPG at 95% quality, and every new save adds a small error. The Lossless option avoids that: it changes only a flag in the file and leaves the picture data as it is.

What exactly does the Lossless option change?

The EXIF Orientation flag, which tells programs how to show the picture. Everything from the start of the picture data to the end of the file is copied byte for byte. Nothing is decoded or compressed again.

Why does my photo still look sideways in some programs?

Some older programs and some upload forms ignore the Orientation flag. Turn the photo the usual way for them: untick Lossless and download the result.

Is the location removed when I use Lossless?

By default yes. The box Remove hidden data is ticked: location, camera details, comments and embedded thumbnails are removed and the colour profile stays. Untick it to keep the other information in the file.

Does Lossless work for PNG and WebP?

No, only for JPEG files. PNG is lossless anyway when you save it as PNG. For WebP the usual way is used.

Can I turn many photos without losing quality?

Yes, in the Batch Photo Editor, as long as rotating is the only step. As soon as you also crop, resize, add effects or a watermark, set a size limit or choose another format, every photo is saved again as usual.