Web / CSS
Border Radius Generator
Create rounded corners for cards, buttons, images and UI elements. The tool supports equal, individual and asymmetric radii including elliptical values with horizontal and vertical axes.
Configure radius
CSS output
Notes
- One value: All four corners use the same radius.
- Four values: The order is top left, top right, bottom right, bottom left.
- Elliptical: Slash syntax separates horizontal and vertical radii.
How border-radius works
border-radius rounds the corners of an element's box. It changes the visible shape of cards, buttons, badges, images, or form controls, but it does not automatically change their width, height, or content.
One value such as 12px applies to all four corners. With four values, CSS uses the order top left, top right, bottom right, bottom left. A slash separates the two axes, for example 50% / 25% for a flatter elliptical corner shape.
The units px, %, rem, and em are written to the generated CSS. For rem and em, this tool converts the numeric value using a 16 px basis; the effective size can still differ with the document or parent font size.
- Card: The preset creates four equal 18 px radii, suitable for cards and panels.
- Pill or badge: The preset sets 160 px on every corner. Whether it looks like a pill also depends on the element's height and width.
- Asymmetric and elliptical: The “Organic” preset demonstrates four different values and a 75 % vertical axis for deliberately irregular shapes.
- Image or avatar: Percentage values respond to the element size. A circle needs a suitable square box; a radius alone does not make an image circular.
Limits and review
CSS scales very large radii down to the available box. Percentage values also change with the aspect ratio. Borders, backgrounds, overflow, and the actual target dimensions therefore affect the visible result.
Review the generated code in the real layout: equal radii, four different values, an elliptical slash output, copying, and reset. The preview represents this tool's sample box and does not replace a test with your own dimensions and content.
Further reading: MDN border-radius reference.