Why Photos Appear Sideways and How to Rotate Them for Good

Photos that look upright on your phone but sideways elsewhere are an EXIF orientation issue. Learn why it happens and how to rotate images permanently.

Updated September 29, 2026 5 min read

Use the free Image RotatorRotate images in 90° steps and flip them

A photo looks perfectly upright on your phone. You email it, attach it to a report or upload it to a website, and suddenly it is lying on its side, or upside down. You rotate it on your computer, it looks fine, and then it flips back in the next program. This is one of the most common image annoyances, and it has a specific technical cause.

This guide explains why photos end up sideways, how to rotate an image so the fix sticks in every program, and the built-in rotation options on Windows, Mac and phones.

Why photos end up sideways: the orientation tag

Camera sensors always capture the image the same way round, as if the camera were held in its default landscape position. When you turn the phone to portrait, the camera does not usually rotate the pixels. Instead, it writes a small note into the photo's EXIF metadata, called the orientation tag, saying "rotate this 90 degrees clockwise before displaying".

Software that reads the tag shows the photo upright. Software that ignores it shows the raw pixels, which are sideways. Different programs, email clients and websites have historically handled the tag differently, which is why the same file can look correct in one place and wrong in another.

A second source of confusion: some programs "rotate" a photo by changing only the tag, not the pixels. That looks fine locally but may not travel with the file if another app strips or ignores metadata.

You can see a photo's orientation tag and other metadata with the EXIF Viewer.

The reliable fix

The robust solution is to rotate the pixels themselves and save a new file in which the image is stored upright, so it does not depend on any tag. That is what a canvas-based rotator does.

Rotate an image in your browser

The Image Rotator redraws the pixels in their new orientation, on your own device.

  1. Open the Image Rotator.
  2. Drop an image onto the upload box, or click to choose one (up to 10 MB). A preview appears with the rotation buttons above it.
  3. Click Rotate Right to turn the image 90 degrees clockwise, or Rotate Left for 90 degrees anticlockwise. Click twice for 180 degrees. The preview animates to the new position.
  4. If the image is also mirrored, use Flip H (left to right) or Flip V (top to bottom).
  5. Click Download. The rotated image is saved as a PNG with a -rotated suffix. The width and height swap automatically when you rotate by 90 or 270 degrees.
  6. Click Upload New to rotate another image.

Because the pixels are rewritten, the downloaded image is upright in every program, whether or not it reads EXIF data.

A note on the output format

The rotator saves PNG, which is lossless, so no extra compression is added. For photographs, that can make the file larger than the original JPG. If you need a small file to email, convert it with PNG to JPG or the Image Compressor after rotating.

Rotation versus flipping

These are easy to mix up:

Action What it does Typical reason
Rotate 90° Turns the picture a quarter turn; width and height swap Portrait photo displayed sideways
Rotate 180° Turns the picture upside down Scanned page fed in the wrong way
Flip horizontal Mirrors left to right Selfie with reversed text
Flip vertical Mirrors top to bottom Reflections, special effects

A mirrored image cannot be fixed by rotating, and a sideways one cannot be fixed by flipping. If mirroring is your only problem, the dedicated Flip Image tool keeps your original format.

Other ways to rotate images

Windows

In File Explorer, select one or more images and use the rotate buttons in the toolbar or the right-click menu. The Photos app and Paint (Rotate menu) also work. Be aware that some rotations in viewers may only adjust metadata, depending on the file type and version, so check the result in another program if it matters.

Mac

In Preview, use Tools → Rotate Left or Rotate Right (Command+L and Command+R), then save. In Finder, you can select images and use the Quick Actions rotate option.

iPhone and Android

In the Photos app on iPhone, tap Edit, then the crop icon, then the rotate button. Android galleries have similar options in their edit mode. Phone edits are convenient, but how the change is stored when the file is shared can vary, so if the image must look right everywhere, export a rotated copy.

Command line

ImageMagick can apply the orientation tag to the pixels and reset it in one step:

magick input.jpg -auto-orient output.jpg

This is the best option for fixing a whole folder of camera photos.

Troubleshooting

It rotates back after I upload it

The file probably still has an orientation tag that disagrees with the pixels. Rotating with a tool that rewrites pixels, like ours, and saving a new file resolves this. Remove EXIF Data can also strip a leftover tag, along with location and camera details.

The rotated image has a different size

Rotating by 90 or 270 degrees swaps width and height, so a 4000 × 3000 image becomes 3000 × 4000. That is expected.

My photo is only slightly tilted

This tool rotates in 90-degree steps. For straightening a tilted horizon by a few degrees, use the straighten control in your phone's photo editor or a desktop editor, and crop the edges afterwards.

Frequently asked questions

Why does my photo look fine on my phone but sideways on my computer?

The phone reads the EXIF orientation tag and displays the photo upright. The other program ignores the tag and shows the raw pixels, which were captured sideways.

Does rotating an image reduce its quality?

Rotating by 90-degree steps moves pixels without resampling, so detail is preserved. Our tool saves PNG, which adds no compression loss. Re-saving as JPG repeatedly in other programs can lose some quality.

How do I rotate an image permanently?

Use a tool that rewrites the pixels and save a new file. The result no longer depends on metadata, so it displays upright everywhere.

Can I rotate by a custom angle?

Our rotator works in 90-degree steps. Small angle corrections need a photo editor with a straighten tool.

Is my image uploaded when I rotate it?

No. The rotation is done by your browser on your device.

Try it now: Image Rotator

Loading tool…