CSS Border Radius Generator

Adjust each corner rounding individually and copy the ready-made CSS code.

What border-radius is

The CSS border-radius property rounds the corners of an element. It accepts up to four values, one per corner, in order: top-left, top-right, bottom-right, bottom-left (clockwise from the top).

Common shapes

EffectValues (TL TR BR BL)
Uniform corners (standard card)16px on all
Perfect circle (square element)50% on all
"Teardrop" shapeOne corner at 0, the other three rounded
Pill (button)Half the element height on every corner

Tip

To create a perfect circle from a square div, set border-radius to 50% — it works because the percentage is relative to the element's own width/height.

Shapes and pitfalls beyond the circle

A pill-shaped button uses a radius larger than half its height, such as 9999px: the browser scales the value down on its own to the largest possible size, without distortion. For a navigation tab, use 12px 12px 0 0. A stylized leaf comes from 0 50% 0 50%. On a rectangular box, 50% produces an ellipse, not a circle.

Easy-to-miss details

On images, rounding clips the content; with thick borders, the outer radius is the one that counts.

Frequently asked questions

In what order are the four border-radius values applied?

Always clockwise, starting at the top-left corner: top-left, top-right, bottom-right, bottom-left.

How do I make a perfect circle?

Apply border-radius: 50% to an element with equal width and height.

Can I use percentages instead of pixels?

Yes, CSS accepts percentages, but this tool works in pixels for precise visual adjustment.

Does border-radius work on images?

Yes, it can be applied to any element, including <img> tags, to create rounded avatars and thumbnails.