Skip to contentSkip to the inputSkip to the result

Rotate or flip a photo

Turn a sideways photo upright

Loading tool

Instructions

Rotate or flip a photo

How to use

  1. Choose a photo, press rotate or flip, or level a tilt with the Straighten slider, then save.

Supported input

  • JPG, PNG, WebP, GIF and BMP up to 40 MB.
  • Saved in the original format for JPG, WebP and PNG; others are saved as PNG.

Input example

sideways.jpg

Result example

An upright photo

Troubleshooting

  • Unsupported formats and oversized files are refused with a reason.
  • The original file is never changed.

Limitations

  • Straightening crops to the largest upright rectangle inside the photo so no empty corners are saved (up to ±45°).
  • An animated GIF keeps its first frame.
  • A JPG is re-encoded, so quality can change slightly; its date taken and camera details are kept, but the location (GPS) is left out.

How it works

  • Rotates a photo in quarter turns, flips it, or straightens a slight tilt, then saves it.

Orientation tags versus real pixels: making a turned photo stay upright everywhere

When it helps

  • A phone photo that looks fine on the phone but lies on its side in an expense system or an old viewer
  • A receipt or a page photographed at a slant, whose lines of text need to run level
  • A horizon or a building edge that is one to three degrees off
  • A page scanned upside down that needs a half turn

The tag and the pixels are separate things

Cameras store pixels the way the sensor read them and record how to turn them for display in the EXIF Orientation tag. In the Exif standard, 1 means as stored, 3 means turn 180°, 6 means turn 90° clockwise, 8 means 90° anticlockwise, and 2, 4, 5 and 7 are the mirrored variants. Current browsers and photo apps apply the tag; software that ignores it shows the picture sideways.

This tool applies the tag when it reads the photo, so it starts from what you see, then turns and flips the pixels themselves. When a JPEG is saved as a JPEG, the original EXIF block is copied across with Orientation reset to 1. Leaving it at 6 would make viewers turn the already upright pixels a second time.

Worked example: straightening 4000 × 3000 by 3°

  1. 1Turning a photo by 3° leaves empty triangles at the corners, so only the largest level rectangle inside the turned photo is kept.
  2. 2At 3° that rectangle is 3858 × 2801 px: about 3.5% narrower and 6.6% shorter.
  3. 3At 10° it is 3637 × 2404 px, close to a fifth of the height gone, and at the 45° limit only a 2121 × 2121 px square remains.
  4. 4Small corrections cost little. The slider moves in 0.5° steps, and a double press puts it back to 0°.

What happens to the photo’s details

  • A JPEG saved as JPEG keeps its date taken, camera and lens, so photo libraries still sort it by the day it was taken.
  • The GPS location is not carried over: its entries and values are overwritten with zeros.
  • The small preview picture the camera embedded is the unturned one, so it is unlinked. Its bytes are not scrubbed from the block, so for a photo with something to hide, use the cover tool, which writes no EXIF at all.
  • PNG and WebP results carry no EXIF. GIF and BMP are saved as PNG, and an animated GIF keeps its first frame.

Easy to mix up

  • A page scanned upside down needs the 180° turn. Flip vertically would leave the text mirrored as well.
  • A document photographed from an angle looks like a trapezoid. That is perspective, not tilt, and turning will not square it; it needs a tool that pins the four corners, like a phone’s document scanner.
  • When levelling, judge by long straight lines such as the horizon, a desk edge or a door frame rather than the subject. One degree is easy to see along a long line.

If not a single bit of quality may change

A JPEG is compressed afresh whenever it is saved, so it changes very slightly. For an archive original that only needs quarter turns and must never be recompressed, a lossless rotation program such as jpegtran turns the compressed data directly. It may have to trim a few edge pixels when the width or height is not a multiple of the 8 or 16 px block size, and it cannot do arbitrary angles like the straighten slider.

Checked

Frequently asked questions

Why does a phone photo appear sideways in some apps?

Phones often save the photo unrotated with an orientation tag (EXIF), and apps that ignore the tag show it sideways. This tool applies the tag and then turns the pixels themselves, so the saved photo looks the same everywhere.

Does rotating lower the quality?

PNG is unchanged. JPG and WebP are saved again at 92% quality, which can change them very slightly. GIF and BMP are saved as PNG.

How do I fix a mirrored selfie?

Press Flip horizontally to undo the mirror effect. Rotating and flipping can be combined, and the preview updates right away.