Set every corner's horizontal and vertical radius separately, see the shape live, and copy the shortest border-radius that still means the same thing.
.rounded {
border-radius: 12px;
}CSS Border Radius Generator runs entirely on your device — nothing is uploaded.
You’re on the Free plan. Compare plans
`border-radius` takes up to eight values, not four. Each corner has a horizontal radius and a vertical radius, and when the two differ the corner is a quarter-ellipse rather than a quarter-circle. That is the whole mechanism behind the organic blob shapes that otherwise look like they need SVG, and it is invisible in every four-value example.
The slash is what separates the two sets: the four horizontal radii come first, then a slash, then the four vertical radii, each going clockwise from the top left. Written out that way it is easy to read and nearly impossible to guess, which is why a visual editor beats the documentation here.
Percentage radii behave differently from lengths and the difference matters. A percentage is resolved against the element's own width for the horizontal radius and its height for the vertical one, so a percentage corner changes shape when the element resizes and a pixel corner does not. For a shape that should stay the same through a responsive layout, use lengths; for one that should stretch with the box, use percentages.
The output is collapsed to the shortest form that produces exactly the same shape. If all four corners match, you get one value, not four identical ones — and if they do not, you get the full eight-value form with the slash rather than four longhand declarations.
It separates the horizontal radii from the vertical ones. Everything before the slash is the horizontal radius of each corner, clockwise from the top left; everything after is the vertical radius. When a corner's two values differ, it is a quarter-ellipse.
It does give you an ellipse, which is correct. A percentage horizontal radius resolves against the element's width and the vertical against its height, so on a non-square element 50% produces an ellipse. Use a pixel radius, or make the element square, for a circle.
You can get close with large elliptical radii, but not exactly. A true squircle is a superellipse, which border-radius cannot express — the real options for that are an SVG path or `corner-shape`, which is still new enough that it needs a fallback.
The browser scales every radius down by the same factor until they fit. Nothing breaks, but the shape you get is not the shape you wrote, which is why a radius larger than half the element's smaller side is worth avoiding.
Yes. The preview is styled from the same generated value, so what you see is what the copied declaration does.