RubanTools

CSS Border Radius Generator

Control all four corners independently - live preview and copy the CSS instantly.

Corner Settings
16px
Presets
Live Preview
Full rule

Border Radius FAQ

border-radius: TL TR BR BL sets all four corners clockwise from top-left. border-radius: 8px sets all four equally. border-radius: 8px 16px sets TL+BR=8px, TR+BL=16px. The individual properties are border-top-left-radius, border-top-right-radius, border-bottom-right-radius, border-bottom-left-radius.

Pixel values give fixed rounding regardless of element size. Percentage values are relative to the element's dimensions - 50% on a square element creates a perfect circle (since 50% of width = 50% of height = the center point). Use % for circles/ovals, px for consistent rounded corners on variable-size elements.

border-radius: 50px 20px / 20px 50px uses the slash to set elliptical corners - the values before the slash define horizontal radii, after the slash define vertical radii. This creates asymmetric, organic-looking curves used in blob/squircle shapes. Each corner can be an independent ellipse.