Border Radius Generator
Set the radius of each corner in pixels, percent or rem, see the shape live and copy the border-radius CSS in its shortest form.
Processed on your device. Files are not uploaded
How to round corners with CSS
Choose the unit
Pixels, percent or rem.
Set each corner
Drag the values and watch the shape.
Copy the CSS
The shortest form of the rule is given.
Worked example
This is what Border Radius Generator gives for its own sample values. Open the tool above and change anything to try your own.
- Unit
- Pixels
- Top left
- 24
- Top right
- 24
- Bottom right
- 24
- Bottom left
- 24
CSS
border-radius: 24px;
About Border Radius Generator
Round each corner of a box separately. The result is written in the shortest CSS form: one value if all corners match, two for opposite pairs, and so on. Use 50% on a square for a circle.
FAQs
How do I make a circle?
Give a square box a radius of 50%.
Which order are the corners in?
Top left, top right, bottom right, bottom left, clockwise.
Can I add a shadow?
Use Box Shadow Generator.