CSS Border Radius Generator

Round each corner on its own or all together, try blob shapes, and copy the CSS.

FreeNo sign-upPrivate — runs in your browser

Preview size

Presets

CSS

How to use the Border Radius Generator

  1. Set the cornersDrag each corner slider, or tick “Same value for all corners” to round them together.
  2. Try shapesPick a preset like Pill, Circle or Blob, or type any border-radius value, including the elliptical / syntax.
  3. Copy the CSSPress Copy CSS. The code uses the shortest form, such as 24px or 16px 16px 0 0.

Example

Top corners 16px and bottom corners 0 give border-radius: 16px 16px 0 0;, a tab shape.

The Blob preset, 30% 70% 70% 30% / 30% 30% 70% 70%, sets horizontal and vertical radii separately for an organic shape.

Frequently asked questions

In what order are the four values?

Clockwise from the top left: top-left, top-right, bottom-right, bottom-left. Two values mean top-left/bottom-right and top-right/bottom-left; one value applies to all corners.

How do I make a perfect circle?

Use border-radius: 50% on an element whose width and height are equal. On a rectangle, 50% gives an ellipse.

How do I make a pill-shaped button?

Use a very large value such as 999px. The browser caps it at half the height, so the ends are always perfectly round whatever the button size.

What does the slash (/) do?

Values before the slash set the horizontal radius of each corner and values after it set the vertical radius. Different values make elliptical corners, which is how blob shapes are made.

Popular posts from this blog

Character Counter

Speech to Text Online

Keyboard Tester