NHRepon
Home
Services
All ServicesWeb Application DevelopmentMobile Application DevelopmentDigital Marketing and SEO
ProjectsToolsProductsPostsAboutContactLogin
HomeServicesProjectsToolsProductsPostsAboutContact
  • Home
  • Projects
  • Posts
Home/Tools/Image Tools/Rotate Image
All Tools

Rotate Image

Turn a photo through 90, 180 or 270 degrees, straighten it by any angle, and mirror it horizontally or vertically — then export as PNG, JPG or WebP without uploading anything.

Click to choose an imageDrag a file in, or click to browse. Up to 30 MB; nothing is uploaded.

Why an arbitrary angle changes the size

Turning by 90, 180 or 270 degrees is a lossless rearrangement: the pixels move to new positions and the width and height swap, but no new pixel has to be invented and the corners still meet the edges exactly. That is why a quarter turn produces a file that looks identical to the original, pixel for pixel, and why it is the safest way to fix a photo taken sideways.

Any other angle is different. A rectangle turned by, say, 3 degrees no longer spans the frame, so the canvas has to grow until the tilted rectangle fits inside it — the width becomes the rotated bounding box, which for an angle θ is width·cos θ + height·sin θ. That growth leaves four triangular corners that were never part of the image. Where the format supports transparency those corners stay transparent; a JPG cannot store transparency at all, so they are filled with the colour you choose here. Leaving them transparent only works if the final background really is dark or unknown; for anything that will be printed or placed on white, set the fill to the page colour.

Two smaller points are worth remembering. First, straightening a photo is a rotation by a fraction of a degree, not by a right angle, so it always pays the canvas-growth cost and always needs the corners handled. Second, a JPG that has been re-encoded loses a little quality each time, so rotate from the original rather than from a copy that has already been turned once.

What does an image rotator do?

An image rotator turns a picture about its centre by a chosen number of degrees. At 90, 180 and 270 degrees that is a pure rearrangement — every pixel moves to a new position, the width and height swap for a quarter turn, and no new pixel has to be worked out. At any other angle the result is a rectangle sitting inside a larger canvas, so the output grows and the corners that were never part of the image become transparent or take a fill colour.

The right-angle cases cover most real needs. A photo taken sideways on a phone is fixed by a quarter turn, and a scanned page that landed upside down is fixed by a half turn. The arbitrary angle is for a different job: straightening a horizon that is a degree or two off, or angling a graphic for a layout. Because it enlarges the canvas, straightening always costs the corners, which is why the fill colour matters.

Mirroring is the other half of the tool. A horizontal flip reflects left and right and is the standard way to correct a webcam or a front-facing camera, while a vertical flip reflects top and bottom and is less common but occasionally the fastest fix for a wrongly scanned page. Mirroring is applied before the rotation, so combining the two behaves the way a photo editor does.

How to rotate an image

  1. Choose an image. It is decoded in the browser and never uploaded, so the file stays on your machine.
  2. Press a preset for 90 degrees clockwise, 180 degrees, or 90 degrees anticlockwise.
  3. Or type any angle — the slider covers −180° to 180° and negative values turn anticlockwise.
  4. Use the mirror buttons if the picture is flipped rather than crooked.
  5. Pick the output format: PNG and WebP keep corners transparent, JPG takes the fill colour you choose.
  6. Press Rotate and preview, then download; the original file is never modified.

Rotate Image limits and rules

Limits, caps and standards referenced by this tool
ItemLimit
Input formatsAnything the browser can decode, including PNG, JPG, WebP, GIF and AVIF
Per-file cap30 MB, because the image is held in memory while it is turned
Right angles90, 180 and 270 degrees, which never change the amount of detail
Custom anglesAny value from −180° to 180°, entered by slider or by typing
MirroringHorizontal, vertical, or both at once
Output formatsPNG, JPG and WebP, with transparency only in the first two
Not coveredPerspective correction, lens distortion and free-form warping

When to use it

  • Fixing a phone photo that was saved sideways or upside down.
  • Straightening a scanned document so the text lines run level.
  • Correcting a mirrored image from a webcam or a front-facing camera.
  • Turning a diagram or a chart a quarter turn to fit a portrait layout.
  • Angling a product shot slightly for a banner or a thumbnail.

Is it private?

The rotation is drawn on an HTML canvas in this page and the file is encoded by the browser. Nothing is uploaded, stored or logged — the network tab stays empty while you work.

Frequently asked questions

No. A quarter turn is a lossless rearrangement: each pixel keeps its value and simply moves to a new row and column, and for 90 or 270 degrees the width and height swap. The only quality cost is the one the output format imposes, so a PNG stays pixel-identical and a JPG loses a little to re-encoding. Repeated quarter turns never accumulate the blurry artefacts that repeated arbitrary rotations can.

Because a tilted rectangle no longer spans the frame, so the canvas is enlarged until the whole tilted image fits — a width of about width·cos θ plus height·sin θ. That enlargement creates four triangles at the corners that were never part of the picture. Where the format supports transparency they stay transparent; a JPG cannot store transparency, so they take whatever fill colour you select, which is why the fill setting is there.

Use a small custom angle, a degree or two in the direction the horizon is leaning, and check the preview. Because straightening is an arbitrary angle, the canvas grows and the corners need handling, so set the fill to a colour that matches the scene or keep the output as PNG if the surroundings will be cropped later. Straightening the whole frame and then cropping the corners off is the standard two-step approach.

A rotation turns the picture about its centre, so the top edge becomes a side edge. A flip is a mirror reflection across an axis: a horizontal flip swaps left and right while the top stays the top. A front-facing camera produces a mirror image that needs a flip rather than a turn, and a scanned page that came out backwards needs the same. Applying a 180-degree rotation to a mirrored image gives you something different again, which is why the two controls are separate here.

PNG if the image has transparency or will be edited again, JPG if it is a photograph and you want the smaller file. At a right angle there is nothing to protect, so either works; at a custom angle PNG is the safer choice because it preserves the transparent corners and the exact pixels. Remember that a JPG loses a little quality every time it is saved, so avoid repeatedly rotating and re-saving the same JPEG.

Yes, and that is usually an advantage. Cameras store an orientation flag in EXIF rather than physically turning the pixels, and different programs honour that flag inconsistently — which is why a photo can look upright on one device and sideways on another. A rotation performed here rewrites the actual pixels, so the result is upright everywhere and no longer depends on a flag being read correctly. The original file and its metadata are left untouched.

Related tools

  • Image Crop
  • Image Resizer
  • Image Converter
  • Image Compressor
  • Rotate PDF

Written and maintained by Md. Nur Hossain Repon.

NHRepon


Md. Nur Hossain Repon expert in NextJS, React, React Native and Flutter. He is a full-stack web and mobile application developer with 5+ years of experience and a passion for building innovative and robust application. Also, he has a strong background in developing high-quality web and mobile applications using the latest technologies and frameworks.
Let's build something amazing together 🚀

Quick Links


  • About
  • Projects
  • Services
  • Contact
  • Posts
  • Products
  • Privacy Policy
  • Terms of Service
  • Tools
  • Smart Life Hubs

Newsletter


We respect your privacy. Unsubscribe anytime.

Connect


© 2026 NHRepon. All rights reserved.

Build v1.5.4+56.73c4a90