← All tools/Generators/Design/CSS Border Radius Generator
CSS Border Radius Generator
Shape a box with four corner sliders, watch it change live, then copy the exact border-radius CSS.
Live preview
border-radius: 24px 8px;
How it works
border-radius:; Corners run clockwise from the top-left. Equal values collapse: 24px 8px 24px 8px → 24px 8px. Elliptical corners add a slash: border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
Corners 24px, 8px, 24px, 8px: top-left and bottom-right match (24px), top-right and bottom-left match (8px), so the four values collapse to two — border-radius: 24px 8px. A pill is 50% on every corner; a leaf is 32px 0 32px 0.
The border-radius shorthand follows the CSS specification: values run clockwise from the top-left, and equal values collapse to the shortest form. Last updated November 2026.
Frequently asked questions
What does border-radius do?
It rounds the corners of any box — a button, card or image. The value is the radius of the curve: 0 is square, 50% on a square makes a circle, and larger values make softer corners.
What is the order of the four values?
Clockwise from the top-left: top-left, top-right, bottom-right, bottom-left. So 24px 8px 24px 8px rounds the top-left and bottom-right by 24px and the other two by 8px.
How do I make a pill or a circle?
For a pill, set every corner to 50% (or a pixel value at least half the element’s height). For a circle, use a square element with border-radius: 50%.
What is elliptical border-radius?
It gives each corner two radii — horizontal and vertical — separated by a slash, like 60% 40% 30% 70% / 60% 30% 70% 40%. That is how organic blob shapes are made.
Tell us what you think
Loving this tool, or stuck on something? Tell us — it takes a minute.
We’ll only use your name and email to reply if needed. The tool and page are filled in for you.