↑

Free CSS Border Radius Generator

What this tool does

The CSS Border Radius Generator rounds the corners of any box and gives you the CSS to copy. Move one slider for all four corners, or switch to separate sliders to shape each corner alone. Resize the preview box, change its colour, and try the Square, Soft, Rounded and Pill presets to see the effect. The output uses the shortest shorthand, ready to paste into your stylesheet. Free and private.



Box size: 220 x 150 px
CSS

Let us know

Please share your experience with this tool.

Thanks for rating!
No ratings yet — be the first!

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.

FAQs

How do I round only one corner?

Switch to "Each corner separately" mode and raise only that corner's slider. The CSS output will use the shorthand form, for example border-radius: 40px 0px 0px for a rounded top-left corner.

What value makes a circle?

Use border-radius: 50% on a square box, or 999px with this generator on a square box. Both give a perfect circle for avatars and round badges.

What is the difference between px and % radius?

Pixels set a fixed curve size, while percentages are relative to the box size, so 50% always makes an ellipse or circle. This generator uses pixels, which suit most cards and buttons.

How do I make a pill-shaped button?

Set a very large radius such as 999px. The short ends become semicircles at any height. Press the Pill 999 preset to preview it.

Does border-radius work in all browsers?

Yes. Border-radius is standard CSS supported by every modern browser, with no prefix needed.

Is it free?

Yes, completely free with no sign-up. Everything runs in your browser, so your designs stay private.


Author

Awais Arshad

Web Tools Developer & Content Creator at FastToolKit.