Rotate an image online

Turn a photo by any angle, and get it back in the format it came in.

Drop your image hereor click to choose — up to 50 MB free

This tool turns an image by the angle you type, clockwise for a positive number and anticlockwise for a negative one. Quarter turns swap or keep the width and height and add nothing. Any other angle tilts the picture inside a larger canvas, and the empty corners are filled with a colour you choose. The result is saved in the format it arrived in.

How to use it

  1. Drop your image on the page, or click to choose it.
  2. Enter the Angle (degrees): 90 for a quarter turn clockwise, 180 to turn it upside down, -90 for a quarter turn anticlockwise.
  3. For an angle that is not a multiple of 90, set Corner fill to a colour written as a hash sign and six hex digits.
  4. Click Rotate image and download the result.

Quarter turns and other angles

At 90, 180 and 270 degrees the pixels are only rearranged. A 100 by 50 image turned by 90 becomes 50 by 100, and no pixel is invented or thrown away.

At any other angle the picture no longer fits its own rectangle. The canvas grows to hold the tilted image, so a 100 by 50 picture turned by 45 degrees becomes about 106 by 106, and the triangles left empty at the corners are painted with the Corner fill colour. White is the default, which suits a scanned page. The fill is always a solid colour, even in a PNG: it cannot be transparent.

Angles from -360 to 360 are accepted, including fractions such as 1.5 for straightening a slightly crooked scan.

What rotation does to quality

A PNG turned by a quarter turn comes back pixel for pixel the same, only reoriented, and so does a GIF with colours to spare in its palette. A JPG is compressed again when it is saved, at every angle including 90, so a little detail is lost each time; rotate once from the original instead of several times in a row. At odd angles every format is resampled, which softens fine detail slightly.

The output keeps the input format: JPG, PNG, WebP, GIF, TIFF or AVIF. Only HEIC changes, to JPG. PNG, TIFF and lossless WebP are written back without loss. A GIF is given a new colour palette when it is saved: one with colours to spare comes back exactly, but a GIF that uses all, or nearly all, of its 256 colours may have one or two of them replaced by the nearest remaining colour. Camera data stored in the file is not carried over, and in an animated GIF every frame is turned.

Related tools

After a tilt, trim the filled corners away with Crop image. To mirror a picture instead of turning it, use Flip image. Pages of a PDF are turned with Rotate PDF, and video with Rotate video.

Questions

How do I rotate an image 90 degrees anticlockwise?

Enter -90 as the angle, or 270, which lands in the same place. Positive numbers turn clockwise.

Does rotating an image lose quality?

For a PNG at 90, 180 or 270 degrees, no. A JPG loses a small amount because it is compressed again on saving, and any image turned by another angle is resampled.

Why did my image get bigger after rotating?

At an angle that is not a multiple of 90, the canvas is enlarged so that no corner of the picture is cut off. Crop the result if you want the original dimensions back.

Can the corners be transparent instead of a colour?

No. The corner fill has to be a solid colour given as six hex digits, such as ffffff for white or 000000 for black, with a hash sign in front.

Is the angle counted from how my phone photo looks on screen?

Yes. A phone may save a photo on its side with a tag asking viewers to turn it. That tag is applied first, so 90 always means a quarter turn clockwise from the picture you were looking at, and the result needs no tag.

What happens to the image I upload?

It is used to make the rotated copy, and both are deleted automatically within one hour.