SajinbaroResize & compress images

Why photos appear sideways, and how to fix them

Why a photo that looks upright on your phone turns sideways when uploaded (the EXIF orientation tag), and how to save it upright so it looks the same everywhere.

Reviewed: 2026-10-07 · Sources checked: 2026-10-07

Why does my photo look upright on my phone but sideways after uploading?

Phones store the picture the way the camera sensor captured it and add a separate tag (EXIF Orientation) saying how to turn it for display. Programs that read the tag show it upright; programs or sites that ignore or strip it show it sideways. Saving the photo the right way round produces an upright image that no longer needs the tag.

1. What the orientation tag is

Besides the picture, a photo file carries camera information (EXIF), including an ‘Orientation’ value that tells viewers which way to display it. If you hold the phone upright but the sensor stores the image landscape, the tag says ‘rotate 90° clockwise for display’.

Orientation values you will usually see
ValueDisplayed asTypical case
1As storedLandscape shots, photos already saved upright
6Rotated 90° clockwisePhone held upright
8Rotated 90° counter-clockwisePhone held upright the other way
3Rotated 180°Phone held upside down

Values 2, 4, 5 and 7 include a mirror flip and are rare in ordinary photos.

2. Why it looks different in different places

  • Modern browsers apply the tag to images on web pages by default (CSS image-orientation defaults to from-image), so the same file looks upright in a browser.
  • Programs and older viewers that ignore the tag show the image as stored — sideways.
  • Some sites remove EXIF on upload for privacy. If they do not apply the rotation first, only the tag disappears and the photo ends up sideways.

3. Saving it upright

  • In Sajinbaro's Rotate tool, turn the photo until the preview looks right, press “Apply rotation” and download. The pixels themselves are upright and there is no orientation tag, so every program shows it the same way.
  • Sajinbaro's other tools (resize, compress, crop and so on) also apply the tag once when opening the photo and save the result upright.
  • Rotating a photo that already looks upright turns it sideways again — always go by what the preview shows.

Sources and rules

  • Calculation: The size examples in this guide are generated by the same code as the tools on this site.
  • CSS image-orientation (MDN): Default from-image: the image's EXIF information is used to rotate it (checked 2026-10-07).
  • createImageBitmap (MDN): How Sajinbaro applies the tag when opening a photo (imageOrientation: from-image) (checked 2026-10-07).
  • Exif standard (CIPA DC-008): Defines Orientation tag 0x0112 values 1–8. The table lists only the values common in ordinary photos.