Image tools

Fix image orientation when a photo uploads sideways

Use this tool to fix image orientation when a JPEG looks upright in one viewer but sideways after upload. It can normalise recognised JPEG orientation; PNG and WebP inputs currently return unchanged. There is no manual turn-left or turn-right control here. If the source has no useful orientation instruction, rotate a copy in an editor and inspect the saved result.

Local tool available

What this tool does

Normalise supported image orientation using real decoded pixels.

Loading the file tool…

Why two viewers can disagree

A photo has both stored pixels and, in some files, an instruction about how those pixels should be displayed. A camera can save the image in one arrangement and attach an orientation value saying that it should be turned for viewing. A program that follows that instruction can display a different result from one that ignores it.

This explains the familiar situation where a portrait photo looks correct on your phone, then appears sideways on a form. The visible preview alone does not tell you which arrangement is stored. It is worth checking orientation before making several manual turns, because a viewer may already be applying a rotation that another program does not understand.

What this tool can correct

For a JPEG that reaches the re-encoding step, the normaliser saves the browser’s decoded view into a new picture. This can make the orientation part of the exported pixels rather than relying on the original instruction. You still need to inspect the result: file variants and browser decoding behaviour can affect what is available.

If the recognised JPEG orientation already indicates an upright image, the tool returns a copy with the original bytes preserved. PNG and WebP currently take that unchanged-output path too; their orientation metadata is not used to make a correction. That avoids an unnecessary encoding step. It also means this operation is not a general metadata remover. An already-upright file can retain its original metadata because there was no rotation to normalise.

The tool does not look at a horizon, face or line of text and decide which way is visually correct. A photograph that was genuinely taken sideways and has no useful orientation information may remain sideways. Use a manual image editor for that case. Changing a camera instruction and choosing an artistic rotation are different tasks.

Compare the source and result carefully

Choose one JPG, PNG or WebP file and run the operation. Download the result and open it in a trusted viewer. Check the position of the top edge, any lettering and the full picture boundaries. If the original looked correct on your device, keep it open for comparison instead of judging the new file from memory.

Test the saved copy in the receiving form if the instructions allow it. Use a fresh filename so you can tell the new upload from a cached preview of the old one. A site that still shows the previous image may be reusing an existing thumbnail or waiting for you to save the replacement, rather than rejecting the orientation change.

Do not keep rotating without checking

Repeatedly turning a photo in different viewers can produce a confusing result. One application may update the orientation instruction, another may rewrite the actual pixels, and a third may display both in a way you did not expect. Start again from the original if you lose track of what has changed.

For a single sideways photograph, a useful sequence is to identify the intended top edge, make one correction, save a clearly named copy and reopen it. If a manual editor is necessary, use its export or save-a-copy option. Avoid making several uncertain changes to the only version of an important photo.

Rotation can change the reported dimensions

A portrait image and a landscape image can contain the same number of pixels with width and height swapped. A receiving form may ask for a minimum width, a minimum height or an aspect ratio, so orientation and dimensions should be checked together. Correctly upright does not necessarily mean the picture fits the required shape.

For example, a photo that becomes taller than it is wide after normalisation may still be unsuitable for a wide banner. Stretching it into that space would distort the subject. Choose a suitable image or use a permitted crop in an editor, keeping important content inside the visible area. This orientation tool is not a crop control.

Use the appropriate workflow for documents

A scan saved as a JPEG can be treated as an image here. A PDF is different: its pages have their own geometry and rotation information. If a document page is sideways inside a PDF, use the PDF page rotation tool rather than converting every page into an image just to turn it.

When checking a photographed document, look beyond the headline orientation. Names, small text, page edges and reference numbers need to remain readable. Straightening a tilted page, removing perspective distortion and rotating by a right angle are separate operations. This tool should not be described as a scanner that performs all of them automatically.

Quality, metadata and your original

When the image is re-encoded, the resulting file can differ in byte size and appearance. A JPEG save can change fine detail. Inspect the output when small text or faithful image reproduction matters. Keep the original as the reference and use the corrected version as a submission copy after checking it.

Re-encoding does not copy source image metadata, but the unchanged upright path preserves the original file bytes. If your purpose is to remove location or camera information, choose the dedicated metadata-removal workflow and review its limits. It is not safe to assume that an orientation operation also performed an unrelated privacy task.

If the image is rejected by the tool

The operation accepts JPG, PNG and WebP, but PNG and WebP are currently returned unchanged. HEIC and GIF are not accepted by this orientation workflow. Each input must be within 25 MiB. The 18-million-pixel decoding limit applies when a JPEG needs re-encoding; it does not describe the unchanged-output path. Browser memory and source validity can also prevent processing, even when a thumbnail is available elsewhere.

If an image is too large, export a suitable copy from its original application. If the format is unsupported, use a compatible editor that can read it and save an upright copy. Do not rename it as JPEG to get past a picker. A filename change provides neither the missing decoder nor a genuine orientation correction.

Distinguish a turned image from a mirrored image

A mirrored picture is reversed left to right, so lettering can read backwards even when the top edge is in the right place. A right-angle rotation does not solve that problem. Check a recognisable word or asymmetric feature before deciding which correction is needed, particularly for photographs taken using a front-facing camera.

This page does not offer a manual mirror control. If the intended picture needs reflection or another visual edit beyond its decoded orientation, use an editor with that explicit control and compare a saved copy. Avoid guessing through repeated rotations, which can leave the image upright but still reversed.

Questions that come up

Can I rotate any picture by 90 degrees here?

This page normalises supported orientation information; it does not provide a manual rotation selector. For an image with the wrong visual orientation and no useful metadata, rotate a copy in an image editor. For PDF pages, use the separate PDF rotation tool.

Why does the output say the file was already upright?

The recognised orientation did not require correction, so the tool preserved the original bytes. If the picture still looks wrong, its stored visual content may need a manual turn, or the destination may be showing an old preview. Compare the saved file before making another change.