About this tool
Drag a slider for each corner, or link them to change all four together, in pixels or percent. Turn on elliptical corners to set horizontal and vertical radii separately for leaf and pill shapes. The output is written in the shortest valid shorthand.
How to use Border Radius Generator
- Choose px or %.
- Move the slider for each corner.
- Enable elliptical corners for asymmetric curves.
- Copy the border-radius line.
Frequently asked questions
What does the slash in border-radius mean?
Values before the slash are horizontal radii and values after it are vertical radii, in the order top-left, top-right, bottom-right, bottom-left.
How do I make a perfect circle?
Use 50% on a square element. On a rectangle, 50% makes an ellipse; a very large px value makes a pill shape instead.