CSS Border Radius Generator
Professional-grade CSS border-radius tool with 8-point control. Includes a library of 50+ organic shapes, blobs, and UI elements with export for Tailwind and React.
About
Standard border-radius tools limit users to simple rounded corners, failing to unlock the full potential of the CSS3 specification. The border-radius property supports complex elliptical curves defined by eight unique values (four horizontal, four vertical). This generator bridges the gap between design intent and code implementation, offering precision control over these values.
This tool addresses a specific pain point in responsive design: maintaining shape integrity across different aspect ratios. By manipulating the semi-major and semi-minor axes of the corner ellipses, developers can create organic "blobs," complex dividers, and non-standard UI cards without relying on heavy SVG assets. The underlying engine calculates the exact percentages required to render smooth curves in all modern browsers.
Formulas
The rendering of a rounded corner in CSS is governed by the mathematics of an ellipse. For a specific corner, the curve is a quadrant of an ellipse defined by a horizontal radius rx and a vertical radius ry.
If the sum of two adjacent radii exceeds the length of the side L, the browser applies a reduction factor f to prevent overlap:
This ensures that rnew = rold × f, maintaining the shape's proportions while fitting it within the box model.
Reference Data
| Syntax Type | Formula / Value | Visual Result | Performance Cost |
|---|---|---|---|
| Uniform | r | Symmetric Circular Corners | Negligible |
| Elliptical | x / y | Asymmetric Curves | Low |
| Full Control | t-l t-r b-r b-l / ... | Organic / Blob Shapes | Low (Browser Native) |
| Pill (Capsule) | 9999px | Semi-circles at ends | Optimized by engine |
| Circle | 50% | Perfect Circle (if square) | Hardware Accelerated |
| Leaf | 0 r 0 r | Diagonal Symmetry | Low |
| Chat Bubble | r r r 0 | Directional Indicator | Low |
| Arch | r r 0 0 | Top-heavy Curve | Low |