ToollyX
no sign-up · instant · free

Rotate & Flip Image

Fix a sideways photo with exact 90° rotation, mirror it horizontally or vertically, or straighten a tilted horizon to any angle from -45° to +45° — with automatic cropping to remove the empty corners a fine-angle rotation leaves behind. Batch process a whole folder and download as one ZIP. Everything runs in your browser, nothing uploaded.

INPUTJPG/PNG/WebP/BMP
ANGLE90° steps + ±45°
ENGINECanvas API
AUTO-CROPYes
UPLOADNone
728 × 90 — Leaderboard Ad
🔁
Drop your images here or click to browse
90° rotate, flip, and fine-angle straighten with auto-crop · Batch process with ZIP · Nothing uploaded
90°/180°/270°Flip H/VStraighten ±45°Auto-CropBatch + ZIPNo Upload
728 × 90 — Leaderboard Ad

How to Rotate or Straighten an Image

1Upload one or more images by dragging them onto the drop zone or clicking "Choose Images". With more than one, a thumbnail strip appears so you can switch between them.
2Fix orientation with the 90° buttons or flip if the photo is sideways or mirrored, then use the Straighten slider for a small angle correction like leveling a tilted horizon.
3Choose whether to Auto-Crop the empty corners a fine-angle straighten creates, or keep the full frame with the corners filled — then pick an output format and quality.
4Click "Process" to apply every image's own settings across the batch, then download individually or as one ZIP.

Features

Exact 90°/180°/270° rotation
Fix a sideways or upside-down photo with a clean rotation that never loses any content.
Fine-angle straighten
Correct a tilted horizon or crooked scan by any amount from -45° to +45°, not just right angles.
Automatic corner cropping
Calculates the largest rectangle with no empty gaps after a fine-angle rotation, and crops to it automatically.
Horizontal & vertical flip
Mirror an image left-right or top-bottom, independent of rotation.
Batch processing per image
Each image in a batch keeps its own rotation, flip, and straighten angle — fix a mixed set in one pass.
Four output formats
JPG, PNG, WebP, and BMP, with transparency preserved where the format supports it.
EXIF orientation fixed permanently
Bakes the correct orientation into real pixels instead of relying on a metadata tag some software ignores.
No upload, no account
Runs entirely on the Canvas API in your browser. Your images never touch a server.

Straightening a Photo Is Harder Than It Looks

A rotate and flip tool changes an image's orientation — turning it to a different angle, or mirroring it left-right or top-bottom — without cropping or resizing its content otherwise. This covers two distinct jobs: fixing a photo that's sideways or upside-down (a 90°-step rotation, which always stays a clean rectangle), and straightening a photo that's slightly tilted, like a crooked horizon line in a landscape or an off-level scan of a document.

Straightening at any angle other than a 90° step is fundamentally different from a 90° rotation — it necessarily leaves triangular gaps at the corners of the frame, since a rotated rectangle no longer fits its own bounding box exactly. This tool handles that automatically with the Auto-Crop option, rather than leaving you with visible empty corners or forcing a manual follow-up crop in a separate tool.

How Auto-Crop Calculates the Largest Rectangle

After a fine-angle rotation, the image is drawn onto an expanded canvas large enough to contain the entire rotated rectangle without clipping — this canvas has visible empty corners, filled with your chosen color if Auto-Crop is off. When Auto-Crop is on, the tool uses a standard geometric formula to compute the largest axis-aligned rectangle that fits entirely inside the rotated image with zero empty pixels, then crops to that rectangle, centered. The math accounts for the original image's own aspect ratio and the exact rotation angle, so the crop is always the maximum possible size for that specific combination — never more conservative than it needs to be.

The 90°/180°/270° buttons don't need any of this — rotating a rectangle by an exact right angle always produces another rectangle with no gaps, so those transformations apply instantly with zero content loss.

Who Actually Needs This

Anyone with a phone photo that displays sideways once uploaded to a website, CMS, or older application that doesn't read the EXIF orientation tag.

Photographers and hobbyists correcting a slightly tilted horizon line in a landscape shot, or leveling a handheld photo of a document or whiteboard.

Designers creating mirrored variants of an icon or product render for a symmetrical layout, or flipping a directional graphic to face the other way.

Anyone processing a batch of scanned documents or photos that came in at inconsistent orientations and need a quick, consistent fix.

From a Sideways Phone Photo to a Scanned Document

Fixing a batch of sideways phone photos: Upload the whole set, rotate each one 90° as needed using its own thumbnail, and process the batch — every photo downloads right-side up with no per-file manual export.

Leveling a tilted landscape photo: The horizon leans a few degrees in a beach photo — drag the Straighten slider until the live preview shows a level horizon, leave Auto-Crop on, and the result is a clean rectangular photo with the crooked edges trimmed away automatically.

Creating a mirrored icon variant: A left-facing arrow icon needs a right-facing version for the opposite navigation direction — flip horizontally and export as PNG to keep the transparent background intact.

Every Rotation Happens Right on Your Device

Rotating, flipping, and cropping all happen locally using the Canvas API — your image is never transmitted to a server. This is faster for batches, since there's no upload/download round trip, and the live preview updates instantly as you adjust the straighten angle or toggle Auto-Crop, so you can judge the result before committing to a full batch export.

728 × 90 — Leaderboard Ad

Getting a Perfectly Level Horizon

  • Use the 90° buttons for orientation, the slider for correction — don't try to fix a fully sideways photo with the Straighten slider; use the exact rotation buttons for that, and save the slider for small tilts.
  • Watch the live preview while dragging the slider — it's easier to judge a level horizon visually than to guess the right angle number.
  • Leave Auto-Crop on for most photos — the small amount trimmed from the edges is rarely noticeable, and it avoids visible empty corners entirely.
  • Turn Auto-Crop off if you can't afford to lose any edge content — a scanned document with important text near the edges is a good example — and pick a fill color that matches your intended use.
  • Choose WebP or PNG if the corners need to stay transparent — JPG and BMP have no alpha channel, so filled corners always show as a solid color in those formats.
  • Crop to an exact aspect ratio after straightening if you need a specific shape — use the Image Cropper on the downloaded result.
Verified by ToollyX Team · Last updated July 2026

Why a Rotation Might Crop More Than Expected

My straightened photo has a visible white or transparent triangle in a corner. Auto-Crop is off. Turn it on to automatically trim the empty corners, or if you need the full frame kept, pick a fill color that better matches your intended background.

The photo looks smaller after straightening. This is expected with Auto-Crop on — removing the empty corners from a rotated rectangle always means cropping in slightly from the original frame. The amount lost scales with the straighten angle; a small correction loses very little.

My photo still displays sideways somewhere else after I downloaded it. This shouldn't happen — this tool bakes rotation into the actual pixels rather than relying on an EXIF tag, so the output should display correctly everywhere. If it still looks wrong, double check you downloaded the processed file and not the original.

Flipping produced an unexpected result combined with rotation. Flip and rotation both apply, and the order matters conceptually even though the tool handles the math for you — if the result looks unexpected, click Reset on that image and reapply the rotation and flip one step at a time, checking the live preview after each.

What Rotating Can't Fix

Don't use the Straighten slider to fix a fully sideways or upside-down photo — use the 90°/180° rotation buttons instead, which lose no content at all, unlike a large fine-angle correction.

Don't rely on this tool for perspective correction — straighten only rotates the image plane; it doesn't correct converging vertical lines or keystoning from a tilted camera angle. For that, our Perspective Corrector lets you drag all four corners independently rather than rotating around one angle.

Don't use it on RAW camera files — the Canvas API works with standard web image formats (JPG, PNG, WebP, BMP), not RAW formats like CR2 or NEF; convert those first with your camera software.

Frequently Asked Questions

728 × 90 — Leaderboard Ad

Related Tools