Image Rotate & Flip
Click or drag to upload image
Supports JPG / PNG / WEBP / GIF
Please select an image to start editing
Rotate images online in your browser at lossless 90/180/270° angles, or flip horizontally and vertically. Pixel-level geometric transformation preserves original quality — no recompression, no interpolation. Perfect for fixing sideways phone photos, scanned documents, and mirrored e-commerce product shots.
Related
What are image rotation and flipping?
Image rotation and flipping are two basic geometric transforms. Rotation repositions pixels around the image center by a chosen angle (90° / 180° / 270°) using a matrix remap; flipping mirrors the image across a horizontal or vertical axis, reversing the order of pixels in every row or column. Both leave image content untouched and only change the pixel arrangement.
**Why are 90/180/270° special?** At these three angles, source and destination pixel positions are both integers on the pixel matrix, so there is no sub-pixel offset and no interpolation is needed — the result is lossless. Arbitrary angles (such as 45°) require interpolation and cause edge blur.
**Relation to EXIF:** Phone cameras usually store orientation in the EXIF Orientation tag, which the OS uses to display the image rotated. But when the photo is sent to a computer or chat app, EXIF is often dropped, so the pixel matrix must be rearranged to fix the orientation. This tool performs pixel-level rearrangement, so it works in every scenario.
**Relation to CSS transform:** CSS transform only changes the visual display on the page; the downloaded image is still the original. This tool performs true pixel-level rearrangement and exports a new PNG, so the rotation persists when downloaded and can be used in PPT, Word, PDF, and anywhere else.
**Use cases for flipping:** Horizontal mirroring is common for product images (Amazon requires the main image to be the product itself, not the mirror, but many cross-border scenarios do need a mirrored version) and for fixing front-camera selfies. Vertical mirroring is used for reflections and symmetrical layouts.
Use Cases
- Use 90° / 270° rotation to quickly correct the orientation of sideways phone photos so they appear correctly when sent to a computer or chat app
- Apply a one-click 180° rotation to upside-down scans or PDF screenshots, avoiding the need to open a full image editor
- Restore orientation of the front side of pages from an ADF duplex scanner with a quick 180° rotation when pages come out upside down
- Create a mirror version of an e-commerce product image with a one-click horizontal flip instead of opening Photoshop to reverse it
- Reverse the front-camera selfie mirroring by horizontally flipping the photo to recover a natural orientation
- Pre-rotate and export an image before pasting it into a PowerPoint or Word document to avoid repeated reinsertion in different apps
How to Use
- Click the upload area to pick an image, or drag and drop a JPG/PNG/WEBP/GIF file into the area
- Click the 90° / 180° / 270° buttons to rotate, or use the left/right 90° shortcut buttons to accumulate rotation
- Click the horizontal or vertical flip button to mirror, either independently or combined
- Watch the right-side preview update in real time, comparing the original and output dimensions
- Click the download button to save the result as a PNG file (the filename is automatically suffixed with _rotate-flip)
Features
- Four-step angle rotation: 90°, 180°, 270° clockwise/counterclockwise with left/right turn shortcut buttons
- Horizontal and vertical flipping: apply independently or combined — combined is equivalent to 180° rotation
- Lossless pixel-level transform: directly rearranges the Canvas pixel matrix with no compression or interpolation
- Real-time preview: every parameter change is reflected immediately, with original vs. output dimensions side by side
- EXIF-compatible: keeps shooting time, device, and most other metadata while resetting the orientation tag to 1
- Local browser processing: all transforms run in Canvas — files never leave your device and are released when you close the tab
Best Practices
Phone photo orientation: use 90/270°, not arbitrary angles
Phone orientation errors are almost always multiples of 90°, and 90/270° rotation is a lossless pixel rearrangement with zero quality loss. Using an arbitrary-angle tool for fine-tuning will introduce interpolation blur and the result is not worth the effort.
Scan orientation: rotate 180° first, then decide if a horizontal flip is needed
ADF duplex scans often come out upside down (especially the back side of double-sided scans). Apply a 180° rotation first to fix the up-down orientation; if the text is also reversed left-to-right, add a horizontal flip. Both steps are lossless.
E-commerce product mirroring: check platform rules before flipping horizontally
Platforms like Amazon require the main image to be the product itself, not a mirror, but some scenarios (such as symmetrical assets) genuinely need a mirrored version. Always check platform policies before batch-processing to avoid listings being removed for accidental mirroring.
Avoid stacking arbitrary-angle rotations, otherwise interpolation compounds
If you first rotate 45° in another tool and then apply 90° here, the image will go through two interpolations (one 45° blur plus one 90° geometric operation). The best workflow is: original image → this tool 90/180/270° → consider further operations afterward.
PPT/Word figure orientation: export as PNG after rotation
Rotating an image inside PowerPoint or Word is only a visual change; copying to another document or exporting to PDF can reset the orientation. Rotate and download as PNG here first, then insert the PNG into your slides or document so the orientation is honored everywhere.
Front-camera selfie mirror fix: use horizontal flip
Front-camera selfies are mirrored by default (left-right reversed) and look unnatural when viewed on a computer. A single horizontal flip restores the natural orientation. Note that this only flips left and right, never up and down.
Strip shooting metadata: pair with an EXIF cleaning tool
This tool preserves most EXIF metadata (shooting time, device, possibly GPS coordinates). When sharing to public platforms, first use an EXIF removal tool to clean up sensitive fields, then perform the rotation or flip.
FAQ
How do I rotate an image 90 or 180 degrees online?
Upload your image and click the 90°, 180°, or 270° button to rotate it with one click — no parameters needed. Common cases include sideways phone photos, upside-down scans, and rotated PDF screenshots. This tool performs pixel-level rearrangement, so the rotation is recognized correctly by every viewer, unlike changing only the EXIF orientation tag.
What is the difference between horizontal and vertical flip?
A horizontal flip is a left-right mirror along the vertical axis — useful for reversing selfie mirroring, fixing front-camera shots, and creating symmetrical assets. A vertical flip is an up-down mirror along the horizontal axis — useful for making reflections and correcting inverted text. They are independent and can be stacked; combined they equal a 180° rotation.
Can I fix the orientation of phone photos?
Yes. Phone cameras often capture sideways photos based on gravity sensor readings, and the EXIF orientation tag is sometimes dropped when sending the file to a computer or chat app. The 90° / 270° rotation here directly rearranges pixels, so the photo displays correctly in browsers, office software, and social platforms — far more reliable than editing the EXIF tag.
Does rotating or flipping reduce image quality?
No. 90/180/270° rotation and horizontal/vertical flipping are exact integer geometric transforms on the pixel matrix, with no interpolation or resampling. The output pixels are identical to the input. Note that 90° / 270° rotations swap width and height, while 180° rotation and flipping preserve dimensions.
Can I combine multiple operations, such as rotate then flip?
Yes. Click buttons in sequence and all operations accumulate. For example, click 90° clockwise then horizontal flip to get a 90° + horizontal mirror combination; two consecutive 90° clicks equal one 180° rotation. Real-time preview shows the intermediate state at every step.
Why does this tool not support arbitrary angles like 45°?
Arbitrary angle rotation requires sub-pixel interpolation, which slightly blurs edge pixels. This tool focuses on the three lossless angles (90/180/270°), and together with horizontal/vertical flipping they cover the vast majority of real-world cases. Use a desktop editor like Photoshop or GIMP for arbitrary angles.
Are EXIF metadata preserved?
Pixel-level rotation and flipping keep most EXIF metadata (shooting time, device model, GPS, etc.) but reset the Orientation tag to its normal value (1), ensuring the new orientation is honored by every viewer. Use a dedicated EXIF removal tool if you need to strip private metadata such as GPS coordinates.
Are my images uploaded to a server? Is this tool safe?
No. All processing happens locally in your browser using the Canvas transform API. No file is ever uploaded; closing the tab releases the memory. Personal photos, contract scans, and sensitive ID images can be processed safely — privacy is fully local.
Glossary
- EXIF Orientation
- The orientation tag in the image metadata (values 1–8). 1 means normal, 6 means 90° clockwise, 8 means 90° counter-clockwise, 3 means 180°. Some software ignores this tag, which is why pixel-level rotation is more reliable.
- Pixel-level geometric transform
- A geometric operation that physically rearranges the pixel matrix — rotation, flipping, translation, scaling — as opposed to visual or CSS transforms (display changes without touching pixels). This tool performs pixel-level transforms, so the change persists in the downloaded file.
- Mirror flip
- Reflecting an image across a line (horizontal or vertical axis). Flipping across the horizontal axis is an up-down reversal; flipping across the vertical axis is a left-right mirror. The two combined are equivalent to a 180° rotation.
- Sub-pixel interpolation
- When rotating by an arbitrary angle, source pixels land at floating-point positions between output pixels. The output must be computed as a weighted average of neighboring pixels (bilinear, bicubic, Lanczos, etc.), which slightly blurs edges — something that is not needed for the integer 90/180/270° rotations.
- ADF (Automatic Document Feeder)
- The automatic paper feed unit on a printer or scanner. During duplex scanning, the front page may come out upside down, which a one-click 180° rotation in this tool can correct.
- Canvas transform matrix
- The coordinate transform methods exposed by the Canvas 2D context (translate, rotate, scale). This tool unifies rotation and flipping inside the transform matrix so there is no per-combination coordinate branch, keeping the code short and bug-free.
8 basic transformations at a glance
| Operation | Transform rule | Typical use |
|---|---|---|
| 90° clockwise | (x, y) → (h − 1 − y, x) | Phone landscape → portrait, scan orientation fix |
| 180° rotation | (x, y) → (w − 1 − x, h − 1 − y) | Up-down correction, flip over |
| 270° clockwise | (x, y) → (y, w − 1 − x) | Portrait → landscape, counterclockwise rotation |
| Horizontal flip | (x, y) → (w − 1 − x, y) | Left-right mirror, selfie fix, e-commerce mirror |
| Vertical flip | (x, y) → (x, h − 1 − y) | Up-down flip, reflection effect |
| Horizontal + vertical flip | Equivalent to 180° rotation | Complete reversal |
EXIF orientation tag — all 8 values
| Orientation value | Meaning | How to fix in this tool |
|---|---|---|
1 | Normal (0°) | No change needed |
2 | Horizontal flip | Click horizontal flip |
3 | 180° rotation | Click 180° rotation |
4 | Vertical flip | Click vertical flip |
5 | 90° CW + horizontal flip | Horizontal flip, then 90° CW |
6 | 90° clockwise | Click 90° rotation |
7 | 90° CW + vertical flip | Vertical flip, then 90° CW |
8 | 90° counter-clockwise (270° CW) | Click 270° rotation |
Authoritative References
- ReferenceEXIF Orientation — Wikipedia
- ReferenceMDN — Canvas transform
- ReferenceMDN — CSS transform
- Image Compressor
- Image Converter
- PNG to JPG
- HEIC to JPG
- WebP to JPG
- JPG to PNG
- JPG to WebP
- PNG to WebP
- WebP to PNG
- HEIC to PNG
- HEIC to WebP
- AVIF to JPG
- Image Cropper
- AVIF to PNG
- AVIF to WebP
- GIF to JPG
- GIF to PNG
- GIF to WebP
- SVG to JPG
- SVG to PNG
- SVG to WebP
- TIFF to JPG
- Image Filters
- TIFF to PNG
- TIFF to WebP
- ICO Generator
- Image Editor
- QR Code Scanner
- Image Resizer
- Image Rotate & Flip
- Round Image Corners
- CSS Sprite Generator
- SVG Viewer
- Image to ASCII Art
- Image Upscaler
- Image Watermark