How to Rotate and Flip an Image
The photo is upright on your phone, sideways on the website. Nothing is broken — two pieces of software are just disagreeing about a hidden note, and understanding the note explains every sideways photo you've ever seen.
The EXIF orientation trick
Rotating pixels takes work, so cameras cheat: they save the sensor data exactly as captured and write an EXIF orientation tag— a note saying “display this rotated 90°.” Software that honors the tag shows the photo upright; software that ignores it (older browsers, many upload pipelines, some CMSs and email clients) shows the raw sideways pixels. Worse, some pipelines strip EXIF for privacy — taking the orientation note with it.
The permanent fix: physically rotate
Re-saving the image with the pixels actually rotated makes orientation unambiguous — every viewer shows it the same way, tag or no tag. That's what a canvas-based rotate tool does: for a 90° turn, width and height swap and every pixel moves to its new position. No resampling is involved in right-angle rotations, so no quality is lost — unlike arbitrary-angle rotation, which must interpolate.
Rotate vs flip: different operations
Rotation turns the image; flipping mirrors it. The test: text stays readable through any rotation-by-180 but reads backwards after a horizontal flip. You need flipping for the front-camera problem — many phones mirror selfies for preview and save them that way, so any text in the shot is reversed. One horizontal flip restores reality.
Common jobs and their fixes
- Phone photo sideways on a website → rotate 90° (left or right, whichever looks correct) and re-save.
- Scanned document upside down → rotate 180°.
- Mirrored selfie text → flip horizontal.
- Product shot for a symmetric layout → flip horizontal (check for readable labels first!).
Mind the transparency
When saving the result: PNG preserves transparency and is fully lossless; JPG is smaller for photos but flattens transparent areas onto white and re-encodes. Rotate first, then compress — not the other way around — so the final encode is the only lossy step.
Fix yours in two clicks
The rotate image tool does 90°/180° turns and both flips with a live preview, stacking operations freely, and downloads PNG or JPG — all in your browser. Continue the cleanup with the cropper and the resizer.