Skip to content
M2TOOLKIT

Border Radius Generator

Shape rounded corners and copy the CSS.

Use it as often as you like — it's free, with no sign-up and no limits.

  • Design
  • Free
  • No sign-up
  • Runs in your browser
  • Updated
Unit
24px

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us.

How to use the Border Radius Generator

  1. Choose px or %.
  2. Set one radius for all corners, or each corner separately.
  3. Copy the CSS.

What does this tool do?

border-radius rounds the corners of any element. A radius of 50% on a square makes a circle; different values per corner create pill and leaf shapes.

Why use it?

  • Buttons, cards and avatars.
  • Per-corner control.
  • Instant preview.

Use cases

  • Rounded buttons, cards and inputs.
  • Pill badges and circular avatars.
  • Organic blob and leaf shapes.

Order of values

border-radius: 24px 8px 24px 8px; sets top-left, top-right, bottom-right, bottom-left — clockwise from the top left.

Common mistakes

  • Using 50% on a rectangle and expecting a pill — use a large px value like 9999px instead.
  • Different radii on matching components, which looks inconsistent.
  • Forgetting overflow: hidden when inner content should follow the rounded corners.

Privacy

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.

Frequently asked questions

Why doesn't an image inside my rounded box have rounded corners?

Child content can spill over the corners. Add overflow: hidden to the rounded container, or give the image the same border-radius.

What does the slash in border-radius mean?

Values before the slash set the horizontal radius and values after it set the vertical radius, which creates elliptical corners — for example border-radius: 50% / 20%.

How do I make a perfect circle?

Give the element equal width and height and set border-radius: 50%.

px or %?

px keeps corners the same at any size; % scales with the element.

Content last updated . See how M2Toolkit works.

Other tools people use alongside the border radius generator.