About the Border Radius Generator
The Border Radius Generator lets you set the rounding of all four corners of a box and see the shape update live. Presets cover common shapes like pills, tabs, leaves and drops, and the output uses the shortest valid border-radius shorthand.
How it works
CSS border-radius accepts up to four values, applied clockwise starting from the top-left corner: top-left, top-right, bottom-right, bottom-left. The generator writes the shortest form that means the same thing: one value when all corners match (16px), two when opposite corners match (60px 0), otherwise all four.
In px mode each slider runs from 0 to 100; in % mode from 0 to 50, relative to the box's size. Each value is the radius used to round that corner, so larger values give gentler, wider curves. When the radii are too large for the box, the browser scales them down proportionally so they still fit.
How to use
- 1
Pick a preset, or leave Link all corners checked to round every corner equally; uncheck it to shape each corner on its own.
- 2
Choose px or %, then drag the Top-Left, Top-Right, Bottom-Right, and Bottom-Left sliders.
- 3
Watch the preview box update as you go.
- 4
Click Copy to copy the border-radius declaration, or Copy link to share the shape.
Worked examples
Default rounded card
Equal 16px corners for a card component.
Tab shape
A navigation tab rounded only on top.
Leaf badge
A decorative shape with two opposite corners rounded.
Frequently asked questions
Can each corner have a different radius?+
Yes. Uncheck Link all corners and each of the four sliders can be set on its own.
How do I create a fully circular element?+
Use a square element, switch the unit to %, and set every corner to 50 for border-radius: 50%.
What does Link all corners do?+
While it is checked, moving any slider sets all four corners to the same value. Uncheck it to give each corner its own radius.
What order are the four values in?+
Clockwise from the top-left: top-left, top-right, bottom-right, bottom-left.
What happens if the radius is bigger than the element?+
The browser automatically scales all corner radii down so the curves fit, which is why a very large value turns a box into a pill or circle.