Border Radius
Generator
Generate CSS border-radius values with live preview. Independently control each corner or lock them together for uniform rounding.
① Drag sliders to set corner radius ② Lock corners for uniform rounding ③ Copy the CSS
border-radius: 20px;CSS border-radius accepts up to 4 values to control each corner independently: top-left, top-right, bottom-right, bottom-left (clockwise).
When all corners are equal, a single value is output. CSS also supports elliptical radii using the "/" syntax for organic shapes.
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.