DevTools Logo

Image Rotate & Flip

Image Rotate & Flip

Rotate in lossless quarter turns, mirror, or straighten by any angle. EXIF orientation is handled once and transforms are baked into the export.

Runs in your browser

Transform stack

no image

Applied steps (click to remove)

No transforms applied yet.

Transformed preview

no preview

Load an image to rotate or flip it

Examples

Sideways phone photo

Input
JPEG with orientation 6 → load → export
Output
Upright PNG with no conflicting EXIF tag

The visible rotation is baked into pixels exactly once.

Scan straightening

Input
Angle −7.5° → white corner fill
Output
Expanded canvas with white wedges

No source pixels are cropped to keep the rectangular export.

Mirror reference art

Input
Flip horizontal → Rotate 90° CW
Output
Combined lossless transform

Both steps are re-orderable via their chips before export.

About this tool

The Image Rotate & Flip tool turns photos by 90° steps, mirrors them and straightens them by arbitrary angles, then bakes the result into the downloaded pixels. Quarter turns and flips are integer pixel remaps with no resampling, while angled straightening uses bilinear sampling and expands the canvas to the rotated bounding box.

EXIF orientation is applied once by the browser decoder and shown as a badge; canvas re-encoding drops the stale tag so the file renders the same way everywhere. Transform steps stack and each chip can be removed individually, and angles within 0.05° of a quarter turn snap to the lossless path instead of adding a pointless resample.

Choose transparent, white, black or gray corner fill for angled rotations, preview at the working size and export at full resolution as PNG or JPEG. JPEG output warns that transparency is flattened. Everything happens locally — no image is uploaded.

What this tool does not do

  • Angled rotation resamples pixels; PNG preserves it better than JPEG.
  • Canvas re-encoding drops all metadata, including GPS and camera tags.
  • Inputs above 64 MP are rejected with a downscale suggestion.
  • Only the first frame of an animated image is transformed.

How to use this tool

  1. Load a photo

    Drop a PNG, JPEG or WebP. A badge reports any EXIF orientation the browser applied.

  2. Add transforms

    Click Rotate 90° CW/CCW, 180°, Flip horizontal or Flip vertical. Steps stack in the order you add them.

  3. Straighten optionally

    Set an angle from −45° to +45° and click Apply angle. The canvas expands automatically.

  4. Remove a step

    Click a transform chip to undo that step; Reset clears the whole stack.

  5. Export

    Download PNG to keep alpha, or JPEG for a smaller file with flattened corners.

Use cases

CMS asset prep

Normalize orientation so photos render identically in every viewer.

Document scans

Straighten skewed pages without clipping the corners.

Reference-art checks

Flip sprites and layouts to test symmetry or alternate compositions.

Transform paths

OperationPixel behavior
Rotate 90° / 180° / 270°Integer remap; width and height swap on quarter turns
Flip horizontal / verticalInteger remap across the vertical or horizontal axis
Arbitrary angleBilinear resample; bbox = ceil(|w·cosθ| + |h·sinθ|) by ceil(|w·sinθ| + |h·cosθ|)
Angle snapWithin 0.05° of a quarter turn becomes a lossless op
OutputPNG with alpha or JPEG at quality 0.92 with a flattened background

Transforms are recomputed from the decoded source on every change, so repeated edits never compound resampling or JPEG generation loss.

Frequently asked questions

Does rotating lose quality?

Quarter turns and flips do not resample: every source pixel is remapped to exactly one destination pixel. Angled straightening does require bilinear interpolation, so it is labeled as a resampling path. Exporting a JPEG recompresses once in either case; PNG keeps the transformed pixels exactly.

Why does my photo show sideways in some apps?

Cameras store an EXIF orientation tag instead of rotating the pixels. Viewers that honor the tag show the photo upright; others show the raw sensor orientation. This tool applies the tag once during decode and bakes the visible transform, so the export looks the same everywhere.

What happens to EXIF data on export?

Canvas re-encoding drops metadata, including the orientation tag and GPS/camera information. That is a privacy bonus: the exported file contains pixel data only, and the transform you see is final.

Does arbitrary-angle rotation degrade the image?

Some softening is inherent in resampling. The tool rotates at native resolution on export, uses high-quality interpolation and never repeatedly resamples intermediate steps — each preview and export recomputes from the decoded source.

Can I keep the original file?

Yes. Nothing is overwritten in place; the tool only downloads a new file. It also keeps the original name as a base and appends -transformed, so exports do not collide with your source.

What fills the corners when I straighten a photo?

Choose transparent, white, black or neutral gray. Transparent works with PNG output; JPEG cannot store alpha, so angled corners are flattened to white with a warning before export.