photomopOpen the studio

File formats

Orientation tag

Also called exif orientation, rotation tag or sideways photo. Here is what it means, when it changes what you export, and what people get wrong.

File formatsRuns on your deviceUpdated 10 August 2026

The short answer

The orientation tag is an EXIF value from 1 to 8 that tells software how to rotate or flip a photo for display. The pixels are stored the way the sensor read them, so when a program ignores the tag, the photo appears sideways or upside down even though it looked fine on your phone.

Updated

The short version

Orientation tag at a glance

Quick facts about Orientation tag: where it lives, valid values, upright, no correction, rotate 90 clockwise to display, permanent fix, formats affected
Quick factDetail
Where it livesThe EXIF Orientation tag, number 0x0112
Valid values1 to 8
Upright, no correctionValue 1
Rotate 90 clockwise to displayValue 6
Permanent fixRotate the pixels, then set the tag to 1
Formats affectedJPEG, HEIC, TIFF and anything carrying EXIF

Slide the table sideways to see every column.

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

Because your phone reads the tag and the other software does not. When you turn the camera on its side, most phones do not physically rotate the captured pixels. They record the frame as the sensor saw it and write a note saying which way up it should be shown, and your gallery app honours that note.

Trouble starts when the file meets something that skips the note: an older upload script, a thumbnail generator, or a tool that strips metadata for privacy and rotates nothing on the way out. The pixels were always sideways. Only the instruction to correct them has gone.

What do the eight values mean?

Each value describes the correction a viewer must apply to display the image correctly:

  • 1 upright, no change needed
  • 2 mirrored horizontally
  • 3 rotate 180 degrees
  • 4 mirrored vertically
  • 5 mirrored horizontally, then rotate 270 degrees clockwise
  • 6 rotate 90 degrees clockwise
  • 7 mirrored horizontally, then rotate 90 degrees clockwise
  • 8 rotate 270 degrees clockwise

You meet 1, 3, 6 and 8 constantly and the mirrored values rarely. Values 6 and 8 are behind almost every sideways upload.

How do you fix a sideways photo for good?

Bake the rotation into the pixels, then reset the tag to 1. There is no instruction left to ignore, so the photo is upright in every viewer and every uploader. A crop, resize or re-save that applies the rotation first does this for you, provided the tool writes the corrected tag afterwards.

What does not fix it is rotating in a viewer that only rewrites the tag. Anything that ignores tags still shows the original sideways pixels. If a photo keeps flipping back when you upload it, that is almost always what happened.

What people get wrong about orientation tag

Each one is a real failure mode, not a style preference.

  1. Rotating a photo in a viewer that only rewrites the tag, so it still uploads sideways.

  2. Stripping EXIF to remove location data without applying the rotation first, which leaves every photo on its side.

  3. Deciding a photo is corrupt because its thumbnail is sideways, when only the thumbnail generator ignores the tag.

  4. Swapping the stated width and height to compensate, which produces a stretched image rather than a rotated one.

Questions people ask

Orientation tag, answered

The follow-up questions people search for once they have the definition.

Why is my photo sideways after I uploaded it?

The upload pipeline ignored or discarded the EXIF orientation tag. Your phone stored the frame as the sensor read it, sideways, with a note saying to rotate it. Software that skips that note shows the raw pixels. Rotating the pixels before uploading solves it permanently.

What does EXIF orientation 6 mean?

It means the image needs rotating 90 degrees clockwise to display correctly, which is what a phone writes when you hold it in one of the two landscape positions. Value 8 is its opposite, needing 270 degrees clockwise, and value 3 means the image is upside down.

Does rotating a JPEG lose quality?

It can. A quarter turn can be done losslessly when the image dimensions suit JPEG's internal block size, and several tools do exactly that. Anything else re-encodes the file, which costs a small amount of quality that is normally invisible after one pass.

From the studio

Tools that do this

Each one runs on your own device, so the photo stays where it is.

Sources

Where the facts on this page come from. Every link opens the specification, standard or documentation the claim was read at.

Now do it to a photo

Photomop is a photo studio that runs on your own device. Resize, crop, compress, convert, batch edit, remove a background and change one all work in the browser tab you are reading this in, at full resolution and with no watermark. The on-device page shows you how to check that the photo stays put.