How to use the CSS Border Radius Generator
- Start from a shape such as Rounded, Pill, Leaf or Blob.
- Tick Edit each corner separately to set the horizontal and vertical radius for every corner.
- Choose percent for shapes that follow the box size or pixels for a fixed rounding.
- Press Copy CSS and paste the rule into your stylesheet.
One value, four values and the slash
border-radius takes up to four values for the corners in the order top-left, top-right, bottom-right, bottom-left. One value applies to all four, two values give top-left and bottom-right the first and the other two the second, and so on. The tool collapses repeated values for you.
A slash separates horizontal radii from vertical radii and makes the corners elliptical. For example 50% / 30% 30% 70% 70% on the right side of the slash gives each corner its own vertical radius. A single 50% on a square box draws a circle; on a wide box it draws an ellipse.
Percent or pixels
Percent values follow the size of the box: 50 percent on every corner turns a square into a circle and a rectangle into an ellipse. Pixel values stay the same however big the box gets, which suits buttons and cards.
If the rounding of two neighbouring corners would add up to more than the side length, browsers scale all radii down together, so very large values do not overlap.
Frequently asked questions
How do I make a perfect circle?
Use a square box and a radius of 50 percent.
How do I make a pill button?
Use a large pixel radius such as 999px, or 50 percent in this tool; the ends become half circles.
What do the two numbers per corner mean?
The first is the horizontal radius and the second the vertical radius. When they differ, the corner is part of an ellipse.
Is it saved or uploaded?
No. The CSS is generated in your browser.
Sources
- MDN: border-radius (as of November 2026)
Last reviewed