Rotate & Flip Image
Rotate images clockwise or counter-clockwise, flip horizontally or vertically — all in real time inside your browser. Each transformation updates a live canvas preview so you can see the result before downloading. No upload required and your images stay completely private.
How It Works
Image rotation and flipping are geometric transformations that rearrange pixels without altering their colour values. This tool applies each transformation to a running state — so you can chain multiple operations (e.g., rotate 90° CW then flip horizontal) and see the cumulative result.
Rotating 90° clockwise maps the top row of pixels to the right column of the new canvas. Because the dimensions swap — a 1920 × 1080 landscape image becomes 1080 × 1920 portrait after a 90° rotation — the canvas is automatically resized to fit. Rotating 180° maps each pixel to its diagonally opposite position; dimensions stay the same.
Flipping horizontally mirrors the image left-to-right (like a mirror reflection). Flipping vertically mirrors it top-to-bottom. These are useful for correcting selfie camera images or creating symmetrical designs.
Under the hood, the tool uses the Canvas 2D context's `translate()` and `rotate()` / `scale()` methods. Before each draw operation, the transformation matrix is reset and recalculated to avoid floating-point drift from accumulated transforms.
Worked example: You photographed a whiteboard and the photo was saved in landscape orientation because of the EXIF rotation tag being ignored. Select your photo, click "Rotate 90° CW" once (or twice for 180°) until the whiteboard reads correctly, then click Download.
Worked example 2: You have a product photo that needs a mirrored version for a symmetrical layout. Load the image, click "Flip Horizontal", and download the mirrored copy in seconds.
Frequently Asked Questions
Does this tool upload my image?
No. All rotation and flipping happens inside your browser using the Canvas API. Nothing is sent to any server. You can use it fully offline.
Why does the canvas size change after rotating 90°?
A 90° or 270° rotation swaps width and height. A landscape 1920 × 1080 image becomes a portrait 1080 × 1920 canvas after rotating 90°. The tool handles this automatically to avoid cropping or black borders.
Can I undo a rotation?
Yes, indirectly. Rotating 90° CW three more times returns to the original orientation. Flipping horizontal twice also restores the original. There is no explicit undo button, but every action is reversible by applying the inverse.
What format is the downloaded image?
The download is always a PNG file, which is lossless. The rotation itself does not add compression artefacts. If you need JPEG or WebP, convert or compress using the Image Converter or Image Compressor tools.
Why is the output larger than the original?
The original may have been a JPEG (lossy). The output is PNG (lossless), which is inherently larger for photographic content. Use the Image Compressor tool if you need to reduce the file size after rotating.