Skip to content

How to Use CSS Border Radius Generator

Generate CSS border-radius code visually. Set each corner in pixels or percent, preview the shape live and copy the CSS. Free border radius generator.

About this tool

Set individual corner radii in pixels or percentages.

How to use CSS Border Radius Generator

  1. Choose Unit and whether all corners should share the same value.
  2. Adjust Top left, Top right, Bottom right and Bottom left.
  3. Copy the border-radius CSS and test it on an element of your intended size.

Worked example

Use matching 12px corners on a rectangular card, then unlink them to create an asymmetric shape.

Why do percentage corners look different on a rectangle?

Percentage radii depend on the element dimensions, so horizontal and vertical curvature can differ.

Will rounded corners clip child content automatically?

Not always. You may need appropriate overflow rules on the actual element, depending on your layout.

Put this guide into practice

Explore CSS Tools · More practical guides

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help