How to Flip or Mirror an Image: What Is Lossless, What Isn't, and What Happens to EXIF
Flip, mirror and rotate are three different operations. Here is how to flip an image online without uploading it, what a flip costs in quality (nothing in PNG, a little in JPG), and what mirrored EXIF tags do.

Someone sends you a selfie and the shop sign behind them reads backwards. Or a logo is facing the wrong way on a banner. Fixing it takes one click in the rotate tool, but the words people use for this ("flip", "mirror", "rotate") don't mean the same thing, and the details of what the file goes through are worth knowing. We measured them in a browser.
Flip, mirror and rotate are different things
- Flip horizontal swaps left and right. The picture is reflected across a vertical line down the middle. Most people call this mirroring, and the rotate tool labels the button "Mirror image".
- Flip vertical swaps top and bottom, like looking at the picture's reflection in a lake.
- Rotate turns the picture around its centre. Nothing is reflected, so text stays readable, just tilted.
The test is text. If letters still read correctly after the change, it was a rotation. If they read backwards, it was a flip. "Flip an image without flipping the text" has no real answer for a single picture, because the text is part of the pixels. You can only flip the photo before the text is added, or flip only the part of the image that has no writing.
Two flips can cancel each other, and two of different kinds equal a rotation. We cover that below.
Horizontal or vertical?
- Horizontal is the one you want almost every time: un-mirroring a selfie, turning a product to face the other way in a layout, making a person look toward the text on a page.
- Vertical is rare. Use it for a picture that is upside down and mirrored (see the EXIF section), or for a reflection effect.
- If a picture is simply upside down and the text is readable when you turn your head, that's a 180° rotation. Use the rotate buttons, not a flip.
Why selfies come out mirrored
A front camera acts like a mirror on purpose. The preview shows you reversed, because people find that natural when framing themselves. Many phones then save one of two versions:
- The mirrored preview, so the saved selfie matches what you saw. Text in the background is backwards.
- The true image, so the saved selfie matches what other people see. Text reads correctly, but your parting looks like it moved to the other side compared with the preview.
Some phones let you choose in the camera settings, and some apps do the opposite of the phone. If the result is the mirrored version, flip it horizontally when:
- the picture contains text: signs, book covers, whiteboards, shirts;
- it contains a logo or a known building;
- you're comparing it with other photos of the same scene, or posting it where the viewer will read the text.
Leave it mirrored if it's only a face and you prefer how you look in the mirrored version. That is the one you're used to seeing, and neither is more "right".
How to flip an image in your browser
- Open the rotate tool and add your image. It is loaded locally. Nothing is uploaded.
- Press Mirror image to flip left and right, or Vertical flip to flip top and bottom. The preview updates at once. The buttons show On or Off, and you can press both.
- Optionally use the turn-left and turn-right buttons or type an angle. The tool applies the flip together with any rotation.
- Choose the Output format. It starts with your file's own format if that is JPG, PNG or WebP, and with PNG for other formats.
- Press Download. The new file is saved on your device.
If the picture is also tilted by a few degrees, see how to straighten a crooked photo, which covers the crop that a small angle needs.
Does flipping lose quality?
It depends on the format you save to, not on the flip. A flip moves every pixel to a new position and blends nothing, so the pixels themselves are not changed. The loss, if any, comes from saving the file again.
We ran the rotate tool's own canvas code (the same flip transform with smoothing off for right angles, then the same export call) on a 600 × 400 photo in Chromium 159.
PNG: we flipped the photo horizontally, exported a PNG, loaded it, flipped it again and exported again. After one flip, mirrored back for comparison, and after two flips, the result was pixel-for-pixel identical to the original. The largest difference in any colour channel was 0 and the mean difference was 0. A PNG flip is lossless, and so is flipping again and again.
JPG: we encoded the photo as JPG at 0.92, the tool's quality setting, then flipped and re-saved at 0.92 twice:
| File size | Change from start | Mean channel difference from the starting JPG | Largest difference | PSNR | |
|---|---|---|---|---|---|
| Starting JPG | 79,266 bytes | ||||
| After 1 flip and save | 78,072 bytes | −1.5% | 1.07 | 21 | 43.2 dB |
| After 2 flips and saves | 77,799 bytes | −1.9% | 1.21 | 33 | 41.7 dB |
(Channel values run from 0 to 255; PSNR above about 40 dB is generally very hard to see.) Each save re-quantizes the image, so the pixels do change a little, even though the content is simply reversed. The cost of the second round is small, much smaller than the first JPG encode from the original PNG, which on its own was a mean difference of 2.7 and 36.2 dB. Our JPEG re-saving test measured how that adds up over many saves.
So: if you want a flip with no loss at all, save as PNG. If the photo is a JPG and you're going to upload it somewhere, one flip and one save at 0.92 is nothing you will notice. Flip it once, and from the original file, rather than flipping an already flipped copy.
Flip horizontal plus flip vertical is a 180° rotation
We checked this numerically. Flipping a photo both ways in the rotate tool and rotating the same photo by 180° gave identical pixels: a maximum difference of 0 across all 240,000 pixels. Compare that with a horizontal flip against a vertical flip of the same photo, which differ by an average of 70 levels per channel. They are completely different pictures.
This is useful in two ways. If a picture is upside down, you can fix it with the rotate buttons or with both flips and get the same file. And if you flip a photo and then spot that it is also upside down, you've created a mirrored version, not a rotated one. Turning it 180° won't fix the text. Reverse the vertical flip, or start again from the original.
Rotating a photo by 90° at a time is also lossless. We measured it in our sideways photo guide.
Mirrored EXIF orientation tags
Phones and cameras record how a photo should be displayed in an EXIF orientation tag. Values 1 to 8 cover every combination of rotation and mirroring. The mirrored ones are 2 (left-right), 4 (top-bottom), 5 and 7 (mirrored and turned 90°). Front cameras and some editing apps produce them. The sideways photo guide lists all eight.
We built a test JPG with each of the eight tag values, plus camera make and model tags, and ran each one through the rotate tool's path in Chromium 159:
- The browser applies the tag when it loads the image. For tags 5 to 8 the image loaded as 400 × 600 instead of the stored 600 × 400, and for tags 2 and 4 the drawn pixels were the mirrored picture. In all eight cases the pixels on the canvas matched the correctly transformed image exactly.
- The output is the picture as you see it. The saved JPG had the displayed dimensions, and no EXIF block: the orientation tag and the camera tags were all dropped, so nothing is left to apply a second time.
- Flipping a tag-2 file in the tool gives the stored, unmirrored pixels. That is what you'd expect: the tool mirrors the picture you see, which was already the mirrored version.
What this means in practice: if a program shows your picture mirrored because of tag 2, 4, 5 or 7, you don't need to do anything special. Open it in a browser tool and save, and the displayed orientation becomes permanent. Press flip only if the picture you see in the preview is still wrong. And if an old program shows an upload mirrored or sideways, saving it through the tool is the fix: the pixels are corrected and the tag is gone. For a general walkthrough of why uploads go sideways, read why photos show up sideways.
Quick answers
- How do I mirror a photo? Open the rotate tool, press Mirror image, download.
- How do I flip an image around so it faces the other way? Same: that is a horizontal flip.
- How do I flip an image without flipping the text? You can't, within the same picture. Flip the photo before adding the text, or cut out and flip only the part without writing.
- Does flipping change the file size? For a JPG at 0.92 it went down by 1.5%. For PNG, size depends on the content.
- Is it private? The flip runs in your browser. Nothing is uploaded.
Method
All numbers come from the rotate tool's canvas code (translate, transform, scale and drawImage, then toBlob at 0.92 for JPG) copied into scripts/guide-research/flip.cjs and run in Chromium 159.0.8154.6 under Playwright. Pixels were compared in the page with getImageData, using the maximum and mean absolute difference over the red, green and blue channels and PSNR. The test photo was the CC0 coffee photo by Rachel Michetti (600 × 400). The EXIF files were that image encoded as JPG with an orientation, make and model tag inserted by the script. The sign in the figure was drawn on a canvas by the same script. Results are in out/flip-results.json.
Keep exploring
More from imgstools

Why Photos Show Up Sideways After You Upload Them (and How to Fix It for Good)
Read note
Straightening a tilted photo: how much each degree costs, and the exact crop to use
Read note