🔒 100% private — runs in your browser, nothing is uploaded

CSS Border Radius Generator

Round corners visually — per-corner sliders, px or %, and separate vertical radii for elliptical corners and blob shapes.

The border-radius shorthand lists its corners clockwise starting at the top-left: top-left, top-right, bottom-right, bottom-left. CSS then collapses equal values for you — one value rounds all four corners, two values mean “first and third, second and fourth”, three values reuse the second for the last corner. This generator applies the same collapsing, so equal corners produce the short form a human would write: 24px on every corner comes out as border-radius: 24px, not four copies. The worked example for a perfect circle is border-radius: 50% — but only on a square box, because percentages resolve against the box’s own width and height, so 50% on a rectangle makes an ellipse-ish pill with fully rounded ends. Fixed px values, by contrast, round every box by the same absolute amount regardless of its size, which is what you want for consistent cards and buttons across a layout.


Everything runs in your browser; your values are never uploaded, stored or put into a link. The preview box is styled with the exact declaration shown above.

Quick answers

How do I round all four corners equally in CSS?

border-radius: 16px — a single value applies to every corner. The generator collapses the shorthand automatically, so four equal sliders always produce this one-value form.

Use % instead of px if the rounding should scale with the box: border-radius: 10% rounds small and large boxes proportionally.

How do I make a blob shape with CSS?

Use the slash syntax with uneven percentage radii: border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%. Unequal corners plus separate vertical radii are what make the shape organic rather than a rounded rectangle.

Tick “Separate vertical radii” in this generator and drag the eight sliders — the preview morphs live, and animating between two blob values is a popular hero-section effect.

How to use

  1. Drag the four corner sliders — top-left, top-right, bottom-right, bottom-left — to round each corner independently.
  2. Choose the unit: px for fixed rounding that ignores box size, % for rounding relative to the box (50% on every corner of a square is a circle).
  3. Tick “Separate vertical radii” and set the second set of sliders to make corners elliptical — the generator emits the slash syntax for you.
  4. Copy the generated border-radius declaration into your stylesheet; the shorthand is already collapsed to its shortest correct form.

About this tool

The slash syntax is the part most developers never learn: border-radius accepts a second list of radii after a “/”, giving each corner a horizontal radius (before the slash) and a different vertical radius (after it) — an elliptical corner. That is the whole secret of the organic blob shapes used on modern landing pages: border-radius: 30% 70% 70% 30% / 30% 30% 70% 70% produces the classic asymmetric blob, and animating between two such values morphs the blob. Tick the vertical-radii option here and the eight sliders map directly onto that syntax. Two neighbours worth knowing: border-radius clips the element’s background but not its children — add overflow: hidden when an image inside must be clipped too — and a huge value such as 999px is the standard pill-button trick, because the radius simply caps at half the box height.

Frequently asked questions

In what order does border-radius take its values?

Clockwise from the top-left: top-left, top-right, bottom-right, bottom-left. With two values, the first covers top-left and bottom-right, the second covers top-right and bottom-left. With three values, the middle one is shared by top-right and bottom-left.

How do I make a circle with border-radius?

Set border-radius: 50% on a square element (equal width and height). Each corner radius becomes half the side, the corners meet, and the box renders as a circle. On a rectangle, 50% gives a stadium/pill outline instead — sometimes exactly what you want for buttons and tags.

What does the slash in border-radius mean?

It separates horizontal radii (before the slash) from vertical radii (after it): border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%. Each corner becomes an ellipse quadrant instead of a circular one, which is how organic blob shapes and leaf-like corners are made.

Why does my % radius look different on wide and tall boxes?

Because percentages resolve per axis: a horizontal radius of 50% means 50% of the width, a vertical radius of 50% means 50% of the height. On a wide, short box the same 50% therefore produces long flat curves. Use px when you need identical rounding at any size.

📦 Embed this tool on your site

<iframe src="https://verystep.com/embed/css-border-radius-generator/" title="CSS Border Radius Generator" width="100%" height="520" loading="lazy" style="border:0"></iframe>

Free to use. The embed shows a small "Powered by Verystep" link.

First time embedding? Read the step-by-step guide →

More free tools