Border Radius Generator

Round the corners of your elements with precision. This free tool offers a visual interface to generate border-radius CSS for buttons, cards, and images.

Design & Color Runs in your browser Free, no sign-up Instant results
Live Preview
Preview Box
border-radius: 10px;
Global Radius 10px
Individual Corners
Top Left
Top Right
Bottom Left
Bottom Right
Presets
CSS Copied to clipboard!

How to use the Border Radius Generator

  1. Pick a preset or drag the slidersStart from none, small, medium, large, circle or pill.
  2. Fine-tune each cornerSet the corners individually for unusual shapes.
  3. Copy the CSSCopy the border-radius code into your stylesheet.

Why Use a Border Radius Tool?

Rounded corners have become a staple of modern UI design, softening the visual appearance of websites and apps. The border-radius property in CSS controls this curvature. While simple values like 5px are easy to write, creating complex shapes—like asymmetrical blobs or pill-shaped buttons—can be tricky to visualize in your head.

Our CSS Border Radius Preview Tool solves this by providing immediate visual feedback. You can adjust the global radius for a uniform look or fine-tune individual corners to create unique geometric designs. This is particularly useful for chat bubbles, image overlays, or custom UI elements that require specific curvature.

This free tool also handles the shorthand syntax automatically. If you set different values for each corner, the tool generates the correct CSS string (e.g., 10px 20px 30px 40px) following the top-left, top-right, bottom-right, bottom-left order, saving you from syntax errors.

Rounded corners in CSS

border-radius rounds the corners of any element. One value rounds all four corners, and four values are applied in order: top-left, top-right, bottom-right, bottom-left.

To make a perfect circle, give a square element border-radius: 50%. For a pill-shaped button, use a large value such as 999px.

Frequently asked questions

What is the order of values in border-radius?

The shorthand property follows the clock-wise order: Top-Left, Top-Right, Bottom-Right, and Bottom-Left.

How do I make a perfect circle?

Set the border-radius to 50% or a very large pixel value (like 9999px) on an element that has equal width and height.

Can I use percentage values?

Yes, this tool uses pixels for precision, but you can manually change the unit to % in the code if needed, especially for responsive shapes.

Can I use percentages?

Yes. Percentages are based on the element's size, so 50% on a square makes a circle.

Does border-radius affect images?

Yes. Apply it to an image, or to its container with overflow: hidden, to round the image's corners.

More design & color tools