Skip to main content

Image Orientation: EXIF Rotation Problems

Why does the same photo look right on your phone and sideways everywhere else? EXIF orientation explained, plus how to fix it permanently.

CompressMyPic Editorial Team · Published Nov 17, 2026 · 11 min read

Image Orientation: EXIF Rotation Problems

The same photo can look perfectly fine on your phone and completely sideways on a website. Nothing about the file changed between the two views, yet the image appears rotated.

The cause is a small piece of metadata called EXIF orientation. It is a note inside the file that records which way the camera was held, and not every program reads it.

This article explains how EXIF orientation works, why it breaks, and how to fix a photo permanently so it displays correctly in every viewer, form, and app.

What Is EXIF Orientation?

EXIF is the metadata standard that cameras and phones write into every photo. It records the camera model, the exposure settings, the date, and the orientation of the device.

The orientation field is a single number from 1 to 8. Each value describes a combination of rotation and mirroring, such as rotated 90 degrees clockwise or flipped horizontally.

When you take a photo with your phone held sideways, the sensor captures the pixels in one fixed direction. The phone then writes an orientation value that says how the image should be displayed.

Viewers that understand EXIF rotate the image on screen according to that value. Viewers that do not understand it show the raw pixels, which is why the photo looks sideways.

The Eight Orientation Values, Explained Simply

Value 1 means the image is already the right way up, and no rotation is needed. Most photos taken with the phone held normally carry this value.

Values 3, 6, and 8 describe rotation. Value 3 means the image is upside down, value 6 means it needs a 90 degree clockwise turn, and value 8 means 90 degrees anticlockwise.

Values 2, 4, 5, and 7 add mirroring. These appear with front cameras and some scanners, where the image is flipped as well as rotated.

You never need to memorise these numbers. What matters is the pattern: a photo that looks wrong in one viewer and right in another almost always has an orientation value that one viewer ignores.

Why Phones Store Orientation Instead of Rotating Pixels

Rotating the actual pixels takes time and processing power. Writing a single number into the metadata is instant, so phones take the fast route and let viewers do the work.

This design also keeps the original sensor data untouched. The file stays exactly as the camera captured it, and the orientation note tells every program how to present it.

For most users this works invisibly. Modern galleries, browsers, and social apps all read the orientation value, so photos appear correctly without anyone thinking about it.

The problem appears at the edges of the system: old software, upload forms, print services, and simple viewers that never learned to read the note.

Where Orientation Breaks in Practice

Upload forms are the most common breaking point. A job portal or government site may display your photo sideways even though it looks fine in your gallery, because the form ignores EXIF.

Email clients are another one. Some older clients show attached photos in their raw orientation, so a recipient sees a sideways image that looked fine to the sender.

Print services can break too. A photo printed from a file that relies on the orientation note may come out rotated if the print software does not read the metadata.

Even some social platforms have had this problem historically. A photo uploaded from a phone could appear rotated in a post, even though the same file looked right in the camera roll.

How to Tell If Orientation Is Your Problem

The signature symptom is inconsistency. If the same file looks right in one place and wrong in another, orientation metadata is the likely cause, not a corrupt file.

Open the photo in two different programs. If your phone gallery shows it correctly and a desktop viewer shows it sideways, the EXIF note is being read by one and ignored by the other.

Another clue is the direction of the error. Orientation problems always rotate by 90 or 180 degrees, never by a small angle like three degrees, which points to a tilted camera instead.

Check the file on a second device if you can. A photo that is sideways everywhere, including your own gallery, has genuinely rotated pixels and needs a normal rotation fix.

Fixing Orientation Permanently

The permanent fix is to rotate the actual pixels and reset the orientation value to 1. Once that is done, the file displays correctly in every viewer, whether it reads EXIF or not.

The Rotate and Flip Image tool does exactly this. When you rotate an image and download it, the exported file has correctly oriented pixels and a clean orientation tag.

This is better than relying on viewers to interpret the note. A fixed file works in old software, upload forms, and print services that never learned to read EXIF.

Keep the original file before you fix it, in case you ever need the untouched version. The fixed file is the one to share, upload, and print.

Orientation Metadata vs Real Rotation

Orientation metadata is a suggestion about how to display the image. Real rotation changes the pixels themselves, so the suggestion is no longer needed.

Think of it like a sticky note on a painting that says this side up. A viewer that reads the note hangs the painting correctly, while one that ignores it hangs it sideways.

Rotating the pixels is like repainting the picture the right way up. The sticky note becomes unnecessary, and every viewer shows the image correctly.

That is why a proper rotation fix is permanent. It removes the dependency on every program agreeing about a metadata field.

Selfies, Mirroring, and Orientation Values

Front cameras add a twist to the orientation story. Many phones save a mirrored image and record a flip in the orientation value, so the photo looks correct in the gallery.

When a viewer ignores that value, the selfie appears mirrored. Text on a shirt reads backwards, and a hair parting sits on the wrong side of the head.

The fix is a horizontal flip, not a rotation. Flipping mirrors the pixels back, and the exported file no longer depends on the orientation note to look right.

If a selfie needs both a flip and a rotation, do the flip first and then the rotation. Check the preview after each step so you can see exactly what changed.

EXIF Orientation and Privacy

The orientation field is only one part of EXIF metadata. The same file can also carry GPS coordinates, the camera model, and the date the photo was taken.

That extra data is a privacy concern when you share photos publicly. A photo posted online can reveal where it was taken, even when the image itself shows nothing recognisable.

Rotating an image in the CompressMyPic tool strips the GPS data during export. The orientation is fixed and the location record is removed in the same step.

If you want to check what a photo reveals before sharing it, use the Image Metadata Viewer to inspect the EXIF fields. To remove them entirely, use the Remove Image Metadata tool.

Orientation in JPG, PNG, and WebP

JPG is where orientation problems are most common, because almost every phone saves photos as JPG with full EXIF data. The orientation field is written by default.

PNG files can carry EXIF data too, but many PNG tools strip it or never write it. A PNG screenshot rarely has an orientation problem, because screenshots have no camera direction to record.

WebP supports EXIF orientation as well. Modern browsers read it correctly, but older tools that convert WebP to JPG sometimes drop the orientation value and produce a sideways image.

HEIC, the format used by newer iPhones, also stores orientation. Converting HEIC to JPG without handling the orientation value is a common cause of sideways photos after conversion.

Orientation Problems After Format Conversion

Converting a photo from one format to another can break its orientation. The converter may copy the pixels but drop the EXIF note, leaving a sideways image with no record of how it should be displayed.

This is common when converting HEIC to JPG. The iPhone file carries an orientation value, and a converter that ignores it produces a JPG that looks rotated in every viewer.

The safest workflow is to fix the orientation first, then convert. Rotate the image in the Rotate and Flip tool, download the corrected file, and only then convert it to another format.

If a converted file already looks sideways, rotate the converted file directly. The pixels are what matter now, and a normal rotation fix will correct them.

Orientation on Social Media and Messaging Apps

Most large social platforms now read EXIF orientation correctly. A photo uploaded from a phone usually appears the right way up in a post, a story, or a profile picture.

Messaging apps are more mixed. Some read the orientation value, while others display the raw pixels, so the same photo can look fine in one chat app and sideways in another.

Profile pictures are a special case. Many platforms crop profile photos into a square or a circle, and a sideways source image produces a badly framed crop even when the orientation is read correctly.

Fix the orientation before uploading anywhere important. A corrected file removes the guesswork and looks the same on every platform.

Common Myths About Image Orientation

One myth is that a sideways photo is corrupt. It is not. The pixels are intact, and the file is healthy; only the display instruction is being ignored.

Another myth is that re-saving the file in an editor always fixes it. Some editors preserve the orientation value untouched, so the file comes out exactly as sideways as it went in.

A third myth is that all modern software reads EXIF. Most does, but upload forms, print kiosks, and embedded systems are often years behind, and they are the places where orientation breaks most visibly.

The reliable rule is simple: if a photo matters, fix the pixels. A file with correct pixels and a clean orientation tag works everywhere, with no myths involved.

Orientation in Print Services and Kiosks

Print kiosks are among the worst offenders for ignoring EXIF orientation. A photo that looks perfect on your phone can print sideways from a kiosk that reads only the raw pixels.

The fix is to correct the file before you walk to the kiosk. Rotate the pixels in the tool, download the fixed file, and print from that version instead of the original.

Online print services are better, but not perfect. Some read the orientation note correctly, while others rely on the file dimensions, so a fixed file removes the guesswork entirely.

For anything you pay to print, always check a test print first. A single test copy costs little, while a whole order of sideways prints costs far more.

Orientation and Cloud Backups

Cloud backup services usually preserve EXIF data, so a photo backed up and restored keeps its orientation note. The problem is not the backup, but the programs that open the restored file.

Moving photos between services can strip metadata. A file downloaded from one cloud service and uploaded to another may lose its orientation value along the way.

Fix the orientation before you archive important photos. A file with correct pixels and a clean orientation tag survives any number of transfers without changing how it looks.

For family photos and scanned memories, this step matters most. A photo archived sideways may stay sideways for years before anyone notices and fixes it.

Orientation in Old Software and Embedded Systems

Old photo viewers, car displays, and digital photo frames often ignore EXIF entirely. They were built before orientation metadata became standard, and they show the raw pixels.

A digital photo frame that displays your holiday photos sideways is not broken. It is simply showing the pixels as the camera recorded them, without reading the orientation note.

The same applies to some medical and industrial imaging systems, which display files exactly as stored. A fixed file works on these systems, while a metadata-dependent file does not.

When a photo must display on hardware you do not control, fix the pixels. It is the only approach that works on every device, old or new.

A Quick Checklist Before You Share a Photo

Open the photo in two different programs before you share it. If it looks right in both, the orientation is probably fine, and the file is safe to send.

Check the photo on a second device if you can. A phone and a computer read orientation differently, so a file that looks right on both is genuinely correct.

Fix the pixels when in doubt. Rotating in the Rotate and Flip tool takes seconds, and a fixed file removes all uncertainty about how it will display.

Keep the original file in an archive folder. The fixed version is the one to share, but the original preserves the untouched sensor data in case you ever need it.

For the practical steps, see How to Rotate or Flip an Image and the full overview in Rotate and Flip Images: Complete Guide. If your photo also carries location data you would rather remove, read Photo Privacy: GPS, EXIF and Metadata Risks.

Frequently asked questions

What is EXIF orientation in simple terms?

It is a number stored inside a photo that records which way the camera was held. Viewers that read the number display the photo correctly, while viewers that ignore it show the raw pixels, which can look sideways or upside down.

Why does my photo look fine on my phone but sideways on a website?

Your phone gallery reads the EXIF orientation note, but the website does not. The pixels were never rotated, so the site shows them in their raw direction. Rotating the image in an editor rewrites the pixels and fixes the problem permanently.

Is a sideways photo damaged or corrupt?

No. The pixels are intact and the file is healthy. The problem is only that one program reads the orientation note and another does not. A proper rotation fix makes the file display correctly everywhere.

How do I permanently fix a photo with wrong orientation?

Rotate the actual pixels in an editor and export the result, which resets the orientation value to normal. The Rotate and Flip tool does this: the downloaded file has correctly oriented pixels and no longer depends on viewers reading the metadata.

Does converting HEIC to JPG cause orientation problems?

It can, if the converter copies the pixels but drops the EXIF orientation note. The safest order is to fix the orientation first, then convert the corrected file. If a converted file already looks sideways, rotate the converted file directly.

Can EXIF data reveal where my photo was taken?

Yes. The same metadata that stores orientation can also store GPS coordinates, the camera model, and the date. Rotating an image in the CompressMyPic tool strips GPS tags on export, and the metadata viewer and remover tools let you inspect and delete the rest.

Related guides

Share this guide

← Back to the blog