DeveloperReady to use
Border Radius Generator
Adjust each corner radius independently and copy the resulting CSS border-radius declaration.
Interactive workspace
No account requiredHow to use it
- Choose whether all four corners stay linked.
- Adjust corner sliders and inspect the preview.
- Copy the border-radius declaration and apply it to the intended element.
CSS border-radius values and elliptical corner syntax
Four values set the top-left, top-right, bottom-right, and bottom-left corner radii clockwise. Eight-value syntax separates horizontal and vertical radii with a slash, making elliptical corners and organic blob shapes. Percentages are relative to the element dimensions; pixel, em, and rem radii use length units.
Border-radius presets
| Shape | Example CSS value | Use |
|---|---|---|
| Sharp | 0 | Square corners |
| Rounded | 8px | Small control corners |
| Card | 16px | Panels and cards |
| Pill | 999px | Pill-shaped buttons |
| Circle | 50% | Square elements |
| Egg / blob | 30% 70% 60% 40% / 40% 35% 65% 60% | Organic elliptical shapes |
The slash divides the four horizontal radii from the four vertical radii. Use overflow: hidden when child content must stay inside a clipped rounded shape. CSS transitions can animate border-radius between compatible values, but large animated corners may trigger extra painting.
Related tools
Box Shadow Generator
Design layered CSS box shadows with a live preview and copy the generated box-shadow declaration.
CSS Gradient Generator
Build linear, radial, and conic CSS gradients visually and copy the generated background or text gradient code.
Color Converter
Convert colors between HEX, RGB, and HSL in real time.
Aspect Ratio Calculator
Calculate a missing width or height from a known aspect ratio, or find the ratio between two dimensions.
CSS Button Generator
Style a button with live colors, spacing, corners, hover, and keyboard focus, then copy CSS and HTML.
Color Contrast Checker
Check the contrast ratio between two colors against WCAG AA and AAA accessibility thresholds.