border-radius: 8px 16px 8px 16px;
Use the inputs above for your own values. The result follows the method and assumptions shown below.
How it works
Serialize circular corner radii clockwise from top left as a four-value border-radius declaration.
Input definitions
- Top-left radius (px)
- Enter the value in the labeled unit.
- Top-right radius (px)
- Enter the value in the labeled unit.
- Bottom-right radius (px)
- Enter the value in the labeled unit.
- Bottom-left radius (px)
- Enter the value in the labeled unit.
A worked example
- Top-left radius (px)
- 8
- Top-right radius (px)
- 16
- Bottom-right radius (px)
- 8
- Bottom-left radius (px)
- 16
Assumptions & limits
Circular radii in CSS pixels, no elliptical slash syntax. Browsers scale overlapping radii to fit the box.
Sources & review
Maintained by AnsRio. Methods and examples are reviewed against the stated formula; this is not professional certification.
Method updated 2026-11-18. Reviewed against the stated method and example. Our verification approach.
Report an issue with this tool or suggest an improvement ↗
Common questions
Which corner comes first in the four-value syntax?
The order is top left, top right, bottom right, bottom left. If adjacent radii cannot fit the element, the browser proportionally scales them down.
Does generated CSS or a color result guarantee an accessible design?
No. Test the result in its real layout, including text contrast, browser zoom, focus and responsive behavior. A code generator only covers its documented property or color operation.
How does the CSS border-radius generator tool work?
Serialize circular corner radii clockwise from top left as a four-value border-radius declaration.
What are the assumptions and limits of CSS border-radius generator?
Circular radii in CSS pixels, no elliptical slash syntax. Browsers scale overlapping radii to fit the box.