Skip to content

Rotate image

Turn images the right way up, or mirror them.

Drop images here

JPG, PNG, WebP, AVIF, HEIC, SVG and GIF

How to use Rotate image

  1. Add your images. Drop one or more JPG, PNG, WebP, or HEIC photos into the workspace.
  2. Choose a Turn angle. Pick None, 90° clockwise, 180°, or 90° counter-clockwise.
  3. Set Mirror if needed. Select No, Left to right, or Top to bottom while checking the live preview.
  4. Rotate and save. Click Rotate image to download a single file or a ZIP archive for batches.

Your files are processed on this device and never uploaded. They stay private, and there's nothing to delete afterwards.

Why do smartphone photos look upright on phones but sideways on computers?

Mobile cameras capture pixels in fixed horizontal sensor order and write an orientation flag into the file header instead of physically turning the picture. When desktop browsers, job portals, or legacy web forms ignore that header, the raw sideways pixel grid appears on screen.

EXIF orientation metadata flags versus physical raster matrices

Digital sensors read rows from top-left to bottom-right regardless of how you hold the phone. To save battery during capture, the camera records an EXIF orientation tag (Tag 0x0112, values 1 through 8) rather than rotating millions of pixels immediately.

Modern phone galleries read Tag 6 and display the shot rotated 90 degrees clockwise. Comparing the EXIF orientation flag vs baked pixels explains why inspecting headers reveals camera EXIF orientation metadata tags that older software overlooks.

How legacy upload portals strip or ignore camera tags

Job boards, court e-filing portals, and real estate databases often strip EXIF blocks when generating thumbnails. Stripping that flag erases the display instruction, causing portrait shots to fall back on their side.

To fix a sideways photo uploaded to a website permanently, you must bake EXIF orientation into pixels. The MDN CanvasRenderingContext2D rotate reference documents how browser canvases rotate coordinate systems so every pixel lands in its upright row.

EXIF orientation code Camera sensor angle Transformation applied Resulting display behavior
Tag 1 (Normal) 0° (Landscape) None (Passthrough) Displays upright everywhere
Tag 3 (Upside-down) 180° rotation Rotate 180° Inverts flipped camera shots
Tag 6 (Rotated 90° CW) 90° clockwise Rotate 90° CW Restores vertical smartphone portraits
Tag 8 (Rotated 90° CCW) 90° counter-clockwise Rotate 90° CCW Aligns counter-clockwise captures

How hardware-accelerated canvas matrices rewrite pixel grids

Browser 2D canvases use coordinate-space transforms to transpose pixel rows and columns cleanly in local memory. Unlike arbitrary free-angle editors that clip triangular corners, orthogonal 90°, 180°, and 270° turns swap canvas width and height without losing a single edge pixel.

Swapping canvas width and height for orthogonal turns

Turning a photo ninety degrees exchanges its horizontal and vertical axes. A landscape original measuring 4032 × 3024 px becomes an exact 3024 × 4032 px portrait canvas, capped safely within the 4096 × 4096 px (16,777,216 pixels) browser limit.

The pipeline translates the origin to the canvas center before rotating, following the W3C CSS Images Module Level 3 specification. When you turn a sideways photo upright or rotate an image 180 degrees online, you can also trim excess borders after rotating to refine framing.

Avoiding triangular corner cropping and resampling softening

Right-angle turns map source pixels directly onto integer coordinates without angled trigonometric blurring. Outputs encode via encodeWithFallback at 92 percent quality (0.92) with high smoothing quality enabled.

If you select None (0°) and No mirror, the tool inspects the first 65536 bytes (64 KB). When the file is already upright (orientation === 1), it skips canvas re-encoding completely for lossless image rotation in the browser.

Tip: When digitizing upside-down receipts or book pages, select 180° under Turn to invert the entire page cleanly while keeping margins intact.

Reversing mirrored selfies and correcting inverted front-camera text

Front-facing phone cameras often preview and save images as a mirror reflection, which flips t-shirt lettering, storefront signs, and book titles backwards. Applying a horizontal flip restores natural left-to-right reading order in one click.

Reflecting pixel coordinates along horizontal and vertical axes

Under Mirror, choose No, Left to right, or Top to bottom. When you flip an image or mirror an image online, the canvas applies ctx.scale(-1, 1) or ctx.scale(1, -1) in output space after rotation so Left to right always reflects horizontally relative to the turned view.

These matrix operations follow the WHATWG HTML Canvas transformation matrix specification, letting you flip a photo horizontally without warping proportions.

Restoring readable lettering on t-shirts and background signage

Backwards text immediately stands out in team headshots, product demos, and social posts. Using Left to right to reverse mirror selfie lettering fixes inverted logos and whiteboards cleanly.

Top to bottom reflection is equally useful for overhead camera rigs or optical reflections. After turning and mirroring your shots, strip location tags before sharing photos across public platforms.

Batch processing camera rolls and multi-file orientation workflows

Sorting through dozens of sideways vacation photos or scanned expense receipts one by one wastes time in desktop editors. Dropping an entire batch into the workspace lets you turn photos and rotate multiple images at once without uploading private files.

Processing entire folders in sandboxed browser memory

Every image in the queue is decoded, transformed, and released in local tab memory with zero server transfers. Output encoding follows standard container rules such as the JPEG File Interchange Format (JFIF) Specification for broad compatibility across devices.

If your workflow also includes multi-page scanned contracts rather than camera images, open Rotate PDF to turn PDF pages without rasterizing vector text.

Exporting individual files or consolidated ZIP archives

Once you click Rotate image, single files download directly while multi-file batches bundle into a single ZIP archive. Every saved file preserves its original format where supported (JPEG, PNG, WebP, or AVIF fallback) and appends -rotated so your camera originals stay safe on disk. This keeps large camera-roll cleanups fast, private, and completely free of watermarks or cloud upload queues.

Questions

Why do photos look upright on my phone but sideways on my computer?

Phones often store raw sensor pixels sideways and write an EXIF orientation tag (values 1 to 8) telling gallery apps how to display them. Older websites, email clients, and upload forms ignore or strip that tag, showing the unrotated sideways pixels.

How do I rotate a photo 90 degrees without losing quality?

The tool decodes your image onto a canvas with transposed width and height, turns the pixels by 90 degrees, and encodes the result at 92% quality. Right-angle turns swap axes cleanly without cropping corners or distorting edges.

How do I mirror an image horizontally online?

Select Left to right under Mirror in the options panel, then click Rotate image. Horizontal reflection flips front-camera selfies in output space so t-shirt logos, store signs, and book titles read left to right.

Does rotating an image here modify the original file on my device?

No. Everything runs inside your browser tab's memory and never overwrites your source files. Every download adds a -rotated suffix to the filename so your original camera files stay untouched on disk.

Can I rotate multiple images at once in a batch?

Yes. Drop an entire folder of photos into the queue, choose your Turn and Mirror settings, and click Rotate N images. All files are processed locally and packaged into a single ZIP download.

What is the difference between EXIF rotation and baking pixels upright?

EXIF rotation only changes a metadata number without moving any pixels. Baking pixels physically rearranges the raster grid onto a new canvas, guaranteeing the photo appears upright on every browser, CMS, and legacy portal.

Updated