What Is a Border Radius Generator?
The CSS border-radius property rounds the corners of any element. While simple rounded corners are easy to write by hand, asymmetric shapes take some trial and error, because percentages and the corner-overlap rule change what you see on different box sizes. Set each corner with a slider (in px, %, em or rem), start from one of 12 presets, and preview the result on four box shapes.
Understanding the Syntax
A single value like border-radius: 12px rounds all four corners equally. Four values set each corner individually: top-left, top-right, bottom-right, bottom-left. The advanced slash syntax (border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%) creates elliptical corners where horizontal and vertical radii differ — enabling truly organic shapes.
How to Use This Border Radius Lab
- Set each corner independently — Adjust the border-radius for top-left, top-right, bottom-right, and bottom-left corners individually.
- Link or unlink corners — With Link Corners on, one slider sets all four; turn it off to set each corner separately. (The tool writes one radius per corner; it has no slash syntax.)
border-radius: TL TR BR BL / TL TR BR BLsyntax. - Use presets — Start from one of 12 shapes (Rounded, Pill, Circle, Leaf, Drop, Ticket, Dialog, Blob, Pebble, Squircle, Notch Top, Half) and adjust from there.
- Preview on different box shapes — Switch between square, rectangle, wide and circle previews, with an optional border, to see how the same value changes with the box size.
- Copy the CSS — Click Copy for the complete border-radius declaration.
Worked example: what the presets turn into on each preview shape
Every value this tool writes is a single radius per corner, but percentages are resolved twice: against the width for the horizontal radius and against the height for the vertical one (CSS Backgrounds 3). So on any non-square box a % value already gives elliptical corners. And when two neighbouring corners add up to more than the side between them, the browser scales all four radii down by the same factor (section 5.5). We worked the presets through those two rules for the tool's Wide (300 × 140) and Rectangle (180 × 260) previews on October 12, 2026, and checked three of them pixel by pixel in Chromium (first filled pixel on row 10 within 1 px of the prediction).
| Preset | CSS copied | On Wide 300×140 | On Rectangle 180×260 |
|---|---|---|---|
| Pill | 999px all | 70 px circular (scaled by 0.07) | 90 px circular (×0.09) |
| Circle | 50% all | 150 × 70 px ellipses: an oval | 90 × 130 px ellipses: an oval |
| Blob | 30% 70% 30% 70% | 90×42 and 210×98 px corners, no flat edge left on top or bottom | 54×78 and 126×182 px |
| Leaf | 0% 50% 0% 50% | two 150×70 px corners, two square | two 90×130 px corners, two square |
| Rounded / Squircle | 16px / 24px all | unchanged | unchanged |
- "Pill" works because of the scaling rule, not because of 999. Any value of at least half the shorter side gives the same capsule; on a square it gives a circle. 9999px is the common habit for the same reason.
- "Circle" is only a circle on a square. On the Wide and Rectangle previews 50% produces an oval. For a circle on any element, set equal width and height (or aspect-ratio: 1) as well.
- Order matters when you hand-edit. The copied value runs top-left, top-right, bottom-right, bottom-left. Swapping the last two in the Blob preset (30% 70% 70% 30%) makes the right side need 196 px of a 140 px edge, so every corner shrinks to 71% and the shape changes. We confirmed that in Chromium too.
- "Squircle" is a plain 24 px rounded rectangle. A true squircle (superellipse, as on iOS app icons) has a continuously changing curvature that border-radius cannot draw; use an SVG path or a mask for that.
- Slider limits: 0–50 in %, 0–200 in px, em and rem. Presets can go past them (Blob uses 70%, Pill 999px); the slider then sits at its end until you move it. Switching unit keeps the number, so 20px becomes 20em (320 px at a 16 px font size).
- What the tool does not do: it has no slash syntax for separate horizontal and vertical values per corner, and no drag handles. For hand-tuned elliptical corners, write the 8-value form yourself: border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%.
Sources
Checked on .
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools