About Rotate Any Angle
Rotate Any Angle turns an image by a number of degrees that you choose, without being restricted to the right angles most quick editors offer. It is the tool for straightening a scan that came back slightly tilted, or for turning a photograph a few degrees to make a horizon sit level. The field starts at 45 degrees and the form accepts any value from minus 360 to 360.
The result is placed on a canvas large enough to hold the rotated image. That size comes from the bounding box of the rotation: the source width times the absolute cosine plus the source height times the absolute sine gives the new width, the same expression with the two terms swapped gives the new height, and each is rounded up to a whole pixel. The origin is then moved to the centre of the canvas before the rotation is applied, so the image turns about its middle rather than about a corner.
Because the canvas is enlarged, the corners that the rotated image does not reach are left uncovered and stay transparent in the PNG result - nothing is filled behind them and no background color can be chosen. The rounding up means the frame can grow by a pixel or so even at a right angle, where floating-point residue in the cosine leaves a tiny value for the size calculation to round away from zero.
How to use Rotate Any Angle
- 1 Choose an image file with the picker and check the preview that appears.
- 2 Set the angle in degrees - positive values turn the image clockwise on screen.
- 3 Press the calculate button, then compare the result with the original beside it.
- 4 Download the PNG, bearing in mind that it will be larger than the source because of the rotated frame.
Frequently asked questions
Why is the downloaded image bigger than the one I uploaded?
Because the canvas is sized to the bounding box of the rotated image, which is usually larger than the original rectangle. The uncovered corners stay transparent rather than being cropped or filled, and no setting keeps the original frame.
Can I rotate without changing the frame size?
No. There is no option to keep the original canvas and clip the overhang, and no crop, scale to fit or background fill to tidy up the transparent corners.
Why does a 90 degree rotation add a pixel to the width?
The cosine of ninety degrees is not exactly zero in floating-point arithmetic, and the small residue that remains is multiplied by the image width before the bounding box is rounded up, so the result can come out one pixel wider than expected.
Is the angle limited to a single turn?
The form field is limited to the window from minus 360 to 360, but the rotation itself is applied exactly as typed, so an angle outside that window, if it reaches the calculation, is not reduced to its equivalent within one turn.
Free, online, and private
Free to use
Rotate Any Angle is completely free. There is no account to create, no login, and no hidden charge or usage limit.
Runs online in your browser
It is a free online tool that runs entirely in your browser. Nothing to download or install — open the page and start using it right away.
Your data stays private
All processing happens locally on your device. Your input is never uploaded, stored, or tracked, so it never leaves your browser.
How Rotate Any Angle behaves in detail
These are the specifics of this implementation — the exact ranges, defaults and fixed settings you are working with.
| Parameter | Value |
|---|---|
| Input | an image file plus one number field for the angle, starting at 45 degrees and limited by the form to the window from minus 360 to 360 |
| Canvas | the output canvas is sized from the rotated bounding box: the source width times the absolute cosine plus the source height times the absolute sine, rounded up, with the two terms swapped for the height |
| Transform | the origin is moved to the centre of the canvas, the canvas is rotated by the angle in radians, and the image is then drawn centred on that point |
| Corners | the enlarged canvas is never filled, so the triangles left uncovered by the rotation stay transparent in the PNG result |
| Rounding | the bounding box is rounded up to whole pixels, and floating-point residue can add a pixel even at a right angle - a wide image turned by 90 degrees grows by one pixel in width |
| Output | always PNG, named from the base name of the uploaded file, at the rotated bounding-box size |
Compiled from the implementation of this tool and checked against it by itoolnet.
What Rotate Any Angle does not do
Knowing the edges of a tool saves more time than another list of its features. These are the cases where it will not do what you might expect.
- The angle is not clamped by the calculation. The minus 360 to 360 limits are carried by the number input in the form rather than by the code that rotates, so an angle outside that window is applied exactly as typed instead of being reduced to its equivalent within one turn.
- The image only ever grows. There is no option to keep the original canvas size and clip the overhang, no crop, no scale to fit and no fill color behind the corners - and since the pixels are re-encoded, a JPEG source loses its original compression as well.
- No measurements are reported. The page shows the input and the result side by side as pictures but never states the new pixel dimensions or how much padding the rotation added, so the expansion has to be judged by eye.
Tested and documented by itoolnet, the team that builds and maintains this site.