Rotate Image

Turn a JPEG, PNG, WebP, AVIF, GIF, BMP, ICO, or HEIC image by a right angle or by a custom clockwise angle. A custom angle grows the canvas so the corners are not clipped.

Use this tool

Drop a file here, or use the picker. The file type is checked from its contents.

Rotation
Angle

Result

The result appears in this panel after you run the tool.

About this tool

Angles are clockwise. 90° and 270° exchange the width and height. 180° keeps the same dimensions. A custom angle, such as 35°, uses a larger canvas that contains the rotated image. The new corners are transparent or the color you pick.

JPEG and BMP cannot store transparency, so empty corners use the fill color and the page says so. PNG, WebP, AVIF, GIF, and ICO can keep transparency. GIF transparency is one bit. A HEIC edit is written as PNG. AVIF that cannot be encoded comes back as PNG.

The pixels are drawn onto a new canvas and encoded in the original format when this browser can write that format. EXIF orientation is not read and is not written back. If a photo looks sideways because of an orientation tag, rotating the visible pixels is still what this tool does.

The same 250 MB and 40 million pixel guards used by the other image tools apply. A rotated image can be flipped, cropped, resized, or given a new canvas next. The handoff, when you use it, remains in this browser.

How to use it

  1. Choose an image, or continue from a previous image tool.
  2. Use 90°, 180°, or 270° clockwise, or switch to Custom angle and enter a value such as 35.
  3. For a custom angle, choose transparent or a fill color for the new corners, then rotate and download.

Limitations

Right angles that fit, and other angles that grow

When the canvas must grow

The angle is clockwise degrees, wrapped into a 0-to-360 range. Zero and 180 keep the original width and height. Ninety and 270 swap width and height. Those four angles cover the canvas exactly, so no fill is painted and resampling is left alone. Any other angle computes a bounding box: the new width is the source width times the absolute cosine plus the source height times the absolute sine, rounded up, and the height swaps those roles. Corners of that box would otherwise be empty, so the page paints a fill first and draws the rotated bitmap with bicubic smoothing.

JPEG and BMP cannot store transparency. For those types the transparent fill option is hidden and a color is used. The page will say that empty areas took the fill color when you had asked for transparency. PNG, WebP, AVIF, and HEIC written out as PNG can leave the corners clear. GIF corners become a single transparent index or an opaque palette color, not a partial fade. A custom angle and the preset buttons share this math. The custom field is read only when custom mode is selected.

The rotated pixels are then encoded

The turn itself is the pixel change: samples move, and off-axis turns also blend neighbors because of smoothing. After that, preserve intent encodes the canvas as the source type when possible. Quality starts at 0.92. The slider works for JPEG and WebP immediately. It works for AVIF only if a probe finds that two AVIF quality values change how many bytes come out. Rotation leaves it off when the turned file is PNG or GIF or BMP or ICO, and when HEIC is emitted as PNG. A browser that cannot produce AVIF also falls back to PNG under preserve intent, even when the source was AVIF.

An animated source contributes one bitmap, so the download is a still of that frame turned, not a rotated animation.

Off-axis JPEG and a later save

A 90-degree JPEG turn still builds new coefficients. Doing it twice to simulate 180 is two quantizations, and it is worse than choosing 180 once. An arbitrary angle adds interpolation on top of that quantization. If you will compress afterward, pick the quality on this page for the JPEG you intend to keep, or rotate a PNG and convert once at the end. BMP stays 24-bit with partial alpha flattened onto white, and it never consults the quality number.

Privacy

Your file is processed in your browser and is not uploaded to UtilChain. The file name is not sent to analytics.