Skip to content
AZ Tools

Border Radius Generator

Drag corners independently, try elliptical radii, copy the CSS — with chat-bubble, pill, blob, and tab presets.

Presets

Preview
CSS
border-radius: 16px;

How to use

  1. Pick a preset to start, or toggle 'Uniform' off to edit per-corner.
  2. Toggle 'Elliptical' for blob shapes (each corner gets two radii).
  3. Copy border-radius: … and paste into your CSS.

About this tool

Show

A visual border-radius editor: round every corner at once, set each of the four independently for chat bubbles and tabs, or switch to elliptical mode where a corner's horizontal radius differs from its vertical one, which is what turns a rectangle into a blob. The output is always the shortest CSS that is still correct — one value when all four corners agree, four when they do not, and the full horizontal-slash-vertical form when the radii are elliptical. Units matter here: a radius in px is fixed, while one in percent is measured against the element's own width and height, so it reshapes as the box resizes and 50% on every corner turns any box into an ellipse. If adjacent radii would overlap, the browser scales them all down together rather than letting them cross.

Frequently asked questions

When is elliptical actually useful?

Mostly for organic 'blob' shapes used in illustrations, where each corner is asymmetric. Standard UI almost always uses uniform or 4-value radii.

px vs % radius?

% is relative to the element's width/height — so a 50% radius on a square gives a circle, on a rectangle an oval. px is absolute regardless of element size.

Why doesn't the pill preset look right on a square?

Pill = 999px radius assumes the element is wider than tall. On a square element, that just becomes a circle.

Browser support?

All four-value border-radius and elliptical syntax work in every browser since 2010. Universally safe.

Why does a huge radius on a small box stop growing?

Because the browser caps it. When two radii along one edge would overlap, all of them are scaled down by the same factor so they meet exactly instead of crossing. That is why 999px on a 40px box gives a clean pill rather than a broken shape, and why doubling the number changes nothing.

Which corner does each value in the shorthand set?

The four-value form runs clockwise from the top-left: top-left, top-right, bottom-right, bottom-left. Three values mean the second one covers both of the corners it sits between, and two values pair the diagonals — the same reading order as margin and padding.

Related tools