Impmage
FR EN ES
Image rotation

Rotate and fix image orientation online

Your photo looks perfect on your phone. It displays sideways on your website. That's not a bug, it's a decision your device made for you. This guide explains why it happens, how to rotate an image to permanently fix the orientation, and the difference between correcting pixels or just the EXIF tag.

6 min read Rotate and fix image orientation online

En résumé

Rotating an image online applies a 90°, 180° or 270° rotation and records the correction in the file, unlike simple display. Some tools also fix the EXIF Orientation tag, preventing re-display issues when different software reads this tag differently.


Why your photo displays in the wrong direction

Camera sensors (whether on a smartphone or compact camera) physically record the image in a fixed orientation: landscape. When you photograph holding your phone vertically, the sensor hasn’t “rotated”. It captured a landscape image and noted in the file’s metadata: “rotate the display 90°”.

Déf

EXIF Orientation tag

Metadata embedded in JPEG files that tells the viewer how to orient the image. Value 1 = right, no rotation. Value 6 = 90° clockwise rotation required. The sensor writes this tag, it's up to the software to read it.

Aussi appelé : EXIF Orientation, EXIF rotation, metadata orientation

Ex : An iPhone in portrait mode writes Orientation = 6 in the file. iOS Photos reads it and displays the photo upright. Some CMS ignore it and display the photo sideways.

It’s this tag that most applications read to display your photo correctly. iOS, macOS, Android, Chrome: they respect it. Some software, servers and platforms don’t read it. Result: the same photo displays correctly in your gallery and sideways on your website.

The correction consists of either re-encoding the file with pixels physically rearranged (real rotation) or resetting the Orientation tag to 1 without touching pixels. Both display the photo upright — but not with the same compatibility guarantees.


Rotate an image with Impmage in 4 steps

Processing happens client-side. No file leaves your device.

Rotate an image with Impmage

  1. 1

    Load the image

    Drag your image into the drop zone or click 'Choose a file'. Accepted formats: JPEG, PNG, WebP and other common image formats.

    Load the image at its original resolution — avoid starting from an already-compressed or reduced version.

  2. 2

    Access the Rotate tool

    Click the 'Rotate' tab in the toolbar. Rotation buttons appear: 90° left, 90° right, 180°, horizontal flip, vertical flip.

    If your photo is tilted to the right (subject's head to the left), choose 90° right rotation to straighten it.

  3. 3

    Choose the rotation

    Select the desired angle. The preview updates instantly. You can chain multiple rotations before downloading.

    For an upside-down photo (180°), one click is enough — no need to do 90° twice.

  4. 4

    Download the corrected image

    Click 'Download'. The file is exported with pixels rearranged in the new orientation. The correction is permanent, the file will display correctly in all contexts.

    If you also want to compress or convert the format, chain the tools in Impmage before final download.


Flip an image: horizontal and vertical symmetry

Rotating and flipping are two distinct operations. Confusion is frequent.

Rotating turns the image around its center: 90°, 180°, 270°. The content stays the same, its orientation in space changes.

Flipping creates a mirror effect. Horizontal flip (left-right flip) reverses elements from left to right, as if the image were reflected on a vertical axis. Vertical flip reverses top and bottom.

In practice, horizontal flip mainly fixes an image taken “in mirror”, like a front-facing selfie on some phones. Vertical flip is less common, used occasionally for creative or technical needs.

Selfie in mirror: normal or flipped?

The front camera of most smartphones shows a mirrored preview so you see your own reflection. But when recording, some devices flip the image back, others don’t. If your selfie looks “reversed” (text readable backwards, mole on the wrong side), a horizontal flip in Impmage fixes it in one click.


Pixel rotation vs EXIF correction: what’s the difference?

Two approaches exist to fix orientation. They produce a visually identical result, but not the same compatibility.

Pixel rotation vs EXIF Orientation tag correction

CriterionRotate pixels (re-encode)EXIF tag fix only
Pixels rearranged in fileYesNo
EXIF Orientation tag after fixReset to 1 (normal)Reset to 1 (normal)
Display compatibilityUniversal: all contextsDepends on EXIF tag respect
Risk of quality loss (JPEG)Possible if re-encoding with lossNone (pixels untouched)
Result in modern browsersCorrectCorrect
Result in contexts ignoring EXIFCorrectPhoto displays sideways

Pixel rotation is more robust. EXIF-only fix preserves quality but depends on good viewer behavior.

For web publishing (site, social network, email), pixel rotation is the most reliable method. It eliminates the tag as a source of problems rather than depending on it.

Impmage rearranges pixels

Impmage’s Rotate tool physically rearranges the file’s pixels. The EXIF Orientation tag is reset to 1 (normal position). Result: the image displays correctly in all contexts, including servers, CMS and tools that ignore EXIF metadata.


Frequently asked questions

How do I rotate an image online without downloading software?
Load your image in Impmage, go to the 'Rotate' tab, choose the desired rotation (90° left, 90° right, 180°), then download. Processing is entirely local — no file is sent to a server. The tool is free and requires no account.
Why does my photo display sideways on my website when it looks correct on my phone?
Your phone reads the EXIF Orientation tag and displays the photo correctly. Your website or CMS ignores this tag and displays the raw pixels, which are recorded in the sensor's orientation. Solution: fix the orientation by rearranging the file's pixels, not just modifying the tag.
Does rotating an image online degrade its quality?
That depends on the tool and format. On JPEG, rotation involves re-encoding, which can slightly degrade quality if the software applies compression on each pass. PNG doesn't suffer losses. For JPEG, prefer a tool that rotates without re-compression, or accept high-quality compression on export.
What's the difference between rotating and flipping an image?
Rotating turns the image: 90°, 180° or 270°. The content stays the same, its orientation in space changes. Flipping creates a mirror effect: horizontal flip reverses left and right, vertical flip reverses top and bottom. Both are used in different contexts — rotation fixes wrong orientation, flipping creates a symmetrical effect or fixes a mirrored selfie.
How do I fix the orientation of a photo on iPhone?
iOS Photos automatically reads the EXIF tag and displays the photo correctly — the issue usually only appears when exporting. To force a permanent correction of pixels (useful before sending or publishing), use a tool like Impmage in the mobile browser. Load the photo, rotate, download, the exported file will have pixels rearranged.
Why does a well-oriented photo on Android display upside-down online?
The behavior is identical to iOS: Android encodes the orientation in the EXIF tag, not in pixels. Platforms ignoring this tag display the image in the sensor's raw orientation. Fix by re-encoding the file with pixels in the right position, then resetting the Orientation tag to 1.
Can you rotate a PNG image online without loss?
Yes. PNG format is lossless: each modification then export preserves exactly the same pixel data. Unlike JPEG, a PNG can be rotated and re-saved multiple times without any degradation.
How do I rotate multiple images at the same time?
Impmage processes one image at a time in its current version. For batch rotation of multiple images, dedicated batch-processing image tools allow this operation. Verify that they actually rearrange pixels and don't just modify the EXIF tag.

Fix your image orientation now

100% local tool: no file leaves your browser. Free, no account, no limits.

Use the Rotate tool
GlitchGhost

GlitchGhost

Independent developer

Independent developer specializing in web performance tools and image optimization.

Web developerPerformance specialistImpmage creator
Partager cet article : X LinkedIn WhatsApp