CSS border-radius generator
Control the four corners of a box and see the result in real time. You can link them for uniform rounding or combine them to create asymmetrical shapes.
Workspace · Border-radius generator
border-radius: 24% 24% 24% 24%;
En porcentaje, 50 % dibuja un círculo o una elipse según las dimensiones del elemento. El valor 0 elimina el redondeo.
border-radius: 24% 24% 24% 24%;How to use it
Enter the radius for each corner or enable the link to move them all at once.
Choose pixels for a fixed radius or a percentage for shapes relative to the element’s size.
Copy the `border-radius` rule and paste it into your stylesheet.
Examples
Soft card
24 px at all four corners is a common rounding for cards and panels.
Leaf shape
0 48px 0 48px creates a rounded top-right and bottom-left corner, with the other corners remaining straight.
What you need to know
The `border-radius` property accepts between one and four values. When four values are specified, the order is top-left, top-right, bottom-right and bottom-left. When expressed as a percentage, the value is calculated relative to the width and height, so 50 per cent produces a circle or an ellipse.
Rounding trims the background and the border of the element, but not any content that overflows unless `overflow: hidden` is specified. Bear this in mind when placing images or positioned elements in the corners.
Frequently Asked Questions
Related tools
Other tools that can help with similar tasks.
CSS Animation Generator
Choose an animation, adjust its duration and curve, and copy the keyframes using ‘reduced-motion’.
CSS Shadow Generator
Creates soft box shadows and copies the box-shadow property.
CSS Gradient Generator
Design linear or radial gradients and copy the CSS.
