Skip to content
UniKit

Transparent rounded corners

Bake real transparent rounded corners into an image (not a CSS illusion): the radius is a percentage of the shorter side from 0 to 50, where 50 gives a perfect circle, with transparency or a solid colour outside, exported as PNG or JPEG.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Images are processed locally in your browser with Canvas and never uploaded.

20%

Pick an image first (PNG / JPEG / WebP / GIF all work).

Result details

Result details

Pick an image and set a radius — the rounded size and file size show up here.

What this tool does

  • Produce transparent rounded assets: the corners are baked into the pixels (alpha = 0 outside), so they never show a white fringe on any background.
  • Make a round avatar: push the radius to 50% and the image becomes an inscribed circle ready to export as PNG.
  • Need a solid corner? Set the fill to #ffffff for a white-backed rounded image that uploads safely to platforms without transparency.
  • Different from the other rounded-corner tool: both rewrite alpha, this one focuses on transparency and percentage radii — try both if you want a different feel.

Example

Input

An 8×8 opaque image with a 50% transparent radius

Output

Corner pixels become [0, 0, 0, 0] while the centre stays [200, 100, 50, 255]; the effective radius is 4 px

From the pure roundImageCorners logic: resolveRadiusPx(8, 50) = 4 and isCornerMasked(0,0,8,4) is true, so the top-left corner is written transparent. With radius 0 the output is identical to the input.

Frequently asked questions

Are the corners actually cut away?

Yes. The tool rewrites pixels: outside the radius the alpha becomes 0 (or the colour you pick), so the exported file is genuinely rounded on any background — no CSS border-radius involved.

The radius percentage is relative to what?

To the shorter side. On an 8×8 image a 50% radius is 4 px; on an 8×4 image the shorter side is 4, so 50% is only 2 px and you get rounded left and right edges rather than a circle.

Why are the edges slightly jagged?

The mask tests whether the pixel centre falls inside the circle, with no anti-aliasing, so the result is pixel-identical in every browser and at any zoom. For smoother edges process at 2–4× and scale down.

What happens with JPEG export?

JPEG has no alpha channel, so transparent areas are filled with white (the tool paints a white base first). Choose PNG whenever transparency must survive.

Are my images uploaded?

No. Pixels are read through the canvas and processed entirely in the browser; there is no upload endpoint on the page.

Keywords:rounded cornersborder radius

Related tools