How to rotate an image

A photo taken sideways, a scan fed in upside down, a document that sits a few degrees off level — rotation fixes all three, and it takes seconds. Here is how to rotate an image properly, why some photos only look sideways in certain apps, and what happens to quality when you turn a picture.

Why photos end up sideways

The orientation flag, not the photo

The usual culprit is not the photo — it is the orientation flag inside it. When you hold your phone sideways, the camera saves the picture unrotated and adds a small note in the file saying “display this turned 90°”. Most apps read the note; some do not. Upload the photo to a form, open it in an old viewer, or send it to a printer, and the flag is ignored — the picture appears on its side.

Scans went in crooked

Scans have a simpler cause: the paper went in crooked, or upside down, and the scanner faithfully recorded exactly that. Either way the fix is the same — rewrite the pixels themselves, not the flag. Once the pixels are turned, every app, form and printer shows the picture the right way up, because there is nothing left to misread.

Rotating by 90° vs a custom angle

Quarter turns lose nothing

Quarter turns — 90° and 180° — are the cleanest rotations there are. Every pixel keeps its place in the grid, just in a new position, so nothing is resampled and nothing is lost. A photo rotated 90° is pixel-for-pixel the same photo, turned.

Custom angles need a bigger canvas

Custom angles are different. Turning a picture by 3° or 27° means its corners swing outside the original frame, so the canvas has to grow to hold the whole image — and the new corners need filling, with transparency or white. The pixels are also resampled onto the new grid, which softens hard edges very slightly. For straightening a scan the trade is worth it; for a simple sideways photo, stick to the 90° button.

How to rotate an image

  1. In your browser — fastest, nothing to install. Use the Image Rotator: drop the image in, press 90° left, 90° right or 180°, or drag the angle slider for a custom turn. The preview shows the result live, and the download is a new file — your original is untouched.
  2. On Windows, with Photos. Open the image in the Photos app, click the rotate button in the toolbar (or press Ctrl+R) to turn it 90° clockwise. Save a copy if you want to keep the original — Photos can overwrite the file.
  3. On a Mac, with Preview. Open the image in Preview, then choose Tools, then Rotate Left or Rotate Right. Preview rotates by 90° steps; for a custom angle you need the browser tool or an editor like GIMP.
  4. Check the result at full size. Open the rotated file and confirm the text reads level and nothing important was cut off at the corners. If a custom angle left too much empty space, crop the result with the Crop Image tool.

Rotation and file formats

One practical note: rotating and saving as JPG re-compresses the image each time, and repeated rotations of a JPG slowly accumulate compression artefacts. If you plan to rotate, crop and adjust the same photo several times, work in PNG until the final save, and only export to JPG at the end. The browser tool downloads as PNG by default for exactly this reason — and the rotation itself rewrites the pixels, so the orientation flag that caused the problem in the first place is gone for good.

When rotation is not enough

A photo that is both crooked and badly framed needs two steps: rotate first, then crop. Rotating a crooked scan leaves triangular empty corners; cropping afterwards removes them and tightens the composition at the same time. Doing it in that order — rotate, then crop — means you only crop once.

If the same photo keeps appearing sideways after you rotate it, the culprit is usually a copy: you rotated one file and uploaded another. Check the filename and the date, and rotate the exact file you plan to send. And if a website still shows the old orientation, clear its cache or re-upload — some sites keep a cached thumbnail of the unrotated version.

Related guides

Questions people ask

Does rotating an image reduce quality?

A 90° or 180° rotation only rearranges pixels, so nothing is lost in the turn. Quality only changes when you save as JPG, which re-compresses the image — download as PNG if you plan to edit further.

Why is my photo sideways only in some apps?

Your phone stores an orientation flag instead of rotating the pixels, and some apps ignore that flag. Rotating the pixels themselves — as this guide's browser tool does — fixes the photo everywhere at once.

Can I rotate by an exact angle, like 3 degrees?

Yes, with the browser tool's angle slider, which covers any whole degree from -180° to 180°. Small angles of 1° to 5° are the usual fix for crooked scans.