Skip to content
Private: files never leave your device

Why Is My Photo Upside Down When I Upload It?

The photo looks right on your phone, but on a website, in a form, a shop listing or a chat it suddenly lies on its side or stands on its head. Nothing is wrong with the picture itself. The way it is stored relies on a small note that says which way is up, and the site you uploaded to either ignored that note or threw it away. This guide explains the note, why some sites lose it, and how to save a copy that stays upright everywhere.

A phone saves the pixels in the order the sensor reads them and adds an EXIF orientation tag saying how to turn them. If an upload site drops or ignores the tag, the photo shows sideways or upside down, so the fix is to save the pixels upright

Your photo turns sideways or upside down after uploading because the camera stored it in one direction and added an EXIF orientation tag saying how to turn it, and the site you uploaded to ignored that tag or deleted it. Save a copy whose pixels are already upright, for example with Rotate Image, and the photo will look the same on every site, because it no longer needs the tag. The specifications and documentation used here were read on 25 November 2026.

What the orientation tag does

A phone camera sensor reads the picture in the same direction no matter how you hold the phone. Rather than turning millions of pixels every time you take a portrait or upside-down shot, the camera saves them as they came off the sensor and writes a single number into the photo's EXIF metadata: the Orientation tag, tag 0x0112 (274 in decimal). Any program that displays the photo is expected to read that number and turn the picture before showing it.

The tag can hold eight values. The four you will meet from phones are 1, 3, 6 and 8; the mirrored values appear mostly after front camera shots or editing apps.

ValueMeaning as listed by ExifToolWhat you see if a site ignores it
1Horizontal (normal)Nothing changes: the photo is already upright
2Mirror horizontalThe photo appears mirrored, text reads backwards
3Rotate 180The photo is upside down
4Mirror verticalUpside down and mirrored
5Mirror horizontal and rotate 270 CWOn its side and mirrored
6Rotate 90 CWA portrait photo lies on its left side, top pointing left
7Mirror horizontal and rotate 90 CWOn its side and mirrored
8Rotate 270 CWThe photo lies on its right side, top pointing right

So the most common report, a portrait photo that appears lying on its side after upload, is usually a value 6 photo shown by something that skipped the tag. An upside-down photo is usually value 3, taken with the phone turned the other way up.

Why it looks right on your phone but wrong after upload

Your phone gallery reads the tag, so you never see the raw sensor direction. Modern browsers read it too: the W3C CSS Images specification gives the image-orientation property an initial value of from-image, which means the browser turns the picture by the angle the EXIF data asks for. The same specification notes that the property previously used none as its initial value, so older browsers and older software displayed the raw pixels, which is where many of the old sideways-photo complaints came from.

When a photo goes wrong today, one of these usually happened on the way:

Where it went wrongWhat happened to the tagTypical sign
The site resized or compressed your uploadIt copied the pixels into a new file but did not copy or apply the tagThumbnail and full view both sideways
The site strips metadata for privacyLocation and camera data were removed, and the orientation tag went with themOnly photos from your phone are affected, screenshots are fine
An older app or plugin draws the photo itselfIt never reads the tag at allCorrect in the browser, wrong in one app or editor
The page sets image-orientation to noneThe browser is told to show the raw pixelsWrong on one website only
You rotated the photo in an app that only changed the tagThe tag now disagrees with what another program expectsRight in one gallery, wrong in another
A quick test Open the original photo straight in Chrome, Edge, Firefox or Safari by dragging it into a new tab. If it is upright there but wrong on the website, the website is losing the tag. If it is wrong in the browser too, the tag itself is wrong and needs fixing.

The fix that works everywhere: save the pixels upright

The reliable cure is to stop depending on the tag. When a program applies the orientation, turns the actual pixels and saves a new file, the result has no turn left to perform, so every site, app and printer shows it the same way.

That is what our Rotate Image tool does. It opens each photo with the browser's createImageBitmap option imageOrientation: "from-image", which MDN describes as orienting the image according to its EXIF orientation metadata, so the preview matches your phone. You can then add a 90 degree, 180 degree or fine-angle turn if the photo really was taken crooked, and the download stores the pixels exactly as you see them. The work happens in your browser and the photo is not uploaded.

Save a photo the right way up for good

Applies the camera orientation, lets you turn or level the picture and saves upright pixels. Free, no upload, no watermark.

Rotate Image

Other ways to get the same result:

  • Resize or convert it first. Our Resize Image and Compress Image tools also turn each photo upright using its camera orientation before saving, so a smaller upload comes out the right way up too.
  • Take a screenshot of the photo. A screenshot has no orientation tag, so it is stored upright. It lowers the quality to your screen resolution, so use it only when nothing else is available.
  • Export from a desktop editor. Most editors apply the tag when they open the photo and write upright pixels when you export or save as a new file.

Platform by platform

Where the photo goes wrongWhat to try first
A form, job portal or school upload pageSave an upright copy with Rotate Image and upload that copy
A shop or marketplace listingUse an upright copy; many listing tools re-encode photos and drop metadata
Your own website or blogCheck whether a plugin or theme resizes images; upload upright copies or update the plugin
Facebook or another social app shows a profile picture flippedIf it is mirrored rather than rotated, it is probably a front camera shot: use Flip in Rotate Image
An email attachmentThe recipient's mail program may ignore the tag; send an upright copy
Printing or a photo book serviceUpload upright copies so the layout and the print agree

Mirrored is not the same as rotated

If text in the photo reads backwards, the picture is mirrored, not turned. Front cameras often show a mirrored preview, and some apps save the mirror image or use the mirrored orientation values 2, 4, 5 and 7. Rotating will not fix a mirror image: open Rotate Image and use Flip horizontal instead, then check the result before saving.

Should you remove metadata before uploading?

Removing EXIF data is a good idea before posting photos taken at home, because it can include the location. The catch is that a careless metadata stripper deletes the orientation tag too, which is one of the ways photos end up sideways in the first place. Our Remove EXIF Data tool removes location, camera and date details but keeps the orientation value, so the photo still displays the right way up. If you want to remove every trace of metadata and still be safe, run the photo through Rotate Image first so the pixels are upright, then strip the rest.

Troubleshooting

  1. The upright copy is still sideways on the site. Make sure you uploaded the downloaded copy. Phones and browsers often pick the original from a recent files list.
  2. The photo is upright in the preview but you wanted it turned. The photo may really have been taken at an angle. Add a 90 or 180 degree turn in Rotate Image, or use the fine angle to straighten a horizon.
  3. Only HEIC photos misbehave. Some upload pages cannot read HEIC at all. Convert with HEIC to JPG; see HEIC to JPG without losing quality for the settings.
  4. A sideways video, not a photo. Videos have their own rotation setting. Use Rotate Video or read how to rotate a sideways video.
  5. A PDF made from phone photos is sideways. Fix the photos first, or turn the finished pages with Rotate PDF.

For web developers

If your users report sideways uploads, check the image pipeline rather than the browser. Keep the default image-orientation: from-image; the W3C specification marks values other than none and from-image as deprecated and optional to implement. MDN adds a warning that image-orientation: none does not override the EXIF orientation of non-secure-origin images. On the server, apply the orientation before resizing and then either keep the tag at 1 or remove it, so the stored pixels and the metadata never disagree. In the browser, createImageBitmap with imageOrientation: "from-image" gives you upright pixels to draw on a canvas, while "none" ignores the tag, as MDN describes.

Sources and dates

PageReadUsed for
ExifTool: EXIF tag names25 November 2026Orientation tag 0x0112 and the meaning of values 1 to 8
W3C: CSS Images Module Level 3, image-orientation25 November 2026Initial value from-image, previous initial value none, deprecated angle and flip values
MDN: image-orientation25 November 2026from-image and none behaviour, non-secure-origin warning
MDN: createImageBitmap()25 November 2026imageOrientation options from-image, flipY and none

The official CIPA Exif standard download page showed only a disclaimer to accept when checked, so the tag values above come from ExifTool's tag reference.

Frequently asked questions

Why is my photo upside down when I upload it but fine on my phone?

Your phone reads the EXIF orientation tag that says which way is up, but the site you uploaded to ignored it or deleted it while resizing. Save a copy with upright pixels using Rotate Image and upload that copy.

What does EXIF orientation 6 mean?

Value 6 means Rotate 90 CW: the pixels must be turned 90 degrees clockwise to display correctly. A program that ignores it shows a portrait photo lying on its side with the top pointing left.

Why do my pictures upload sideways on Facebook or other sites?

Most often the site re-encoded the photo and lost the orientation tag, or the photo was mirrored by the front camera. Upload an upright copy, and use Flip rather than Rotate if text reads backwards.

Will removing EXIF data make my photo sideways?

It can, if the tool deletes the orientation tag along with location and camera data. Remove EXIF Data on this site keeps the orientation value, or you can save upright pixels with Rotate Image first.

Do browsers respect EXIF orientation?

Yes. The CSS image-orientation property now defaults to from-image, so current browsers turn photos by their EXIF tag. It used to default to none, which is why older software showed photos sideways.