The short answer
Your photo is not broken. It looks right on your phone because the gallery reads a small orientation tag. The website, email program or form that shows it sideways either ignores that tag or removed it while resizing the picture.
To fix it for every place at once, open the photo in the rotate tool below. The tool applies the camera's orientation first and then your rotation. If the photo looks right on your phone, choose No rotation and download: the saved file has the pixels the right way round and looks the same everywhere. If it is sideways even on your phone, pick 90° right, 90° left or 180°, and use Compare to check the result against the original.
Try it here: Rotate Image
Open the full tool pageHow EXIF orientation works
A camera sensor is a fixed rectangle, usually in landscape position. When you hold the phone upright, the camera still records a landscape image and uses its motion sensor to note which way was up. Writing a tiny tag is faster than rotating 12 million pixels, so that is what most devices do.
The tag is called Orientation and has eight possible values. Value 1 means the picture is already upright. The others tell the viewer to rotate or mirror it before display.
| Orientation value | What the viewer must do | Typical cause |
|---|---|---|
| 1 | Nothing, already upright | Phone held in landscape, home button or USB port on the right |
| 6 | Rotate 90 degrees clockwise | Phone held upright in portrait |
| 8 | Rotate 90 degrees counterclockwise | Phone held upright but upside down |
| 3 | Rotate 180 degrees | Phone held in landscape the other way round |
| 2, 4, 5, 7 | Mirror, sometimes also rotate | Some front cameras and editing apps |
Why some sites show it wrong
Since around 2020 all major browsers respect the orientation tag when they show an image on its own or inside a page, and phone galleries always have. Problems come from the steps in between.
Many upload systems resize your photo on the server and throw away the metadata to save space. If they do that without first applying the orientation, the result is the raw sideways image with no tag left to correct it. Older desktop programs, some email clients, print shops, document converters and tools that place photos into PDFs or office files can also ignore the tag.
- Looks right in your gallery, wrong after upload: the site removed or ignored the tag.
- Looks right in one program, wrong in another on the same computer: the second program ignores the tag.
- Looks wrong everywhere, even on the phone: the phone guessed the orientation wrong at capture (see below), so the tag itself is wrong.
Fixing rotation permanently
Rotating in a phone gallery or in some viewers often only changes the tag again, so the problem returns as soon as a site ignores it. A permanent fix rewrites the pixels and sets the orientation to normal.
The tool on this page does exactly that. It reads the orientation, applies it, then applies your choice from the Rotate options and the Flip horizontally and Flip vertically boxes, and saves the result without any orientation tag. JPG files are saved at quality 95, so the difference is not visible, and PNG stays lossless. HEIC and AVIF photos are saved as JPG, because browsers cannot write those formats.
You can rotate a whole batch at once. Scanned pages that were fed in upside down, for example, can all be set to 180° and downloaded together with Download all as ZIP. Use Compare to check a file before and after.
Photos taken flat on a table
When you photograph a document, a receipt or a plate of food from directly above, the phone is lying flat and its motion sensor cannot tell which way is up. It keeps the last orientation it knew, which is often wrong, so the photo is sideways even on the phone.
To avoid this, hold the phone upright for a second before you tilt it down, or tilt it very slightly toward you while you take the picture. Document scanning modes in notes and file apps also detect the page edges and fix orientation for you. For photos you already have, rotate them here.
Mirrored selfies and webcam shots
Front cameras show you a mirror image while you frame the shot, because that feels natural. Some phones save the photo mirrored too, so text on a shirt or a sign reads backwards. Video calls work the same way: you see yourself mirrored, others see you normally, but screenshots and recordings can end up mirrored.
To fix photos you already took, tick Flip horizontally in the tool, choose No rotation and download. To change how new selfies are saved, on iPhone go to Settings > Camera and switch Mirror Front Camera on or off; on Samsung phones, open the camera settings and look for the option to save selfies as previewed. Other Android phones have a similar mirror option in the camera settings.
Common questions behind the problem
- The thumbnail is right but the full photo is wrong, or the reverse: some files contain a separate small preview. Saving a clean copy with the tool makes both match.
- An online shop or marketplace keeps rotating your product photos: rotate them here before uploading, so there is no tag left for the site to mishandle.
- A photo inside a Word or PDF document is sideways: insert the corrected copy instead of the original.
- You rotated it in the gallery and it is still sideways online: some galleries and viewers only change the tag, not the pixels. A copy with rotated pixels looks the same everywhere.
- Removing metadata turned a photo sideways: some cleaners delete the orientation tag too. The EXIF remover here writes a minimal orientation note back for that reason.