Border Radius Generator

Dial in rounded corners and organic blobs: one slider, four corners, or eight ellipse radii in slash syntax — with live preview and instant CSS.

Radii are computed locally in your browser. Nothing ever leaves your device.

Generated CSS

How It Works

Every CSS corner is a quarter ellipse, and that single sentence explains most of this property. In Simple mode one radius applies to all four corners; in Per-corner mode each corner gets its own; in Blob mode each corner gets an independent horizontal and vertical radius, written with a slash — the left side of the slash is the four horizontal radii, the right side the four vertical ones, both always in top-left, top-right, bottom-right, bottom-left order.

Slash syntax anatomy
border-radius: 40% 60% 70% 30% / 30% 50% 70% 40% reads as: horizontal radii TL TR BR BL, then vertical radii TL TR BR BL. When the two sides are equal the slash simply disappears from the shorthand — that is why the generator omits it automatically. Each corner then draws its quarter ellipse from its own horizontal and vertical radius, which is how asymmetric blobs emerge.
50% vs px on non-square boxes
Percentages resolve per axis, so 50% on a 240×160 box means a 120×80 ellipse at every corner — stadium, not circle. A px radius stays perfectly circular no matter the box shape, but it must be at least half the shorter side to reach the "full round" look; anything larger is the same shape, and huge explicit px values will not overflow into negative corners because the browser scales them down proportionally.
Why 9999px makes a capsule
Pill buttons are rounded with a deliberately impossible radius: 9999px is clamped to half of the shorter side — the CSS spec's rule is that when adjacent radii on an edge exceed the edge length, all radii are reduced by the same factor. The practical result: on a 240×88 pill every corner becomes a 44px quarter circle, the two long edges vanish and you get the capsule. The exact number does not matter, only that it is big.

Frequently Asked Questions

Can CSS draw a real squircle?

Not with border-radius. A CSS corner is a quarter ellipse, while Apple's squircle keeps curvature continuous — flat near the edge, rounding only in an eased transition. border-radius gets you squircle-adjacent at roughly 22-30% of the side, but real superellipse shapes are a separate, still-experimental property (border-shape / shape() proposals) that is not Baseline and can change, so don't build product UI betting on it.

Is border-radius safe with overflow content on Safari?

Yes today. The old Safari bug where a child's background could bleed past a rounded, overflow-hidden parent has been fixed for years; radius plus overflow: hidden behaves the same as in Chrome and Firefox, including during transforms and animations. You only need workarounds if you support very old iOS.

Why does my rounded image still show square children?

Because radius clips only the element's own background, border and box — never its contents. On an <img> the picture is its own background, so the corner simply follows it; inside a rounded div, children keep painting to the rectangular edges. The fix is overflow: hidden on the rounded wrapper (or give the image the radius directly), and add a box-shadow if you want the silhouette echoed.

Why does 50% not look circular on a rectangle?

Because percentages resolve per axis: on a 240×160 box, 50% horizontal means 120px and 50% vertical means 80px, so each corner is a quarter ellipse, not a quarter circle, and the shape reads as a stadium or lozenge. For circular corners on a rectangle, use a px radius of at least half the shorter side — the browser clamps it — or make the box square.

Is anything uploaded to a server?

No. The preview box, the radius math and the CSS output all live in your browser; the value goes from your sliders to your clipboard without a network hop. Nothing is stored and the page keeps working offline.