Image sharing

Why Is My Photo Sideways After Uploading? Fix Image Rotation

Fix a photo that turns sideways after uploading. Learn how EXIF orientation works, save an upright copy and troubleshoot rotated website thumbnails.

By Pixilo · Updated

Fix a sideways photo in six steps

Keep the original and work on a sharing copy. Pixilo's rotation tool accepts one JPG, PNG or WebP up to 25 MB. Images must be no more than 8,000 pixels on either side and 32 million pixels in total. A 48-megapixel original exceeds that pixel limit even if its file size is small. Use your photo editor to export a smaller copy first if either limit is exceeded. For HEIC, start with HEIC to JPG and check the converted file.

  1. Open Rotate and flip image and select your supported image.
  2. Check the preview. If it is already upright, leave the rotation unchanged. The browser may already have read the photo's orientation instruction; downloading a fresh copy saves that displayed orientation into the picture.
  3. Turn it only if needed. Choose Rotate left 90° or Rotate right 90°. Use two turns for an upside-down photo. Leave the flip options off unless the image is mirrored.
  4. Choose Download PNG. Pixilo redraws the image in your browser and saves a new copy. Your original stays unchanged, and the photo is not sent to Pixilo's server.
  5. Prepare the final upload file. A photo saved as PNG can be much larger than the original JPG. If the website requires JPG, use PNG to JPG. If it has a file size limit, then use Compress image to size and check the result against that limit.
  6. Reopen the final download and upload that file. Check its direction, image quality and file size. Give it a distinct name, such as portrait-upright.jpg, and inspect both the uploaded thumbnail and the larger view.

If the final file is upright but the website still turns it, keep that file unchanged and follow the checks below. Repeatedly rotating a correct copy will not fix a website processing problem.

A yellow flower photo shown sideways in one browser window and upright in another, connected by a rotation arrow.

Why does it look right on my phone but sideways online?

A phone photo can contain sideways pixel data plus an instruction telling an app which way to display it. For many JPG photos, this instruction is the EXIF orientation tag. EXIF is metadata: information stored alongside the picture.

Your gallery may follow that instruction, while a website's image processing removes it before turning the pixels. Another failure is applying the same turn twice. Modern browsers generally use embedded orientation information by default; the problem is not simply that browsers ignore it. See MDN's explanation of image orientation.

Saving the correctly displayed picture as a new image applies the direction to its pixels. Removing the orientation tag alone does not do this and may leave a photo sideways. The photo metadata guide covers embedded information separately.

Find where the direction changes

Compare your final saved file with the image on the website. A photo library preview, an exported file and a website thumbnail may be different copies.

Choose the next check from what you see
What you seeNext step
The final saved file is already sidewaysReturn to the rotation tool, correct the preview and save a new copy
The saved file is upright, but every uploaded size is sidewaysConfirm the selected file, then contact the website owner about upload processing
The larger view is upright, but the thumbnail is sidewaysAsk the website owner to check generated thumbnails and stored older copies
The same image is upright on its own but sideways on the pageCheck the page editor's rotation settings or ask the owner to check page styling

On a computer, right-click the website image and look for Open image in new tab, then compare it with the page. On a phone, touch and hold the image and look for an option to open or save it. Menu names vary, and some sites do not offer these actions. If you cannot access the image separately, send the page address and a screenshot of the problem to the website owner.

A small preview may use a different file from the larger view. Phone and desktop layouts can also use different copies, as explained in the responsive images guide. Note which view is wrong when reporting the problem.

If the corrected file is still sideways after upload

  1. Check the file you selected. Upload the distinctly named corrected copy as a new image. Make sure the page uses that new item rather than the old library image.
  2. Check a freshly loaded page. Reload it and, if possible, open it in a private browsing window. This can help spot an old local view, but it does not clear the website's own stored copies.
  3. Report the exact mismatch. Send the corrected file, page address and a screenshot to the website owner. Say whether the thumbnail, larger view or both are sideways.

If you manage the website, check the image rotation controls in your page editor. If the uploaded original is correct but a generated size is wrong, investigate image processing before recreating that size and clearing the relevant site or image delivery cache. Visitors usually cannot perform those steps.

Technical note for website maintainers

Read the source orientation, apply it once to the pixels, then remove or reset the old orientation instruction before generating derived images. Retaining an old instruction after turning the pixels can cause a second turn. Sharp's autoOrient documentation describes this operation, including mirrored orientations.

If the exact same served image is upright in its own tab but rotated on the page, inspect page rotation styles as well. Avoid applying a blanket 90-degree correction to all images.

Does the photo need rotating or flipping?

Rotation turns the picture: use it when a person's head points toward the side or the image is upside down. Flipping mirrors it: a horizontal flip reverses left and right, such as text that reads backward. Check a sign or familiar detail before using it, especially with selfies.

A quarter turn swaps width and height without cropping the image. A slightly tilted horizon needs a straightening tool with smaller angle adjustments; Pixilo's rotation tool turns in 90-degree steps.

Frequently asked questions

Do I need to rotate a photo that already looks upright in Pixilo?

No. Leave the rotation unchanged and download the PNG. The browser's correctly displayed image is redrawn into the new file. Check the download and the destination rather than adding an unnecessary turn.

Does converting to PNG always fix rotation?

No. The conversion must save the picture in the intended direction. Changing a filename extension does not convert or rotate it. PNG can also be too large or unsupported by the destination, so check its upload requirements.

Will this reduce image quality?

PNG export avoids another lossy JPEG compression step, but browser re-export does not promise to preserve every original color profile, metadata field or HDR feature. Converting the result to JPG adds lossy compression, so review details and avoid repeated JPG exports. Keep the original for archiving.

Can I fix a whole folder at once?

Pixilo's rotation tool edits one image at a time. A folder may contain mixed directions and mirrored photos, so check each preview instead of applying the same turn to every picture.

Make an upright sharing copy

Check the preview, save the corrected copy and inspect the final upload.

Fix image rotationNeed JPG? Convert the saved PNG →