What the Border Radius Generator does
The Border Radius Generator sets the roundness of every corner of a box, together or one by one, in pixels or percentages. Elliptical corners use different horizontal and vertical radii, which is how blob, leaf and egg shapes are made in pure CSS. The tool writes the shortest correct border-radius value and previews it at the size you choose.
How to use it
- Pick a preset or start with the same radius for all corners.
- Untick Same for all corners to set each corner separately.
- Tick Elliptical corners for separate across and down radii.
- Change the preview size to see how it scales, then copy the CSS.
Example
The Blob preset gives border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;, an organic shape often used behind photos. The Rounded preset gives simply 16px, and Pill uses 999px so the ends are always fully round, whatever the button width.
Pixels or percentages
Pixels keep the same corner whatever the box size, which suits cards and buttons. Percentages follow the box: 50% on a square makes a circle and on a rectangle an ellipse. When corners are too large for the box, the browser shrinks them all in proportion, so a 999px radius is a reliable way to make pill shapes.
The value is written in order: top left, top right, bottom right, bottom left. Values after the slash are the vertical radii of elliptical corners.
Questions people ask
Is anything uploaded?
No. Everything is worked out in your browser, so your colours, designs and images stay on your device.
Does border-radius clip images inside the box?
Add overflow: hidden to the box, or set the radius on the image itself.
Can I round only the top corners?
Yes. Untick Same for all corners and set the bottom ones to 0, or use the Tab preset.
Why is the CSS shorter than four values?
When opposite corners match, CSS accepts one, two or three values, and the tool writes the shortest.