How to use
- Pick a preset close to the shape you want: rounded, circle, pill, tab, leaf, drop or blob.
- Choose a unit (% or px) and move the slider for each corner. Turn on Adjust all corners together to apply one slider to every corner.
- For elliptical corners, turn on Separate horizontal and vertical radii. Each corner then gets two sliders.
- Change the preview width and height to see the shape at a realistic element size.
- Copy the CSS code or the Tailwind class.
border-radius syntax
border-radius takes the corners in the order top left, top right, bottom right, bottom left (clockwise). Fewer values fill in by the usual CSS rule.
| Values given | Meaning | Example |
|---|---|---|
| 1 | All four corners | 16px |
| 2 | top left and bottom right / top right and bottom left | 0 70% |
| 3 | top left / top right and bottom left / bottom right | 50% 50% 0 |
| 4 | top left, top right, bottom right, bottom left | 16px 16px 0 0 |
The tool always writes the shortest form that means the same thing, and drops the unit from zero.
The slash and elliptical corners
A corner is an elliptical arc, not only a circular one. The part before the slash is the horizontal radius and the part after is the vertical radius, each following the 1 to 4 value rule above. If every corner has equal horizontal and vertical radii, the slash is left out.
The blob preset produces:
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
Horizontal radii are 30%, 70%, 70%, 30% for top left, top right, bottom right, bottom left, and vertical radii are 30%, 30%, 70%, 70%. Giving each corner different values is what makes the organic outline.
Preset code
- Rounded:
16px - Circle:
50%. A square becomes a circle and a rectangle becomes an ellipse. - Pill:
300px. When a radius is larger than half of the shorter side, the browser scales it down. In your own CSS a huge value such as9999pxis the usual choice. - Tab:
16px 16px 0 0 - Leaf:
0 70% - Drop:
50% 50% 0
px versus %
px keeps the radius constant whatever the element size, which suits buttons that vary in width. % scales with the element’s width and height, so on a non-square element it gives elliptical corners. Use 50% for circles and % for blobs that should keep their shape when resized.
Import
Paste an existing border-radius value to load it into the sliders. Only values in a single unit, px or %, are read, such as 10px 20px, 50% or 30% 70% / 20% 80%. With em, rem, calc() or variables nothing is imported and a notice is shown.
Frequently asked questions
How do I make a circle?
Give a square element border-radius: 50%. The same value on a rectangle gives an ellipse.
Can the radius be bigger than the element?
Yes. If the radii of adjacent corners add up to more than a side, the browser scales all of them down in proportion so they do not overlap. That is why a large px value is a common way to make a pill.
Can I round just one corner?
Move only that corner’s slider. In CSS the individual properties such as border-top-left-radius give the same result.
What happens when the element has a border?
The outer edge of the border follows this radius. The inner edge uses the radius minus the border width.
Related tools: CSS Box Shadow Generator, CSS Gradient Generator, CSS Beautify and Minify, CSS Flexbox and Grid Generator.
Your values and settings are processed in your browser and never sent to a server.