fixmint

Why a photo looks sideways, and how to turn it upright

By · · 4 min read

A sideways photo is usually not damaged. The camera saved the pixels in the orientation the sensor recorded, and it added a tag that says how the picture should be turned for viewing. Viewers that read the tag show the photo upright, and others show it on its side. Turning the pixels and saving a new copy fixes it everywhere, and the tool below does that in your browser.

Rotate imagePhoto is sidewaysOpen

What the orientation tag is

Most cameras write an Exif orientation tag into the file. It is a number from 1 to 8 that describes how the stored pixels must be turned or mirrored before they are shown. A photo taken with the phone held upright is often stored as a wide grid, with the tag saying to turn it a quarter turn clockwise. The grid itself is correct. Only the viewer has to read the instruction.

Why it looks right in one place and wrong in another

Phone photo apps, the Windows and macOS photo viewers, and modern browsers read the tag and show the picture upright. Other places may not. A website upload form can show a thumbnail that ignores the tag, an older editor can open the raw grid, and some resizing steps drop the tag and leave the pixels on their side. The file is the same; the reader simply does not follow the instruction.

What you seeLikely reasonFix
Upright on the phone, sideways on a websiteThe site ignores the tagTurn the pixels and upload the new copy
Upright in one app, sideways in anotherThe second app does not read the tagSame fix
Sideways in every viewerThe tag is missing or wrongTurn the pixels, then check the new copy
Only a thumbnail is sidewaysThe thumbnail was made without the tagRe-save the full photo first

Turn the pixels, then save a copy

Drop the photo onto the rotation tool. The tool applies the tag first, so the preview starts upright, and then your buttons add to it. Rotate left or right moves the photo a quarter turn, and Turn 180 turns it upside down. Each press adds to the last one, so two presses of rotate right make a half turn. Download the copy and upload that copy, not the original.

Rotate and flip are different

Rotating keeps the picture the same way round. Flipping mirrors it, so left becomes right. Use flip when a picture was reversed, for example a photo of a sign with its writing back to front. A flip reverses text and any lopsided detail, so use it only when the picture really is the wrong way round.

Keep the quality

The tool decodes the photo and saves it again, which is how it can apply the turn in a browser. A JPG saved again loses a little detail each time, though one save is rarely visible. A PNG is lossless, so its pixels stay exact. Some desktop editors can rotate a JPG without re-encoding it, which avoids that loss, so they are the better choice for a large batch of JPG files that you will keep for years. Whatever you use, keep the original and rotate from it, rather than rotating a copy you already saved and reopened again and again.

Check the copy before you share it

The saved copy is drawn on a new canvas, so the camera and location tags of the original are not carried over. That also removes the date the photo was taken. If you want to keep the original date, keep the original file. If you only need the location gone, the remove photo location tool removes it without changing the picture.

Check the result at full size. A portrait photo that was stored as a wide grid should now be tall, with its width and height swapped. If the subject is upright, the copy is finished.

Rotating several photos

Drop the whole set at once. The same turn applies to every photo, and the first photo is shown in the preview so you can judge it. When two or more photos are done, use Download all to save them as one ZIP file. Check a few of them before you upload the set, because a batch from one camera usually shares the same orientation, but mixed sets from several devices do not.

Quick answers

Why is my photo sideways only on the website? The website ignores the orientation tag, or it removed the tag while resizing. Upload a copy with the pixels already turned.

Does rotating the photo keep the date? No. The copy holds the picture only, so the camera and date tags are not carried over. Keep the original file if you need the date.

Can I rotate a whole folder at once? Yes, drop all the photos together. Each photo receives the same turn, so check that the set really shares one orientation before you download.

Cover of Digital Workflow ToolkitDigital Workflow Toolkit

Recipes, templates and patterns for chaining small file jobs (convert, rename, compress, merge) into workflows that run the same way every time.

$19.00 Get it on Gumroad →