Generate custom CSS border-radius code visually. Configure uniform corners, independent four-corner radii, or advanced 8-value organic blob shapes with real-time preview, copy, and download.
/* Calculating CSS... */
Click any preset to instantly apply its corner curvature settings:
The CSS border-radius property rounds the corners of an element's outer border edge. CSS supports both simple 1-to-4 value circular corner radii and advanced 8-value elliptical radii with slash notation.
border-radius: <top-left> <top-right> <bottom-right> <bottom-left> [ / <horizontal> / <vertical> ];
• 1 value: All 4 corners identical (16px).
• 2 values: Top-Left & Bottom-Right, Top-Right & Bottom-Left (12px 24px).
• 3 values: Top-Left, Top-Right & Bottom-Left, Bottom-Right (10px 20px 30px).
• 4 values: Clockwise from Top-Left (10px 20px 30px 40px).
When a slash (/) is included, values before the slash dictate the horizontal radii, and values after dictate the vertical radii. This enables dynamic fluid organic blobs and asymmetric pill contours.
• A Circle requires 50% on an element with an exact 1:1 aspect ratio (equal width & height).
• A Pill Button uses 9999px, capping curvature at half of the shorter dimension automatically.
| CSS Sub-Property | Target Corner | Supported Units | Usage Example |
|---|---|---|---|
border-top-left-radius |
Top Left Corner | px, %, em, rem | border-top-left-radius: 16px; |
border-top-right-radius |
Top Right Corner | px, %, em, rem | border-top-right-radius: 16px; |
border-bottom-right-radius |
Bottom Right Corner | px, %, em, rem | border-bottom-right-radius: 16px; |
border-bottom-left-radius |
Bottom Left Corner | px, %, em, rem | border-bottom-left-radius: 16px; |
border-radius (Shorthand) |
All 4 Corners Combined | px, %, em, rem | border-radius: 12px 24px 36px 48px; |
border-radius property rounds the corners of an element. It can accept between one and four values to customize individual corners, or eight values separated by a slash (/) to create elliptical and organic blob shapes. It clips borders, background colors, and child content (when overflow: hidden is set).
border-radius: 10px 20px 30px 40px;), CSS applies them clockwise starting from the top-left corner: Top-Left (10px), Top-Right (20px), Bottom-Right (30px), and Bottom-Left (40px).
16px radius remains constant whether the box is 50px or 500px wide. Percentages (%) calculate the radius relative to the element width and height. For example, 50% on a square yields a circle, whereas on a rectangle it creates an ellipse.
width: 100px; height: 100px;) and a border radius of 50% (border-radius: 50%;). If the width and height are unequal, 50% will produce an ellipse.
border-radius: 9999px; or border-radius: 999px;. Because CSS caps the corner radius at 50% of the element’s shorter dimension (the button height), the left and right ends will always form smooth semicircles regardless of button length.
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;), values before the slash define the horizontal radii and values after define the vertical radii. This technique is used to create modern organic blobs and morphing fluid shapes.
border-radius since CSS3 was standardized. Our generator includes a convenient prefix toggle for developers supporting legacy embedded WebViews or older iOS releases.
.css file directly to your project without creating an account.