Border Radius
Generator

Generate CSS border-radius values with live preview. Independently control each corner or lock them together for uniform rounding.

All 4 cornersLock / unlockCSS-ready

① Drag sliders to set corner radius ② Lock corners for uniform rounding ③ Copy the CSS

Presets
Generated CSS
border-radius: 20px;
Individual corners

CSS border-radius accepts up to 4 values to control each corner independently: top-left, top-right, bottom-right, bottom-left (clockwise).

Shorthand

When all corners are equal, a single value is output. CSS also supports elliptical radii using the "/" syntax for organic shapes.

Units

Border-radius accepts px (absolute), % (relative to element size) and other length units. 50% on a square creates a perfect circle.

CSS border-radius — corners, shapes and browser support

The CSS border-radius property rounds the corners of an element's border box. It accepts up to four values in clockwise order (top-left, top-right, bottom-right, bottom-left) using px, %, em, or rem units. A single value applies uniformly to all corners. Setting border-radius: 50% on a square element creates a perfect circle; border-radius: 9999px creates a pill shape. The slash syntax (border-radius: 50px / 25px) defines elliptical corners with independent horizontal and vertical radii. To clip images or content at rounded corners, add overflow: hidden. Supported in all modern browsers since CSS3 — no vendor prefixes required. In Figma, paste these values directly into the corner radius fields.

Frequently asked questions

The CSS border-radius property rounds the corners of an element's border box. It accepts 1–4 length values (px, %, em) for each corner in clockwise order: top-left, top-right, bottom-right, bottom-left.
1 value: all corners equal. 2 values: TL/BR and TR/BL. 3 values: TL, TR/BL, BR. 4 values: TL, TR, BR, BL (clockwise). When all four are equal, the generator outputs a single value for cleaner code.
Pixel values give absolute corner sizes regardless of element dimensions. Percentage values are relative to the element's dimensions — 50% creates a circle if the element is square, or an ellipse otherwise.
Set border-radius: 50% on a square element (equal width and height). For rectangular elements, use border-radius: 50% / 50% which creates an ellipse matching the element proportions.
Border-radius has minimal performance impact in static elements. However, animating border-radius or using it with complex backgrounds can trigger repaints. Using border-radius with transform on the GPU layer is more performant.
In Figma, border-radius is set per corner in the design panel. Copy this tool's output values directly. In Sketch, use the corner radius handles. Both tools support mixed corner radii like this generator.
Border-radius works on most HTML elements including div, button, img, input and table. Note that border-radius on img requires overflow: hidden to clip the image. It also works on SVG shapes in most modern browsers.

Explore Our Network