CSS Border Radius Generator
Set the radius of each corner, with a separate vertical value if you want an elliptical curve, and see the shape drawn at once. The page writes the shortest CSS border-radius for it.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use CSS Border Radius Generator online
- Enter the four corners. Horizontal radii first.
- Add vertical values. Only for elliptical corners.
- Check the preview. Match the box size.
- Copy the CSS. Paste it into your style sheet.
Why use this free CSS Border Radius Generator
- Corner by corner control
- Elliptical corners
- Shortest shorthand
- Pixels or percent
- Overlap scaling shown
- Live drawing
One value or eight
The border-radius property takes up to four values for the corners, in the order top left, top right, bottom right and bottom left. A slash then lists the vertical radii when they differ from the horizontal ones. This page has a box for each corner and for each direction, so you can make circles, pills, leaf shapes and blobs without remembering the order.
The shortest form
CSS lets you leave values out. If all four are equal, one value is enough. If the opposite corners match, two values do. If only the top right and bottom left match, three are enough. The page works this out and writes the shortest form, and it adds the slash part only when the vertical values really differ.
Pixels and percent
Pixel radii stay the same when the box grows. Percent radii follow the box, so fifty percent on all corners turns any box into an ellipse, and a square into a circle. Switch the unit to see the difference in the preview, and set the width and height of the preview to match your own box.
When the corners overlap
If the radii of neighbouring corners add up to more than the side between them, CSS scales every radius down by the same factor so the curves just touch. The preview does the same and the summary tells you the factor. This is why a very large value looks like a half circle rather than breaking the box.
Limits
The drawing is a path with elliptical arcs and matches the shape a browser draws. Borders, outlines and images clipped by the radius are not drawn. Everything runs in your browser and updates as you type.
Using the tool
Change the text or any option of the CSS Border Radius Generator and the answer moves straight away. Open a text file into the box, or drop one on it.
CSS Border Radius Generator: frequently asked questions
Why does a huge radius still look fine?
How do I make a circle?
How do I make a pill?
What does the slash mean?
Can I mix pixels and percent?
Is the CSS Border Radius Generator private?
How do I keep the result of the CSS Border Radius Generator?
Related searches for CSS Border Radius Generator
- CSS Border Radius Generator online
- free CSS Border Radius Generator
- CSS Border Radius Generator online free
- CSS Border Radius Generator for mobile
- CSS Border Radius Generator without sign up
- CSS Border Radius Generator – Developer & Web Tools
CSS Border Radius Generator is a free online tool on MAITBOX, in the Developer & Web Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.