Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Image Processing
  3. Image Rotation & Flip
Add to favorites

Image Rotation & Flip

Rotate a photo by quarter turns, mirror it, or straighten a tilted horizon by any angle, with the empty corners cropped away automatically.

Edits stay in your browserMore image processingJump to full guide

Initializing in your browser…

You might also like

Image to Base64

Turn an image into Base64 text or a data URL to embed in HTML, CSS or Markdown, checked to decode back to your exact file. Optional resizing first.

Image Diff Comparator

Compare two versions of an image and see what changed: each changed area outlined and shown close up, with slider, fade and side-by-side views and a similarity score.

Image Cropper

Crop a photo by dragging a box or typing exact pixels, with aspect ratio presets, quarter turns, mirrors and shape cut-outs. PNG output keeps every pixel exactly.

Image Rotation & Flip: a worked example

A 1600 by 1067 landscape photo has a horizon that tilts down to the right by about 2 degrees.

Settings

Straighten: 2 degrees
Crop away the empty corners: off, then on
Save as: JPEG (the original format)
What Image Rotation & Flip produces

Result

Crop off: 1637 x 1123, with 128,496 empty corner pixels
Crop on: 1521 x 1014, no empty corners, same 3:2 shape

Turning a 1600 by 1067 rectangle by 2 degrees needs a 1637 by 1123 frame to hold all of it, and the extra area appears as four thin empty triangles. The crop keeps the largest rectangle with the original proportions whose corners stay inside the turned photo: scaled by 0.951, that is 1521 by 1014, which keeps about 90% of the picture. A 2 degree turn is a resample, so the tool reports it as one, while a quarter turn of the same photo would be exact.

About Image Rotation and Flip

Fix a sideways or upside-down photo, mirror a selfie, or straighten a crooked horizon. Quarter turns and mirrors move the pixels without changing them, and a straighten angle of up to 45 degrees either way can crop away the empty corners for you.

How to use

  1. 1Drop a photo on the page, paste one, or press Try a sample image.
  2. 2Use the toolbar to turn the picture left, right or upside down, or to mirror it.
  3. 3To straighten, drag the Angle slider or use the nudge buttons; turn on the grid to line up a horizon.
  4. 4Turn on Crop away the empty corners, or choose what fills them.
  5. 5Choose JPEG, PNG or WebP and press Download.

Where this helps

  • Phone photos

    Fix pictures that come out sideways or upside down.

  • Scanned documents

    Straighten a page that went into the scanner at an angle.

  • Landscapes and architecture

    Level a horizon or make a building stand upright.

  • Design work

    Mirror a graphic or turn it to fit a layout.

Key features

  • Quarter turns left and right, and a half turn
  • Mirror left to right and top to bottom
  • Straighten by -45 to +45 degrees in half-degree steps
  • Automatic crop of the empty corners, keeping the photo's proportions
  • Transparent, white or black corner fill
  • A grid overlay for lining up horizons and verticals
  • Exactness check on quarter turns and mirrors
  • JPEG, PNG and WebP output, matching the original by default
  • Correct handling of photos marked as rotated by the camera

Tips & best practices

  • Turn on the grid and line a horizon up with one of its lines before straightening.
  • Straighten before cropping, so the crop can use the whole picture.
  • For scans of text, PNG keeps the letters crisp after a straighten.
  • Small angles of 1 or 2 degrees are usually enough; larger ones crop away more of the photo.

Examples

  • A sideways phone photo

    Press Right once: a 1600 by 1067 picture becomes 1067 by 1600, and as a JPEG it stays the same size as the original, about 404 KB.

  • A tilted horizon

    Set the angle to 2 degrees. The turned picture needs a 1637 by 1123 canvas with empty corners; with the crop on, the result is 1521 by 1014, the same shape as the original.

  • A mirrored selfie

    Front cameras often save a mirror image, so text in the background reads backwards. Press Mirror to put it the right way round.

How rotation works here

Quarter turns and mirrors. The toolbar turns the picture a quarter left or right or a half turn, and mirrors it left to right or top to bottom. These are exact operations: every pixel of the result is a pixel of the original, only moved, and a quarter turn swaps the width and height (a 1600 by 1067 photo becomes 1067 by 1600). The tool reads the saved file back and confirms when nothing else changed. The angle readout at the end of the toolbar always shows the total turn.

Straighten. For a tilted horizon or a skewed scan, drag the Angle slider or nudge it by half a degree or one degree at a time. Any angle that is not a multiple of 90 has to be resampled, so each new pixel is blended from its neighbours and fine detail softens very slightly; the tool says so rather than calling it exact. Turning also leaves empty triangles at the corners. Crop away the empty corners keeps the largest rectangle with the photo's own proportions that fits inside the turned picture, so a straightened photo keeps its shape; without it you can fill the corners with transparency, white or black.

The file you get. A JPEG is saved as a JPEG at 92% quality by default, so a rotated phone photo stays about the same size; choose PNG when you want every pixel kept exactly, which makes a much larger file from a JPEG. WebP is also available. A JPEG has no transparency, so empty corners become white in one.

Photos that open sideways. Cameras and phones often store a photo in one orientation with a tag that tells viewers to turn it. Your browser applies that tag when it opens the file, so the preview here is already the right way up and any turn you add is on top of it. The saved file has its pixels stored the way they are shown, so it opens correctly everywhere without the tag. About the source file shows the tag, if there is one, and the other details of the original. Everything happens in your browser.

Frequently asked questions

Does rotating reduce the quality?

Quarter turns and mirrors do not change any pixel; saved as PNG the result is an exact copy, which the tool confirms. Saving as JPEG re-compresses the photo, a very small change at 92% quality. Straightening by a small angle has to blend pixels and softens fine detail slightly.

Why do I get empty corners when I straighten?

A rectangle turned by an angle no longer fills an upright frame, so triangles appear at the corners. Turn on Crop away the empty corners to remove them, at the cost of a little of the edge of the photo.

My photo looks right here but sideways elsewhere. Why?

The original file probably relies on an orientation tag that some apps ignore. Download it from here: the saved file stores its pixels the right way up, so it no longer needs the tag.

Why is the PNG so much bigger than my JPEG?

PNG keeps every pixel exactly, including the fine noise a JPEG photo contains, so it is often five or more times the size. Keep JPEG unless you need a lossless copy.

Can I rotate by an exact angle like 1.5 degrees?

Yes. The slider moves in half-degree steps, and the nudge buttons change it by half a degree or one degree.

Are my photos uploaded?

No. Everything happens in your browser.

Related tools and how they differ

  • Image Cropper: Cuts the rotated picture down to the part you want, with aspect ratio presets.
  • Image Metadata Viewer: Shows the EXIF orientation a camera stored, if a photo opens sideways elsewhere.
  • Image Resizer: Changes the pixel size after rotating, for a site or a print.

Private by design

Images are decoded, edited, and exported entirely inside this browser tab. No originals, exports, or metadata are uploaded.