Rotate an image and save it the right way up

The turned pixels themselves are saved, so the photo shows the same way up wherever it is uploaded. Nothing leaves your browser.

Everything runs in your browser. Your image is never sent to a server.

How to rotate an image and save it

  1. 1. Drop the image in (or click to choose it). It opens the way your phone shows it
  2. 2. If it is still on its side, press Rotate left, Rotate right or 180°
  3. 3. Press Download image

A photo that only ever looked sideways somewhere else needs no button at all: open it and download it, and the saved copy is upright everywhere.

Why a photo turns sideways when it is uploaded

A phone usually stores a photo the way its sensor was held, and adds a short note to the file saying which way up to show it: the EXIF orientation. Your phone reads the note, and so do most photo viewers, so the picture looks upright. A website, a form or a program that does not read it shows the stored pixels as they are, which for a photo taken in portrait means on its side. Nothing happened to the file on the way; it was simply read without the note.

Sideways one way, the other way, or upside down (measured)

To see what the note does, we made a test file shaped like a phone photo (19 November 2026): a JPEG stored 1600 × 1200 px, landscape, 704,359 bytes, with a red band along its stored top edge. Three copies were given the three notes a phone writes when it is held turned: turn 90° clockwise, turn 90° counter-clockwise, and turn 180°.

In a browser that reads the note (Chromium), both 90° copies showed as 1200 × 1600 px portraits and the 180° copy showed the right way up. Read without the note, all three came out 1600 × 1200 px with the stored top edge at the top: the 90° copies on their side, the 180° copy upside down. So the same kind of fault makes one photo arrive sideways and another upside down; which one depends on how the phone was held.

Each copy was then dropped into this site's image rotator (the same tool as above; the run used our Japanese site, which serves the same code) and downloaded without pressing a button. The 90° copies were saved as 1200 × 1600 px pixels and the 180° copy as 1600 × 1200 px turned over, with the red band moved to the right, left and bottom edge: where each note said the top belonged. None of the saved files had an orientation note or any other EXIF data left.

How a photo stored 1600 × 1200 px shows with each orientation note, and what this tool saved (measured)
Orientation noteRead with the noteRead without itSaved here, no button pressed
Turn 90° clockwisePortrait, 1200 × 1600 pxOn its side, 1600 × 1200 px1200 × 1600 px pixels, no note
Turn 90° counter-clockwisePortrait, 1200 × 1600 pxOn its side, 1600 × 1200 px1200 × 1600 px pixels, no note
Turn 180°Right way up, 1600 × 1200 pxUpside down, 1600 × 1200 px1600 × 1200 px turned over, no note

As JPEGs the copies were compressed once more when saved: 704,359 bytes became 753,943 and 753,895 bytes for the 90° copies (about 7% more) and 731,050 bytes for the 180° copy (about 4% more). The test file was covered in fine noise, so a real photo will change by a different amount. We did not test any named site or app; which of them read the note varies, and we did not measure it.

Why rotating it in a viewer did not fix it

Rotating a photo in a viewer can change only that note and leave the pixels where they were. Everything that reads the note now agrees with you; everything that ignores it still shows the old pixels, so the photo goes on arriving sideways. The fix that holds everywhere is to turn the pixels themselves and save the result, which is what this tool does.

 Only the note changedPixels turned (this tool)
In an app that reads the noteUprightUpright
In an app that ignores the noteSidewaysUpright
After uploadingDepends on the siteUpright
Pixels changedNoneMoved, not altered (a JPEG or WebP is re-compressed when saved)

What the saved file contains

The picture is opened the way its note says, turned the way you choose, and written out as new pixels. The saved file has no orientation note left to be misread, and the other details the camera wrote, such as the date taken and the location, are not copied into it either. It is saved in the format it was opened in: a PNG without loss, a JPEG or WebP compressed once more. HEIC becomes JPEG, and AVIF, GIF and BMP become PNG, because a browser cannot write those formats. A JPEG saved as a JPEG keeps its print resolution (DPI), so a 300dpi scan is still a 300dpi scan.

What it does not do

  • · Different turns in one go. The ZIP gives every photo in a drop the same turn; photos that need different turns are saved one by one
  • · PDFs. Only images are opened, not the pages of a document
  • · Keep the camera details. If the date taken or the location has to stay in the file, this is not the tool for that photo

Frequently asked questions

Are my images uploaded anywhere?

No. The rotating is done inside your browser, on your own device. Neither the original picture nor the turned one is sent to a server; there is no upload endpoint to send them to, so there is also nothing to delete afterwards.

Why does my photo turn sideways when I upload it?

A phone usually stores the pixels the way the sensor was held and adds a note to the file saying which way up to show them (the EXIF orientation). Your phone and most viewers read that note, so the photo looks upright there. A site, app or program that does not read it shows the stored pixels as they are, on their side. The file has not changed; only the reader has.

I rotated it in my photo viewer and saved, but it still uploads sideways. Why?

Rotating in a viewer can change only the orientation note and leave the pixels where they were. Anything that reads the note shows the result upright; anything that ignores it still shows the old pixels. Saving the turned pixels themselves, which is what this tool does, is what makes the file look the same everywhere.

Why is my picture upside down after I upload it?

The same note can say turn 180°: a photo taken with the phone held the other way round can be stored upside down, with a note saying to turn it over. A site or app that ignores the note shows the pixels as stored, upside down. Open the photo here and download it without pressing a button; in our test the 180° copy was saved turned over, with no note left. If it also looks upside down here, press 180° first.

Does the saved file still have an orientation note?

No. The picture is opened the way its note says, turned the way you choose, and written out as new pixels, so the saved file has nothing left to be misread. The other details the camera wrote, such as the date taken and the location, are not copied into it either. A JPEG saved as a JPEG keeps its print resolution (DPI).

Does rotating lose quality?

A quarter turn only moves pixels around, so the turn itself loses nothing. What differs is the save, which is in the format the picture was opened in. A PNG is written without loss. A JPEG is compressed once more when it is saved, at quality 0.92, and so is a WebP; on a photo that is hard to see.

Does it work with iPhone photos?

Yes. HEIC and HEIF photos open directly, and are saved as JPEG, because a browser cannot write HEIC. The page says so under the size before you save. It works the same way in a phone's browser.

Can I rotate several photos at once?

Yes, when they all need the same turn. Drop them together, turn the one that opens, and press the "Turn all … the same way (ZIP)" button: every photo in the drop is saved turned the same way, in one ZIP, each with the turned pixels and no orientation note. Photos that each need a different turn are done one by one with the "Another image" button.

To straighten a crooked horizon by a few degrees, seehow to straighten a photo; it is the same tool, with the angle slider and the corner crop explained. To mirror a selfie, seehow to flip an image.