Border Radius Generator

Generate CSS border-radius with live preview

Border Radius Controls

Preview

border-radius: 20px 20px 20px 20px;

CSS Border Radius Reference

Property / valueExampleResult
Equal all cornersborder-radius: 8pxUniformly rounded corners
Shorthand 2 valuesborder-radius: 8px 16pxtop-left/bottom-right | top-right/bottom-left
Shorthand 4 valuesborder-radius: 4px 8px 12px 16pxtop-left | top-right | bottom-right | bottom-left
Pill shapeborder-radius: 9999pxFully rounded ends (button pill)
Circleborder-radius: 50%Perfect circle on square element
One corner onlyborder-top-left-radius: 16pxSingle corner rounded, others sharp
Elliptical cornersborder-radius: 50% / 30%Different horizontal and vertical radii
rem unitsborder-radius: 0.5remScales with root font size (accessible)

The border-radius property applies to the background, border, and box-shadow — not the content itself. If your element has a background image, the image is clipped to the rounded shape. Use overflow: hidden on a parent if you need child content (like an image inside a card) to also respect the rounded corners. For pill-shaped buttons, border-radius: 9999px (or any sufficiently large value) is more reliable than 50%, which creates an ellipse on non-square elements rather than rounded ends.

Frequently Asked Questions

Common questions about Border Radius Generator