Border Radius Generator
Set each corner in px, % or rem, preview the shape and copy the shortest border-radius CSS.
Border Radius Generator sets the rounding of each corner of a box in pixels, percent or rem, shows the shape live and gives you the shortest border-radius CSS for it. Equal corners collapse to one value. It runs in your browser.
How does border-radius work?
border-radius
The CSS property that rounds the corners of a box. Values go clockwise from the top left: top left, top right, bottom right, bottom left. When pairs match, CSS lets you write fewer values.
Pixels versus percent
A pixel radius stays the same size on any box. A percent radius scales with the box, so 50% on a square makes a circle and on a rectangle makes an ellipse.
Why use Border Radius Generator?
- Each corner separately. Make tabs, speech bubbles or leaf shapes by rounding only some corners.
- Shortest CSS. The tool writes one, two, three or four values depending on which corners match.
- See the shape. The preview updates as you type, so you know the result before you paste it.
How to use Border Radius Generator, step by step

- Choose a unit in Border Radius Generator. Pixels, percent or rem.
- Set the four corners. Type a value for top left, top right, bottom right and bottom left.
- Copy the CSS. Press Copy text to take the border-radius line.
Frequently asked questions
How do I make a circle?
Set all four corners to 50 percent on a square element.
Does it support elliptical corners with a slash?
No. Each corner here has one radius. For elliptical corners, write the slash form, such as 40px / 20px, by hand.
Why does a huge pixel radius stop growing?
Browsers scale radii down when they are bigger than the box can fit, so a very large value ends up as a pill or circle shape.
Looking for the long version? The guides cover each of these jobs in depth.