Border Radius Generator
Visually create complex CSS shapes by adjusting each corner's border-radius independently. Get the cross-browser CSS code instantly.
border-radius: 20% 20% 20% 20%;
About the Border Radius Generator
Adjust the four corners separately in pixels or percent, watch the shape change, and copy a ready border-radius rule.
Everything you enter is processed in your browser; nothing is uploaded or stored.
How to use it
- Choose the unit: pixels or percent.
- Set the top-left, top-right, bottom-right and bottom-left radius.
- Copy the CSS rule.
How border-radius works
border-radius takes up to four values in clockwise order from the top-left: border-radius: 20px 0 20px 0; rounds the top-left and bottom-right corners only.
Pixel values give the same curve whatever the element’s size. Percent values are relative to the element’s width and height, so 50% on a square makes a circle and on a rectangle makes an ellipse.
Example
border-radius: 50%; on a 120 × 120 px avatar image makes it a perfect circle.
Frequently asked questions
How do I make a circle with CSS?
Give the element equal width and height and border-radius: 50%.
How do I round only one corner?
Use border-top-left-radius (or the four-value shorthand with zeros for the other corners).
Does border-radius clip images inside?
Add overflow: hidden to the container so child content follows the rounded corners.