6 min read

How to Flip an Image: Four Methods Compared

Four ways to mirror a photo — phone gallery, desktop editors, browser tools and the command line — with the trade-offs that actually matter.

ORIGINAL FLIPPED

Flipping an image means reversing its pixel order along one axis. A horizontal flip makes the left edge become the right edge; a vertical flip makes the top become the bottom. It is the simplest possible image operation — no resampling, no interpolation, no quality loss — and yet people reach for the wrong tool for it constantly.

Below are the four methods that actually work, in order from least to most control.

Method 1: the phone gallery

Both iOS Photos and Google Photos have a crop-and-rotate editor with a mirror button. On iOS you open a photo, tap Edit, tap the crop icon, then tap the mirror symbol at the top left. On Android the control is usually inside the crop screen as a flip icon.

This is the fastest route and preserves full resolution, but it saves a copy rather than editing in place, and it only works on photos that are already on the device. It also cannot handle a folder of images at once.

Method 2: desktop image editors

Photoshop, Affinity Photo, GIMP and Preview on macOS all expose a flip command. In Preview it is under Tools → Flip Horizontal. In GIMP it is Image → Transform → Flip Horizontally.

The advantage is precision: you can flip a selection rather than the whole canvas, and you can combine it with other edits in one session. The disadvantage is that launching a desktop editor to perform a one-second operation is a poor use of time, and GIMP in particular has a slow cold start.

Method 3: a browser tool

A browser-based flip tool does the same transformation in the same amount of time, without installing anything. The important distinction between tools in this category is whether the image is uploaded to a server or processed locally.

Server-based tools require you to send the full file before anything happens, which means a 20 MB photo waits on your upload speed, and the file exists on someone else's disk for some period of time. Tools built on the Canvas API — like the one on this site — read the file directly in the browser and never transmit it. For a passport scan or a signed contract, that difference is the whole point.

TYPICAL ONLINE TOOL upload, queue, download Your browser 4.1 MB photo upload result Their server decodes, then stores 3–15 s upload, queue, then a copy on their disk a copy exists TOOLPIX read, transform, save Your browser Canvas + your own CPU no network request under 1 s limited by your CPU, not by a connection 0 bytes sent
Where the file goes. The top row is a server-based converter: your photo leaves the device before any work starts. The bottom row is a browser tool that never opens a connection.Swipe the diagram sideways to read every label.

Method 4: the command line

If you need to flip a hundred images, a shell one-liner beats every GUI:

  • ImageMagick: magick input.jpg -flop output.jpg (horizontal) or -flip for vertical
  • macOS sips: sips -f horizontal input.jpg --out output.jpg
  • Python Pillow: Image.open(f).transpose(Image.FLIP_LEFT_RIGHT).save(out)

Which method should you use?

SituationBest method
One photo already on your phonePhone gallery
One photo on your computer, no installBrowser tool
Flip part of an image onlyDesktop editor
Dozens or hundreds of filesCommand line
File you would not upload anywhereLocal browser tool or desktop

Flip versus rotate

These get confused constantly. A flip is a mirror: the image is reflected across a line. A rotation turns the image around its centre point. Nothing about a 90-degree rotation produces a mirror image, and nothing about a flip moves the corners clockwise.

There is one equivalence worth remembering: flipping horizontally and then vertically produces exactly the same result as rotating 180 degrees. Every other combination is distinct.

In practice, the confusion shows up in selfies. A front-facing camera shows you a mirrored preview while you frame the shot, then saves the unmirrored version. That is why a photo sometimes looks "wrong" to the person in it — they are comparing it with the mirror they are used to. A horizontal flip restores it.

Original as capturedHorizontal left edge to the rightVertical top edge to the bottomBoth = 180° same as rotating 180 A horizontal flip plus a vertical flip produces exactly the pixels you get from rotating 180°.
Four results, one file. Only the horizontal panel reverses text. The fourth panel — horizontal plus vertical — is the one that matches a 180° rotation exactly.Swipe the diagram sideways to read every label.

What flipping does not do

It does not improve quality, remove a background, or change the file size in any meaningful way. If your goal is a smaller file, you want compression. If your goal is a clean document, you want thresholding. Flipping only reverses the image, and it is worth being clear about that before spending time on it.

Try it without uploading

Every tool on Toolpix runs in your browser. No file is sent anywhere.

Browse all tools