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
- Choose an image. It is decoded in the browser and never uploaded, so the file stays on your machine.
- Press a preset for 90 degrees clockwise, 180 degrees, or 90 degrees anticlockwise.
- Or type any angle — the slider covers −180° to 180° and negative values turn anticlockwise.
- Use the mirror buttons if the picture is flipped rather than crooked.
- Pick the output format: PNG and WebP keep corners transparent, JPG takes the fill colour you choose.
- Press Rotate and preview, then download; the original file is never modified.
Rotate Image limits and rules
| Item | Limit |
|---|---|
| Input formats | Anything the browser can decode, including PNG, JPG, WebP, GIF and AVIF |
| Per-file cap | 30 MB, because the image is held in memory while it is turned |
| Right angles | 90, 180 and 270 degrees, which never change the amount of detail |
| Custom angles | Any value from −180° to 180°, entered by slider or by typing |
| Mirroring | Horizontal, vertical, or both at once |
| Output formats | PNG, JPG and WebP, with transparency only in the first two |
| Not covered | Perspective 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
Written and maintained by Md. Nur Hossain Repon.