Loading Techie Utils…

CSS Border Radius Generator

Round corners evenly, one by one, or into a blob. Free, and runs entirely in your browser — nothing you enter is uploaded, stored or sent to a server.

About Border Radius Generator

Three shapes from one property. A single radius rounds all four corners; four values round them separately; and the eight-value form — four horizontal radii, a slash, four vertical ones — makes each corner an ellipse rather than a quarter circle, which is how the organic blob shapes are made.

The unit changes what the shape is, not just its size. A pixel radius is fixed, so a shape scaled up keeps thin corners and looks wrong; a percentage is resolved against the box, so the shape stretches with it and a blob stays a blob at any size. That is also why percentages are the only sensible unit for the eight-value form.

A radius of half the shorter side or more is a pill: the corners meet and going further changes nothing. border-radius: 9999px is the usual idiom for that, because it cannot be outgrown by a taller element — a pill built from a fixed radius stops being a pill the moment the text wraps to two lines.

Where it helps

  • All three forms — uniform, per-corner and elliptical — in one place, with the shorthand and the longhand written out.
  • Shows the shape at the box size you choose, which matters because a radius that looks right at 240px looks wrong at 60px.
  • Explains when a radius has become a pill and why a fixed value stops working there.
  • Percentages are offered, which is what an organic shape needs and what most generators omit.
  • Runs entirely in your browser.

Limits

  • border-radius can only make elliptical corners. Squircles — the continuous curvature Apple's icons use — need clip-path or an SVG, and look noticeably smoother at large sizes.
  • The preview is an empty box, so it cannot show what a radius does to a background image, an inner border, or a child that overflows.
  • A radius larger than the box allows is scaled down by the browser proportionally, which can make hand-tuned corner values come out differently than typed.
  • Overflowing children are not clipped unless overflow: hidden is set, which the preview does not model.

Frequently asked questions

What does the slash in border-radius mean?

It separates the horizontal radii from the vertical ones. border-radius: 60% 40% 30% 70% / 40% 70% 60% 30% gives every corner an ellipse with a different width and height, which is what makes the shape organic rather than four matching quarter circles.

Should I use pixels or percentages?

Pixels for interface corners, because a button and a card should have the same corner regardless of their size. Percentages for shapes — circles, ellipses, blobs — because they scale with the box and keep their proportions.

How do I make a pill-shaped button?

border-radius: 9999px. Any value at or above half the height produces the same pill, and an absurdly large one stays correct when the button grows — whereas a fixed 20px stops being a pill as soon as the label wraps.

Why does my rounded corner look cut off?

Usually a child element overflowing it: border-radius clips the background and the border, not the content. Add overflow: hidden to the rounded element, or put the radius on the child as well.

Related tools

More Colors & Design tools