Rotating an image should be simple, and most of the time it is: a quarter turn here, a half turn there. But between quarter turns, EXIF orientation surprises, and custom angles that expand the canvas in unexpected ways, rotation has more corners than people expect. This tool handles all of it in your browser. Upload the picture, rotate in 90-degree steps or set any custom angle from 0 to 359 degrees, and download the result as a PNG.
Processing is entirely local. The image is decoded in browser memory, rotated on a canvas, and re-encoded. Nothing is uploaded to a server, no account is needed, and the same flow works on a phone and a desktop. Private photos and confidential screenshots never leave the device.
Two rotation modes are supported. Step mode turns the image in accumulating 90, 180, and 270 degree increments, keeping the corners crisp and the canvas size either the same or swapped. Free mode accepts any angle, such as 12 degrees to straighten a slightly crooked scan, and automatically enlarges the canvas so no corner of the rotated image gets cut off. Understanding the difference helps you pick the right mode and anticipate the output dimensions.
What Rotation Does to Pixel Dimensions
For 90 and 270 degree rotations, width and height swap. A 1920 x 1080 landscape photo rotated 90 degrees becomes 1080 x 1920 portrait; rotate it back and it returns to exactly 1920 x 1080. For 180 degrees the dimensions stay the same. These step rotations remap pixels exactly, so with a lossless source the corners and edges stay mathematically perfect.
Custom angles are different. Rotating a rectangle by, say, 15 degrees means its corners swing outside the original canvas, so the tool computes a new bounding box that contains the whole rotated image. For an original of width W and height H rotated by angle a, the new dimensions follow the standard bounding-box formula: new width equals W times the absolute cosine of a plus H times the absolute sine of a, and new height equals W times the absolute sine of a plus H times the absolute cosine of a.
Worked example: 1600 x 1000 image
| Angle | Output size | Notes |
|---|---|---|
| 90 degrees | 1000 x 1600 | Exact swap, no resampling of orientation |
| 180 degrees | 1600 x 1000 | Same size, image upside down |
| 15 degrees | approx. 1807 x 1511 | Canvas expands to fit all four corners |
| 45 degrees | approx. 1838 x 1838 | Area grows to about 2.4x the original bounding box |
The 45-degree row shows why free rotation adds transparent areas: a diagonal rectangle inside its bounding box leaves four uncovered triangles at the corners. Those are filled with transparent pixels in the PNG output, which is exactly what you want for compositing, though you may want to crop afterward for a tight final image.
How to Rotate an Image (Step by Step)
- Upload the image by dragging it in or tapping the upload area. The original width and height are shown right away.
- Choose step rotation: click the 90, 180, or 270 button, or click repeatedly to accumulate quarter turns. Each click rotates from the current state, so 90 twice equals 180.
- Or choose a custom angle between 0 and 359 degrees for precise straightening, such as 3 degrees for a slightly tilted scan.
- Preview the result. For custom angles, check the expanded canvas and the transparent corners.
- Download the PNG. The output preserves transparency from the source and from any free-angle rotation.
Key Features
- Accumulating step rotation: each 90-degree click compounds, so four clicks bring the image full circle without losing orientation state.
- Custom angles 0 to 359: dial in any angle for straightening scans, tilted photos, or deliberate design tilts.
- Automatic canvas expansion: free rotation computes the true bounding box so nothing is clipped, using the sine and cosine formula above.
- Transparency preserved: PNG output keeps alpha from the source and fills new corner areas with transparency.
- Local and private: all decoding, rotating, and encoding happen in browser memory; nothing is uploaded.
- Free and unlimited: no signup, no watermark, mobile-friendly.
The EXIF Orientation Trap
Many phone photos carry an EXIF orientation tag instead of physically rotated pixels. The camera sensor captures landscape data, and the tag tells viewers to display it rotated. Programs that respect EXIF show the image upright; programs that ignore it show it sideways. This tool rotates the actual pixels you see in the preview, which is the honest, portable way to change orientation: every downstream program, from image viewers to print shops, will show exactly what you downloaded.
A common symptom of the EXIF problem is a photo that looks correct in the phone gallery but appears sideways after upload to a website or a PDF compiler. Re-saving through a tool that bakes the rotation into pixels, as this one does, permanently fixes the discrepancy. The trade-off is that the output PNG loses the EXIF metadata, which also strips GPS coordinates and camera details, a side benefit for privacy-sensitive images.
Common Use Cases
- Straightening a scanned document or photo that was placed slightly crooked on the scanner bed, typically needing an adjustment between 1 and 5 degrees.
- Turning a landscape photo to portrait orientation for a poster layout, story format, or phone wallpaper, using the 90-degree step.
- Fixing sideways photos that came from devices with inconsistent EXIF handling, making them display correctly everywhere.
- Rotating receipts, whiteboards, and whiteboard snapshots by small custom angles before OCR or archiving.
- Deliberate design tilts, such as 7-degree rotations for collage layouts and scrapbook effects, where the transparent corners are part of the look.
- Preparing square social media assets where a 180-degree flip of a background pattern adds variety without new artwork.
Understanding Quality in Free-Angle Rotation
Step rotations at 90-degree multiples move pixels without interpolation, so quality is untouched. Free angles are different: a pixel at angle 12.5 degrees rarely lands on a neat grid position, so the browser interpolates, averaging neighboring pixels. One pass at a moderate angle is visually indistinguishable from the source for photos. The quality loss comes from repetition: rotating 15 degrees, then 10 more, then 8 more, resamples the image three times and softens fine detail cumulatively. Whenever you know the final angle, apply it once from the original rather than nudging repeatedly.
Text and pixel art are the most sensitive content. A screenshot rotated by an arbitrary angle shows visibly soft letter edges because anti-aliasing cannot invent sharp strokes. For those, prefer step rotations, or rotate the source document and re-capture cleanly.
Tips and Best Practices
- For scans that are visibly crooked, measure the tilt against a straight edge in the image and enter that angle once, then crop the expanded canvas for a clean rectangle.
- Remember that free rotation enlarges the canvas; if you need the original dimensions back, crop to the central rectangle afterward.
- Use 180 degrees instead of a vertical flip when the content should be upside down but not mirrored, such as printing on transfer paper.
- Combine tools in the right order: straighten first, crop second, resize last, so each operation works from the cleanest possible state.
- Rotate from the highest-quality source you have. Rotating a heavily compressed JPEG then re-encoding as PNG preserves existing artifacts and adds none, but cannot heal them.
Step Rotation vs. Free-Angle Rotation
| Aspect | Step (90/180/270) | Custom angle |
|---|---|---|
| Pixel mapping | Exact, no interpolation | Interpolated |
| Canvas size | Same or swapped | Expanded bounding box |
| Best for | Orientation fixes | Straightening and creative tilts |
Choosing step mode whenever it suffices always gives the sharpest result, since no resampling is involved at all.