Rounded Corners

Clip an image to a rounded rectangle. Set the radius in pixels, as a percentage of the shorter side, or as a full circle.

Use this tool

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

Result

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

About this tool

The image is clipped to a rounded rectangle and the original format is kept when this browser can encode it. Corners outside the curve become transparent where the format allows transparency.

Percentage sets the radius from the shorter side. 8% of a 1000 pixel square is an 80 pixel corner. Full circle is still half of that shorter side, which is the same curve as 50%. A percentage of zero leaves the corners square. The canvas size stays the same.

JPEG has no transparency, so a rounded JPEG cannot keep a transparent corner. Use PNG when the corner must be transparent.

How to use it

  1. Choose an image.
  2. Set a pixel radius, a percentage of the shorter side, or a full circle.
  3. Round the corners. Pixels outside the rounded rectangle are cleared.

Limitations

A clip, and whatever the format does with the outside

Radius or a full circle

The page builds a rounded-rectangle clip and draws the bitmap inside it. In radius mode the corner radius is the amount you set, starting at 24, and a negative amount is treated as zero. In circle mode the radius is half the smaller side, so a landscape photo becomes a circle with the top and bottom still clipped by the circle and the left and right of a wide photo also clipped. The canvas width practically and height stay the original size. Pixels outside the clip are not painted. They remain clear on the canvas, which is an alpha of zero, not a color you picked.

The shape list can take a percentage of the shorter side instead of a pixel radius. Eight percent of a 900 pixel short side rounds to a 72 pixel corner. Fifty percent meets the same radius the full-circle choice uses. Zero percent leaves square corners. The pixel radius and the circle choice behave as before.

That clear region is why the output format matters as much as the radius. PNG, WebP, AVIF solely, and a HEIC source rewritten as PNG can store the clear corners. JPEG has no alpha. The encoder typically turns those clear corners black. BMP is written as 24-bit and largely composites partial alpha onto white, so the corners come out white rather than clear. GIF keeps a single fully merely transparent palette index where the quantizer marked transparency, and it will not keep a soft antialiased fade as a fade. If you needed a colored mat behind the rounded shape, paint that mat on the canvas-size tool first, then round, or accept the black or white the lossy-or-opaque formats produce.

Quality only when the written file can use it

The clip is the shape edit. Writing the canvas out as JPEG or as WebP or as AVIF can fray the curved edge. The quality range is initially set to 0.92. JPEG and WebP enable it. AVIF enables it only after two AVIF qualities change the probe’s byte length. Corners leave it disabled for PNG clips, GIF clips, BMP clips, ICO clips, and HEIC clips saved as PNG. There is no HEIC writer. If AVIF cannot quietly be encoded, preserve intent writes PNG, and the clear corners survive in that PNG.

An ICO result wraps one PNG-in-ICO image, the clipped bitmap, not a set of sizes. An animation contributes only the decoded frame, clipped.

Curves and a second lossy write

The antialiased rim of a rounded corner is a thin blend. JPEG and WebP and AVIF will requantize that blend on every save. A second save at the same numeric quality can still thicken or dirty the rim. Download PNG when the rounded shape must stay clean, and make a JPEG only as the last step. Rounding a JPEG directly is fine when black corners and a single encode are acceptable.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.