All tools CSS Border Radius Generator ● Live Developer Tools

How CSS Border Radius Generator works

  1. Choose px or % as your unit.
  2. Leave 'Link all corners' checked to adjust all four corners uniformly, or uncheck it to control each corner independently.
  3. Drag each corner's slider to set its radius.
  4. Watch the live preview box update its shape in real time.
  5. Click Copy to copy the generated border-radius CSS property.
  • Design a rounded card or button and get the exact border-radius CSS to paste into your stylesheet.
  • Create a circular avatar frame by setting all corners to 50%.
  • Round only the top corners of a header or dropdown panel for a specific UI pattern.
  • Match a border-radius value from a design mockup by adjusting the sliders visually.
  • Experiment with asymmetric corner combinations for a distinctive shape.

All calculations and the live preview run locally in your browser. Nothing is sent to a server.

  • Supports the standard four-corner radius model only — not the extended 8-value elliptical corner syntax for organic blob shapes.
  • Maximum radius is capped at 200px or 50%, covering typical UI use cases.
  • The preview box is a fixed-size example — it doesn't preview the radius on your actual page content.

CSS Border Radius Generator

CSS Border Radius Generator provides sliders for all four corners independently or linked together. Toggle between px and % units. The live preview updates the shape of a box in real time, and the CSS border-radius property is always one click away.

CSS Border Radius Generator Runs locally

CSS

border-radius: 16px;
Guide

How to use

  1. Choose px or % as your unit.

  2. Leave 'Link all corners' checked to adjust all four corners uniformly, or uncheck it to control each corner independently.

  3. Drag each corner's slider to set its radius.

  4. Watch the live preview box update its shape in real time.

  5. Click Copy to copy the generated border-radius CSS property.

Scenarios

Use cases

  • Design a rounded card or button and get the exact border-radius CSS to paste into your stylesheet.

  • Create a circular avatar frame by setting all corners to 50%.

  • Round only the top corners of a header or dropdown panel for a specific UI pattern.

  • Match a border-radius value from a design mockup by adjusting the sliders visually.

  • Experiment with asymmetric corner combinations for a distinctive shape.

Good to know

Limitations & Privacy

Private by design

All calculations and the live preview run locally in your browser. Nothing is sent to a server.

  • Supports the standard four-corner radius model only — not the extended 8-value elliptical corner syntax for organic blob shapes.

  • Maximum radius is capped at 200px or 50%, covering typical UI use cases.

  • The preview box is a fixed-size example — it doesn't preview the radius on your actual page content.

FAQ

Frequently asked questions

How do I create a circle?

Set all corners to 50% and enable 'Link all corners' — the element will appear as a perfect circle if its width and height are equal, or as an ellipse if they aren't.

When should I use % vs px?

Use % for shapes that should remain proportionally round relative to the element's size (like circle avatars that scale). Use px for fixed-radius corners, like the standard 8px or 16px rounded corners common in card and button designs, that should stay the same regardless of element size.

How do I round only some corners, like just the top of a card?

Uncheck 'Link all corners' to unlock independent sliders for each of the four corners, then set only the top-left and top-right sliders while leaving the bottom two at 0.

What's the maximum radius value?

Up to 200px, or up to 50% when using percentage units. 50% on a square element always produces a perfect circle.

How is the CSS generated when all corners are equal?

When all four corner values match, the tool outputs a single shorthand value like border-radius: 16px;. When corners differ, it outputs all four values in top-left, top-right, bottom-right, bottom-left order, matching the standard CSS border-radius shorthand.

Can I create irregular 'blob' shapes with this?

This tool controls the four standard rectangular corner radii, which can create rounded rectangles, capsules, and circles/ellipses. True organic blob shapes typically need the more complex 8-value border-radius syntax or an SVG path, which isn't generated here.

Will the generated CSS work in all browsers?

Yes. border-radius is supported in all modern browsers without vendor prefixes, for both single-value and per-corner syntax.