← Back to Home

🔄 Rotate & Flip Image

Straighten a tilted shot, mirror a selfie or turn a scan by any angle — with clean corners.

How to rotate or flip an image in three steps

The screenshot below was taken in this tool with a real file and the stated settings — it is not a mock-up.

  1. Upload the photoThe tool shows the current orientation and pixel size.
  2. Rotate or flipThis run applies a 90° clockwise rotation with a white fill.
  3. Apply and downloadPress “Apply rotation”; the canvas becomes 600 × 900 and the empty area is filled white.
Rotate result: the 900 by 600 illustration turned portrait, with white filling the new canvas.
Captured: Input: specimen-alpha-900x600.png (900 × 600 PNG). Settings: rotate 90°, fill white. Output: PNG, 600 × 900.
📁
Click or drag an image here
PNG · JPG · WebP · GIF · BMP · SVG · AVIF · ICO · HEIC / HEIF

Original

Original

Rotated result

Result
Quick actions
No rotation applied yet
0°

How to use this tool

  1. Upload your image: photos taken on a phone, scans and screenshots all work.
  2. Use quick buttons for 90° / 180° turns or a horizontal / vertical flip; stack them if needed.
  3. Fine-tune with the free-angle slider (-180° to 180°) and choose what fills the new corners.
  4. Apply and download the PNG. Transparent corners stay transparent.

Note: All processing happens in your browser: images are never uploaded. Download the result before closing the page.

How it works

A 90° turn simply moves pixels to new coordinates, so it is lossless. A free-angle rotation re-samples the image: the canvas is enlarged to the rotated bounding box, the image is drawn through a rotation transform, and the new corners are filled with the colour you picked.

Flipping is a negative scale on one axis. Both operations run on an off-screen canvas with high-quality smoothing, and the result is exported as PNG so transparency is preserved.

Common use cases

Straighten a scanA page photographed at a slight tilt reads better after a 1–3° correction.
Mirror a selfieUndo the front-camera mirror so text in the background reads correctly.
Prepare product shotsTurn a landscape packshot into a portrait canvas for a listing.

Frequently asked questions

Is a 90° rotation lossless?
Yes for 90° and 180°: no interpolation is involved, pixels are just relocated. Any other angle resamples the image.
Why are there empty triangles after rotating?
A rotated rectangle no longer fills its axis-aligned bounding box. Choose a fill colour, or keep it transparent and export PNG.
Can I rotate a JPG and keep transparency?
JPG has no alpha channel. If you need transparent corners, download as PNG (the default here).
Are my photos uploaded?
No. Rotation and flipping are Canvas operations inside your browser; the file never leaves your device.

Two kinds of rotation, and only one of them invents pixels

A quarter turn — 90°, 180°, 270° — moves whole pixels. No new values are calculated, so the image is unchanged apart from its orientation. Any other angle forces the renderer to resample: every output pixel is computed from a neighbourhood of input pixels, which softens fine detail very slightly. The effect is invisible after one rotation and cumulative after several, which is why the right workflow is to decide the final angle once rather than to nudge it repeatedly.

What fills the corners

Rotating a rectangle by anything other than a quarter turn leaves four triangular gaps. The fill control decides what goes there:

  • Transparent — the gaps stay empty. This only survives in formats with an alpha channel; JPEG will render them as a solid colour.
  • White — the safe choice for documents, scans and anything destined for print on white paper.
  • Black — useful for dark-theme screenshots and for making a deliberate vignette effect.
  • Custom — match a page background, a brand colour or the dominant tone of the photo.

If the output is a JPEG and the fill is transparent, the gaps are flattened to an opaque colour. Choose white or black explicitly instead, so the result is predictable rather than dependent on the encoder.

Straightening a crooked scan

A page photographed by hand is usually off by between half a degree and three degrees. The workflow that works is: rotate by a small free angle until a horizontal rule in the document looks level, then trim the new background at the edges, then crop to the content. Doing it in the other order wastes work, because cropping first leaves the rotation to introduce fresh background along the newly exposed edges.

Judging the angle is easier against a straight reference than by eye on text. Zoom to 100%, find a table rule or a margin, and adjust in 0.5° steps.

Flip is not rotation

Horizontal and vertical flips mirror the image. Text becomes unreadable mirror-writing and faces become subtly wrong, because human features are not symmetric. Flip is the right operation for fixing a selfie taken with a mirrored front camera, or for correcting a scan that was fed upside down through a document feeder. It is the wrong operation for "making the photo face the other way" in any context where the subject matters.

Why this page lives at /tools/id-photo

The address predates the current tool and is kept so that old links and search results continue to work. The page is Rotate & Flip; the tool it once hosted is no longer offered. Nothing about the address changes what the tool does, but it is worth knowing if you arrived expecting something else.

Practical limits

  • No perspective correction. A page photographed at an angle has converging edges; rotation cannot square it up.
  • No automatic horizon detection. The angle is yours to choose.
  • No lossless mode for free angles. Only quarter turns are pixel-exact.
  • No batch rotation. One image per session.
Processing, please wait…