Home › Image Tools › Fix Image Orientation

Fix Image Orientation

Photos that look upright on your phone but appear sideways or upside down after uploading have an EXIF orientation tag that some apps ignore. This tool rotates the actual pixels to match the tag and resets it to 1, so the picture shows the right way up everywhere.

Last updated:

Advertisement
Advertisement

How to use the Fix Image Orientation

  1. Add your photos by dropping them on the box or clicking Choose photos. A sample sideways photo is loaded so you can see how it works.
  2. Compare the previews. As stored shows the raw pixels that tag-blind apps display; Fixed shows the upright result.
  3. Use the rotate buttons if a photo has no orientation tag but is still sideways.
  4. Choose quality and metadata options. Keep metadata copies date, camera and location into the fixed file.
  5. Download each photo, or click Download all as ZIP.

EXIF orientation values explained

The Orientation tag (EXIF tag 274, hex 0x0112) tells viewers how the stored pixels must be transformed to appear upright. This tool performs that transform permanently and then writes Orientation = 1.

ValueHow the stored image looksWhat the fix doesTypical source
1UprightNothingLandscape shots, edited files
2Mirrored left to rightFlip horizontallySome front cameras
3Upside downRotate 180°Phone held upside down
4Mirrored top to bottomFlip verticallyRare, scanners
5Mirrored and turnedFlip horizontally, rotate 90° leftFront cameras in portrait
6Lying on its left sideRotate 90° right (clockwise)Phone held upright (most common)
7Mirrored and turnedFlip horizontally, rotate 90° rightFront cameras in portrait
8Lying on its right sideRotate 90° left (counterclockwise)Phone held upright, rotated the other way

Where orientation problems show up

  • Older desktop software and some CMS plugins read the pixels and ignore the tag.
  • Tools that strip metadata (some compressors and upload forms) remove the tag but keep the sideways pixels.
  • Print and photo-book services sometimes crop or place images by raw dimensions.
  • Code that draws images on a canvas or reads width and height from the file header can get the wrong aspect ratio.

Baking the rotation into the pixels avoids all of these. To check what a photo's tags say before or after fixing, open it in the Image Metadata Viewer. To rotate or flip a picture by hand without any EXIF involvement, use Rotate and Flip Image.

Frequently asked questions

Why do my photos show sideways after uploading?

Phone cameras save the picture in the sensor's fixed landscape layout and write an EXIF Orientation tag that says how to rotate it for display. Apps that read the tag show it upright, but some websites, older programs, email clients and print services ignore it or strip the metadata, so the raw sideways pixels appear.

What does this tool change?

It decodes the photo, rotates or mirrors the pixels exactly as the Orientation tag says, and saves a new image whose tag is 1 (normal). The picture now looks the same in every app because there is nothing left to interpret.

What do the EXIF orientation values 1 to 8 mean?

1 is normal. 3 is upside down. 6 means the stored image must be turned 90 degrees clockwise and 8 means 90 degrees counterclockwise; these two are the most common on phone photos. 2, 4, 5 and 7 are mirrored versions, mostly produced by front cameras and scanners.

Is the fix lossless?

Not completely. JPG pixels must be decoded and saved again, which adds a tiny amount of compression. At the default quality of 95 the difference is not visible. PNG files are saved losslessly.

Will I lose the date and location of my photos?

No, as long as Keep metadata is ticked. The original EXIF block is copied into the fixed file with Orientation set to 1, the pixel dimensions updated and a new matching thumbnail. Untick it if you want the output stripped of all metadata.

What if a photo is sideways but has no orientation tag?

Then the pixels themselves are sideways and the badge says Already upright. Use the rotate left or right buttons on that card to turn it, and download the corrected version.

Does it work with iPhone HEIC photos?

Most browsers cannot decode HEIC, so convert those with HEIC to JPG first. That conversion already produces upright pixels.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Rotate & Flip ImageRotate images by any angle or mirror them, one or many at once.Image Metadata ViewerSee a photo's EXIF data: camera, lens, exposure, date and GPS location, then strip it in one click.EXIF RemoverRemove EXIF, GPS location and other metadata from JPG, PNG and WEBP photos.EXIF EditorEdit photo EXIF and IPTC: date taken, camera, GPS location, copyright and caption, in batch.Image CompressorShrink images to a target size like 100 KB.Image ResizerResize images to any size without losing quality.Compress Image to 20KBShrink any photo to under 20KB (or any target size).Compress Image to 100KBShrink any photo to under 100KB automatically, with the best quality that fits.Compress JPEG to 50KBShrink photos to under 50KB for forms, passports and exams.Image CropperCrop images, including circle crops for profile pictures.Collage MakerCombine photos into a grid collage.Aspect Ratio CalculatorCalculate image sizes for 16:9, 4:3 and any ratio.Image Border AdderAdd a border, rounded corners, matte and shadow to a photo onlineImage SplitterSplit an image into a rows × columns grid of tiles and download them one by one or as a ZIP.Image CombinerCombine images side by side, stacked or in a grid, with spacing, background color and alignment.Image UpscalerEnlarge images 2×, 3× or 4× with Lanczos-3 or bicubic resampling and optional sharpening.Image DPI ChangerChange the DPI of JPG and PNG images without re-encoding, and see the print size.Pixel Art MakerDraw pixel art on an 8 to 64 px grid with palettes, fill and mirror, then export PNG or SVG.Social Media Image ResizerResize photos for Instagram, Facebook, X, LinkedIn, YouTube, TikTok and Pinterest in one go.Image Diff CheckerCompare two images and highlight every changed pixel, with % difference and a swipe slider.Emoji to ImageTurn any emoji into a PNG image from 64 to 1024 px, transparent or on a color, in batch.Text to ImageTurn text into a PNG image with your font, size, colors, padding, alignment and wrapping.SVG OptimizerMinify SVG files: strip metadata, comments and editor junk, round numbers, compare sizes.Compress Image to 200KBShrink any photo to under 200KB automatically, with the best quality that fits.Crop GIFCrop an animated GIF with a draggable box or aspect ratio presets, keeping every frame.Crop Image into ShapeCrop a photo into a heart, star, hexagon, circle, speech bubble or custom SVG shape as a PNG.Drawing Grid MakerPut a numbered grid on a reference photo to copy it by hand. Print it or save as PNG or PDF.Resize GIFResize an animated GIF by width, height or percent, skip frames and compare file sizes.Square Image Maker (No Crop)Make any photo square, 4:5 or 9:16 without cropping, with a color, blur or gradient fill.Text Behind ImagePut text behind the subject of a photo: AI cut-out, fonts, colors, rotation and PNG export.Bulk Image ResizerResize many images at once by width, height, percent or longest side and download a ZIP.JPG to WordTurn photos and scans into an editable Word document with OCR. Batch images, 30+ languages.PNG CompressorShrink PNG files up to 80% with smart color reduction that keeps transparency. Batch + ZIP.Photo Measurement ToolMeasure distances, areas and angles on a photo using a card or ruler in the picture for scale.Pupillary Distance MeasurementMeasure your PD in mm from a webcam or photo with a card for scale, single and dual PD.Brighten ImageBrighten dark photos with auto exposure, shadows lift and highlight protection. Batch, no upload.Change Image Aspect RatioConvert photos to 1:1, 4:5, 16:9, 9:16, 3:2 or any ratio by crop, color padding or blur fill.Crop Photo for PrintCrop photos to 4x6, 5x7, 8x10, 11x14 or A4 print ratios with a DPI quality check, then export.Auto Face CropDetect faces and crop centered headshots at any ratio and padding, in batch.Content-Aware Image ResizeResize images with seam carving to keep people and objects intact; protect or remove areas.Scanned Photo SplitterSplit several photos from one flatbed scan: auto-detect, straighten and crop each, then ZIP.Long Screenshot StitcherStitch scrolling screenshots into one long image with automatic overlap detection.Image to Minecraft Pixel ArtConvert any image into Minecraft block pixel art with block counts, stacks and a row-by-row build guide.Pixel Art UpscalerUpscale pixel art and sprites crisply with nearest neighbor, Scale2x/3x or xBR, keeping transparency.Resize Image in CM and InchesResize a photo to an exact print size in cm, mm or inches at any DPI. JPG, PNG or PDF.Online Screenshot ToolCapture your screen, a window or a tab, then crop, annotate and copy or save it as PNG.Trim Image WhitespaceAuto-crop white borders or transparent padding from images with tolerance and margin. Batch.Image Format DetectorFind an image's real format from its magic bytes, see size and bit depth, and fix a wrong extension.Increase Image Size in KBMake a photo's file size bigger (e.g. 50 KB or more) to pass minimum upload limits, with no visible change.Megapixel CalculatorTurn width × height into megapixels, aspect ratio and max print size, or MP back to pixels.Volleyball Rotation ToolEnter 6 players and a 5-1, 6-2 or 4-2 system to see all rotations and serve receive on a court.
See all 49 Resize, Crop & Compress →