# Flip image: horizontal versus vertical mirroring

> Mirror left/right or top/bottom, check pixel examples and choose an output format.

- Tool: [Flip Image](https://toolsg.com/en/flip-image)
- Language: en (available: en, zh, ms, ta)
- Last verified against official sources: 2026-10-19
- Source site: ToolSG — a planning guide, not official or financial advice. Cite the agencies listed under Sources.

## Key figures at a glance

| Fact | Value | Source |
| --- | --- | --- |
| Default direction | Horizontal — Horizontal swaps left and right; vertical swaps top and bottom. |  |
| Default output | PNG — The fresh page offers PNG, JPEG and WebP. |  |
| Default quality | 92 — Used by JPEG/WebP encoding; PNG ignores this quality setting. |  |
| Canvas area cap | 16,777,216 pixels — Large sources are reduced before processing; large resampling targets are capped too. |  |

## What this tool changes

Flipping mirrors the displayed pixels. It is different from rotating the picture. A horizontal flip swaps left and right, including any text in the image; a vertical flip swaps top and bottom. Width and height stay the same after the working image has been decoded and capped.

Every option change is applied to the loaded source, not to the last preview. Switching from horizontal to vertical selects a vertical flip of the original; it does not stack two flips. For a 180-degree turn use the rotation tool.

## Worked examples

Read the test image as three rows: `AB / CD / EF`, two columns by three rows. Distinct colours in these six positions were checked in the downloaded PNG.

| Input or setting | Result |
| --- | --- |
| Horizontal | BA / DC / FE — 2 × 3 |
| Vertical | EF / CD / AB — 2 × 3 |

## Use the controls

1. Choose an image your browser can decode.
2. Select horizontal or vertical and check the intended side changes.
3. Choose PNG, JPEG or WebP and wait for the result size to update.
4. Download and inspect the file; keep the source for further edits.

## Output and limits

The tool decodes and processes one image locally in your browser without uploading it for conversion. Original camera, date, GPS and source colour-profile metadata are not copied. Animated input becomes a still image. Unsupported input depends on the browser's decoder.

PNG stores the resulting canvas pixels losslessly and keeps alpha. JPEG adds lossy encoding and composites transparent areas onto white. WebP normally keeps alpha with lossy colour encoding at the default quality. If WebP encoding is unsupported, the tool reports a PNG fallback and names the download .png. The preview is made before JPEG/WebP compression: inspect the downloaded file for compression artefacts.

Check the result dimensions, especially for large images. The source can be reduced to the 16,777,216-pixel area cap before the operation; a larger resampled result is capped again. The actual sizing function maps 8000 × 6000 to 4729 × 3547. A larger file or pixel count does not restore detail already lost.

For other changes, download the result and load it into the next tool; these pages do not maintain a combined edit history. Use [the image converter](https://toolsg.com/en/image-converter) for a different output format.

## Frequently asked questions

**Is my image uploaded anywhere?**

No. The image is decoded and re-encoded entirely in your browser using a canvas. It never leaves your device, is never sent to a server, and nothing is stored.

**Will the quality drop?**

PNG keeps every pixel. BMP also keeps every pixel but flattens transparency onto white. WebP and JPEG are lossy at the default quality of 92, so the quality setting trades file size against fidelity. Decoding an already-lossy JPEG or WebP never brings back lost detail.

**Why did my photo come out the right way up?**

Photographs from phones store an EXIF orientation tag rather than rotating the pixels. This tool reads that tag and applies the rotation, so the result matches what you saw in your gallery.

**Is there a size limit?**

Very large images are scaled down to stay within 16,777,216 pixels (about 16.7 million), because some browsers, notably iOS Safari, produce a blank image beyond that. The tool applies the cap in every browser and does not warn you. The aspect ratio is kept.


## Sources

- [WHATWG — HTML canvas transformations, drawing and serialization](https://html.spec.whatwg.org/multipage/canvas.html)
- [W3C — PNG specification, third edition](https://www.w3.org/TR/png-3/)
- [Google — WebP compression and alpha](https://developers.google.com/speed/webp/docs/compression)
