How do I use the border radius generator?
Move the slider and watch the preview box round its corners in real time. In "All corners together" mode one slider controls the whole box, starting at 24px. Switch to "Each corner separately" when you want a different radius on each corner, for example rounded top corners on a card with square bottom corners. You can also resize the preview box and change its colour to match your design, then press Copy CSS and paste the result into your stylesheet.
What does border-radius do?
The CSS border-radius property rounds the corners of an element's border box. Instead of sharp 90-degree corners, the browser draws a quarter-ellipse curve at each corner, which makes cards, buttons, images and inputs look softer and more modern. The radius is measured from the corner along each edge: a value of 24px starts the curve 24 pixels from the corner. Larger values mean rounder corners, and once the radius reaches half the box height, the short ends become fully semicircular.
How does the shorthand work?
One value, like border-radius: 24px, applies to all four corners. Two values, like 60px 20px, set the top-left and bottom-right corners first, then the top-right and bottom-left. Three values, like 10px 20px 30px, set top-left, then top-right and bottom-left together, then bottom-right. Four values go clockwise from the top-left: top-left, top-right, bottom-right, bottom-left. This generator always outputs the shortest valid form, so equal corners collapse into fewer values automatically.
How do I make a circle or a pill button?
For a pill-shaped button, use a very large radius such as 999px: the ends become perfect semicircles no matter the button height. Press the Pill 999 preset to see it. For a circle, make the box square (equal width and height) and set border-radius: 50% in your CSS, or use 999px with this generator, which gives the same result on a square box. Avatars, badges and round icon buttons are usually built exactly this way.
What values should I use?
Small radii of 4px to 8px suit inputs, tags and compact buttons. Cards and panels usually look best between 12px and 24px, which is why the Soft 12 and Rounded 24 presets are good starting points. Hero images and feature blocks can go larger, 32px and beyond. A useful rule is to keep the radius smaller than half the element's height unless you want a pill shape, and to stay consistent: pick one or two radius values and reuse them across your whole design.
Is it free and private?
Yes. The CSS border radius generator is completely free, needs no sign-up, and runs entirely in your browser. Nothing you design here is sent to a server. It works on phones, tablets and desktop computers.