Rotate a photo

Turn a photo the right way up. Useful when a phone photo uploads sideways because the form ignored the rotation information stored in the file.

  • Free, no watermark
  • No sign-up
  • Runs in your browser

How to use it

Nothing is uploaded. This runs on your device, so we never receive your image. Need the whole photo made to spec instead? Use the passport photo maker.

Why the same file looks upright in one app and sideways in another

A phone camera does not usually rotate the picture it saves. The sensor reads out the same way however you hold the handset, so the file carries one fixed pixel orientation plus a metadata field, EXIF tag 0x0112, saying which way up to display it. Value 1 is upright, 6 is 90 degrees clockwise, 3 is 180, 8 is 270.

Whether that tag is obeyed is up to the program opening the file. Photos, Preview and current browsers honour it. Plenty of server-side code does not, including ImageMagick without -auto-orient and many upload pipelines. Portals also strip metadata when they re-encode, and once the tag is gone the sideways pixels are all that survives. Turning the image first writes the orientation into the pixels, so there is nothing left to ignore.

Quarter turns move pixels, other angles rebuild them

A 90, 180 or 270 degree turn is a permutation. Every pixel keeps its exact value and moves to a new coordinate, nothing is interpolated, and a quarter turn swaps the width and the height.

Any other angle is a different operation. Each output pixel is rebuilt from a weighted blend of its neighbours, which softens hair edges and small text and leaves empty wedges at the corners you then crop away.

JPEG adds a wrinkle. A genuinely lossless quarter turn works on the 8x8 blocks inside the file, which is what jpegtran -rot does, and only when the dimensions are multiples of the block size. This tool decodes and re-encodes once at high quality instead: the geometry is exact and the generation loss is a single invisible step. Make all your turns before you download.

Rotating the picture does not straighten a tilted head

Rotation fixes a tilted camera. It does not fix a tilted head, and the head is what gets checked. The State Department asks you to face the camera directly with your full face in view, and the ICAO specification behind most automated checkers counts a face as full frontal only within a few degrees of square.

The three axes fail differently. Roll, one ear dropped towards a shoulder, is caught by measuring the angle of the line between your eyes. Yaw, the face turned to one side, hides an ear. Pitch, the chin lifted or tucked, moves your eye height and shortens the chin-to-crown distance that sets head size — on a US 2 x 2 photo that window is only 1 to 1 3/8 inches wide.

If the head itself is tilted, rotating the frame tilts the background and your shoulders with it and leaves the head just as crooked. Retake it rather than nudging the angle.

When a photo comes back turned the wrong way

A rotation that ends up upside down is nearly always double application. A converter rotated the pixels to match the tag and then copied the tag into the new file, so the next program that honours it turns the picture again. Apple HEIC to JPEG converters are the usual culprit.

If it looks right in Photos but wrong in the upload preview, something is ignoring the tag. If it looks wrong everywhere, the pixels themselves are sideways.

What you download here has no orientation tag at all: decoded with its EXIF orientation applied, drawn upright onto a canvas and re-encoded, so the file also carries no camera metadata and no GPS coordinates.

Common questions

Why does my photo upload sideways?

Phones record the picture in one orientation and add a note saying which way up it should be. Some upload forms ignore that note. Rotating here bakes the correct orientation into the file itself, so every program shows it the same way.

Does rotating reduce quality?

A 90, 180 or 270 degree turn does not lose any detail. The image is re-saved once, which is imperceptible.

Can I rotate by a few degrees to straighten a crooked photo?

Not here, this tool turns in 90 degree steps. A two or three degree straighten resamples every pixel and leaves wedge-shaped corners to crop away, and on a passport photo that recrop moves your head height and eye line, the two measurements a portal checks. If only the background is crooked, straighten it in a photo editor; if your head is the crooked part, take the photo again.

Is a tilted head a reason for rejection?

Yes. The standards ask you to face the camera directly, and automated checkers measure the angle between your eyes and the positions of your chin and crown. A lifted chin is the one people miss: it shortens the chin-to-crown distance and raises your eyes in the frame, failing head size and eye height at once.

Does rotating strip the rest of the photo's data?

Yes. The download is re-encoded from scratch, so it carries no EXIF at all: no orientation tag, no camera model, no timestamp, no GPS. That is usually what you want before sending a photo to a government form.

Should I rotate before or after cropping or resizing?

Rotate first. A quarter turn swaps width and height, so a 900 x 1200 file becomes 1200 x 900 and any dimensions you set beforehand come out the wrong way round. Get it upright, then crop to the shape your form needs, then resize or compress to the limits.

Other free tools