Why Do Images Sometimes Appear Sideways?
A photo can look fine on your phone but sideways on a website. Learn how EXIF orientation metadata works and how to fix rotated images properly.

You take a photograph with your phone, open it in your gallery, and everything looks perfectly normal. But when you upload the same image to a website or open it in another application, it suddenly appears sideways or upside down.
The photograph itself hasn't necessarily changed. The problem often comes down to how different applications interpret the information stored inside an image file.
This is a surprisingly common issue with digital photographs, particularly those taken with smartphones. Understanding why it happens can help you correct the orientation without unnecessarily reducing image quality.
Your camera doesn't always save a photo the way you see it
When you take a photograph, your phone or camera records the image using its sensor. The sensor has a fixed physical orientation, but you can hold your device vertically, horizontally, or even upside down.
Instead of physically rearranging all the pixels every time you rotate your phone, many devices save the image data in one orientation and include instructions describing how the image should be displayed.
These instructions are commonly stored in the photograph's EXIF metadata.
EXIF stands for Exchangeable Image File Format. It allows compatible image files to contain information such as camera settings, capture dates, and orientation.
When you open the photograph in a modern gallery application, the software reads this orientation information and displays the image correctly.
However, not every application handles the information in the same way.
What is EXIF orientation?
EXIF orientation is a metadata field that tells compatible software how an image should be displayed relative to its stored pixel arrangement.
The orientation value can describe whether an image should be rotated or mirrored before being shown.
There are eight standard EXIF orientation values. They cover the normal orientation, rotations of 90, 180, and 270 degrees, and several mirrored arrangements.
For example, a photograph might contain pixel data stored in a landscape arrangement, while its orientation metadata instructs the viewing application to rotate it into portrait orientation.
An application that follows the instruction displays the photograph upright.
An application that ignores the instruction may display the underlying pixel arrangement instead.
This explains why the same image file can appear correct in one program and sideways in another.
Why does this happen so often with phone photos?
Smartphones are designed to be used in different orientations.
You might take a landscape photograph while holding your phone horizontally, then immediately turn it upright to capture a portrait.
Modern phones usually use motion sensors to determine how the device is being held. The camera software can use that information when recording or processing the photograph.
Depending on the device and application, the resulting file may have its pixels physically arranged in the intended orientation, contain orientation metadata, or use a combination of the two.
Most modern photo galleries handle these variations automatically.
Problems become more noticeable when images move between different devices, websites, or editing applications.
For example, an image may display correctly on your phone but appear rotated after being uploaded to an older content management system or processed by software that does not preserve orientation information.
The issue is not necessarily caused by the phone or the website alone. It can happen because different parts of the workflow interpret or modify the image differently.
Why can an image rotate after being uploaded?
Uploading an image often involves more than simply transferring the original file.
Websites and online applications may resize photographs, generate thumbnails, compress images, or convert them into another format.
During this processing, the software needs to account for the image's orientation.
If an image processor ignores the orientation metadata, it may generate a new image using the original stored pixel arrangement.
The resulting thumbnail could appear sideways even though the original photograph looked correct.
Another possibility is that the processing software removes the EXIF metadata without first applying the required rotation to the pixels.
In that situation, the new image no longer contains the instructions needed to display it correctly.
A well-designed image-processing workflow should interpret the orientation, apply any necessary transformation, and ensure the resulting file displays consistently.
Can converting an image change its orientation?
Yes, depending on the software and the formats involved.
When converting an image from JPEG to PNG or WebP, for example, the application may decode the image, process its pixels, and save a new file.
If it correctly applies the original orientation before saving, the converted image should remain upright.
If it ignores the orientation metadata or removes it without adjusting the pixels, the output may appear rotated.
Different image formats also have different metadata capabilities, and not every converter handles those details consistently.
This is one reason it is worth checking a converted image before deleting the original.
A successful conversion should preserve the intended appearance of the photograph, not merely produce a file with a different extension.
Why rotating a photo doesn't always fix it
You might assume that opening a sideways photograph, rotating it, and pressing Save will permanently solve the problem.
Sometimes it does. But the result depends on how the application performs the rotation.
Some software physically rotates the image pixels and updates the orientation metadata.
Other applications may change only the orientation information, leaving the underlying pixel arrangement untouched.
Both approaches can display correctly in compatible software, but they do not necessarily provide the same level of compatibility.
If the goal is to make an image display consistently across different applications, it is often preferable to save a version with the pixels correctly oriented and the orientation metadata normalised.
For JPEG files, certain tools can perform lossless rotations under suitable conditions. Other editing methods may require decoding and re-encoding the image, which can introduce some quality loss.
The safest approach is to keep the original photograph until you have confirmed that the corrected version displays properly.
How to fix an image that appears sideways
The easiest solution is often to open the photograph in a reliable image editor, rotate it to the correct position, and save or export a new copy.
On Windows, the Photos application can be used to rotate images. On macOS, Preview provides rotation controls.
For images that continue to appear incorrectly after rotation, exporting a new copy may help because the application can save the image with its intended orientation applied.
If the problem occurs only after uploading to a website, check whether the original file displays correctly elsewhere.
This can help determine whether the issue is in the photograph itself or in the website's image-processing system.
You can also inspect the image's metadata to see whether an EXIF orientation value is present.
An image metadata viewer may reveal whether the file contains an orientation instruction, although the absence of this field does not automatically mean the image is incorrectly saved.
Does image orientation affect file size or quality?
Rotating an image does not necessarily change its pixel dimensions or visual quality, but the method used to rotate it matters.
A metadata-only orientation change can leave the underlying image pixels untouched.
A physical rotation of 90 or 270 degrees changes how the width and height relate to one another, but does not inherently require adding or removing detail.
However, if software saves a JPEG photograph by re-encoding it, some quality loss may occur because JPEG normally uses lossy compression.
This is different from simply displaying the image at another angle.
If you are working with important photographs, use a suitable editing application and avoid repeatedly saving compressed versions unnecessarily.
How to prevent orientation problems
Most modern cameras and photo applications already handle orientation correctly, so there is usually no need to change how you take photographs.
The more important consideration is what happens when an image is edited, converted, or uploaded.
If you regularly prepare photographs for websites, online stores, documents, or social media, check that the final exported images display correctly.
This is especially useful when processing many photographs at once.
A single sideways thumbnail may be easy to fix manually, but orientation errors become more frustrating when they affect an entire batch of uploaded images.
When choosing an image conversion or resizing tool, look for one that correctly handles orientation metadata and produces images that display consistently after processing.
For supported files, an image metadata viewer can also help you investigate whether orientation instructions are present.
The difference between how an image is stored and how it appears
A sideways photograph is a good example of how digital images contain more than visible pixels.
The image you see on your screen may depend on both the stored pixel data and instructions that tell software how to display it.
When those instructions are interpreted correctly, everything appears normal. When they are ignored or lost, the photograph may suddenly rotate.
Fortunately, most orientation problems are straightforward to correct once you understand what is happening.
If an image looks right in one application but wrong in another, check how it was saved, whether it contains orientation metadata, and what happened during any conversion or upload.
The problem may have nothing to do with how you held your camera.