You take a photo on your phone. It looks perfect. You email it to someone or upload it to a website — and it shows up sideways. Or upside down. Or fine on one device but rotated on another.
This is one of the most common and frustrating image problems, and it's caused by something most people never see: the EXIF orientation tag. This guide explains why photos display incorrectly, how to fix them with a quick online rotation, and how to prevent orientation issues going forward.
Why Photos Appear Sideways
The problem starts with how phone cameras work.
The Camera Sensor Is Fixed
Every phone camera has a sensor mounted in a fixed position. When you hold your phone vertically (portrait) and take a photo, the sensor still captures the image in its natural orientation — which is landscape.
The phone doesn't physically rotate the pixels. Instead, it records a small metadata tag called EXIF orientation that tells software: "Display this image rotated 90 degrees clockwise."
Software Must Read the Tag
Here's where things go wrong. Some software reads the EXIF orientation tag and displays the image correctly. Other software ignores it and shows the raw sensor data — which means a portrait photo appears sideways.
Software that usually handles EXIF correctly:
- iPhone/Android Photos apps
- Modern web browsers (Chrome, Firefox, Safari, Edge)
- Social media platforms (Instagram, Facebook, Twitter)
Software that sometimes ignores EXIF:
- Older versions of Windows Photo Viewer
- Some email clients
- Certain web CMS platforms
- Older image processing libraries
- Some printing services
The Result: Inconsistent Display
The same photo can appear correctly on your phone, sideways in an email, and upside down when printed — all because different software handles the EXIF tag differently.
How to Fix Photo Orientation
Quick Fix: Rotate Online
The simplest solution is to physically rotate the image pixels so the orientation is correct regardless of EXIF tags.
BestPNG's rotate tool does this:
- Go to bestpng.com/tools/rotate
- Upload the incorrectly oriented photo
- Rotate until the image appears correct (90 CW, 90 CCW, or 180)
- Download the corrected image
The downloaded image has its pixels physically arranged in the correct orientation and the EXIF orientation tag is reset to "Normal." It will display correctly everywhere.
Fix on Mac
Using Preview:
- Open the image in Preview
- Go to Tools → Rotate Left or Rotate Right
- Save (Cmd+S)
Preview physically rotates the pixel data, fixing the issue permanently.
Fix on Windows
Using Photos app:
- Open the image in the Photos app
- Click the Rotate button in the toolbar
- Save a copy
Fix on iPhone
In the Photos app:
- Open the photo → tap Edit
- Tap the crop/rotate icon
- Use the rotate button to correct orientation
- Tap Done
Fix on Android
In Google Photos:
- Open the photo → tap Edit
- Tap Crop
- Use the rotate button
- Save copy
Batch Orientation Correction
When you have many photos with incorrect orientation, fixing them one by one is tedious. Options for batch correction:
Command-Line Tools
The exiftool utility can strip EXIF orientation tags and physically rotate images in bulk:
# Auto-rotate all JPGs in a folder based on EXIF data
exiftool -autorotate -overwrite_original *.jpg
Image Processing Libraries
For developers, libraries like Sharp (Node.js) and Pillow (Python) can auto-rotate based on EXIF:
// Sharp (Node.js)
sharp(input).rotate().toFile(output);
# Pillow (Python)
from PIL import Image, ImageOps
img = ImageOps.exif_transpose(Image.open(input_path))
img.save(output_path)
Online Batch Tools
For non-technical users, uploading multiple images to BestPNG's rotate tool and applying the same rotation is a practical approach for moderate numbers of files.
Understanding the 8 EXIF Orientations
The EXIF orientation tag has 8 possible values, covering all combinations of rotation and mirroring:
| Value | Transform |
|---|---|
| 1 | Normal — no transformation needed |
| 2 | Mirror horizontally |
| 3 | Rotate 180 degrees |
| 4 | Mirror vertically |
| 5 | Mirror horizontally, then rotate 270 CW |
| 6 | Rotate 90 CW |
| 7 | Mirror horizontally, then rotate 90 CW |
| 8 | Rotate 270 CW (or 90 CCW) |
Values 1, 3, 6, and 8 are the most common in real-world photos. Values 2, 4, 5, and 7 involve mirroring and are rare in normal photography.
Prevention: Avoiding Orientation Problems
Shoot in the Right Orientation
Some photographers always shoot landscape to avoid orientation issues entirely. This works for landscapes and product shots, but obviously not for portraits or vertical content.
"Bake" Orientation Before Sharing
Before sharing photos via email, uploading to a website, or sending to a print service:
- Open each photo
- Verify it displays correctly
- Re-save it (this usually bakes the rotation into the pixel data)
- Share the re-saved version
Use Modern Software
If you're building a website or application, ensure your image processing pipeline respects EXIF orientation. Most modern frameworks handle this automatically, but verify with test images in all 8 orientations.
Configure iPhone to Use "Most Compatible"
Setting your iPhone camera to Settings → Camera → Formats → Most Compatible uses JPG instead of HEIC and can reduce (though not eliminate) orientation quirks with certain software.
Why This Problem Still Exists
You might wonder why, decades into digital photography, this problem hasn't been solved universally. Several factors:
- Backward compatibility — rotating pixels is destructive for JPG (requires re-compression), so the metadata approach was designed to avoid quality loss
- Fragmented software ecosystem — thousands of applications handle images, and not all follow the same standards
- Legacy systems — old software and libraries that predate widespread EXIF orientation adoption are still in use
- User awareness — most users don't know EXIF orientation exists, so they can't diagnose the problem
The trend is positive — modern browsers and platforms handle EXIF orientation correctly. But until legacy software is fully phased out, manual rotation remains a necessary tool.
Frequently Asked Questions
Will rotating a JPG reduce image quality?
Rotating by exactly 90, 180, or 270 degrees can be done losslessly for JPG images (without re-compression). Many tools support this. For other angles, re-compression is required, which causes slight quality loss.
My photo looks correct on my phone but sideways on my computer. Which is "right"?
Your phone is displaying it correctly based on the EXIF tag. Your computer software is ignoring the tag. The intended orientation (what you saw when you took the photo) is the "correct" one. Rotate it on your computer to match.
Can I check what EXIF orientation a photo has?
Yes. On Mac, open the image in Preview and go to Tools → Show Inspector → EXIF tab. On any platform, the free command-line tool exiftool shows all EXIF data including orientation. Online EXIF viewers are also available.
Does removing EXIF data fix orientation problems?
Only if you physically rotate the pixels first. If you strip EXIF data without rotating, the orientation tag is gone and the image will display in its raw sensor orientation — which may be sideways. Always rotate first, then strip EXIF if needed.
Do screenshots have EXIF orientation issues?
No. Screenshots are captured directly from the screen buffer in the correct orientation. They have no rotation issues because no physical camera sensor is involved.
Conclusion
Photo orientation problems are frustrating but simple to fix once you understand the cause. The EXIF orientation tag tells software how to display the image, but not all software listens. The permanent fix is to physically rotate the pixels to the correct orientation.
BestPNG's free rotate tool handles this in seconds — upload, rotate, download, done. The corrected image will display correctly on every device and in every application.