Border Radius Generator
Adjust each corner with sliders and get the shortest equivalent CSS border-radius shorthand. Your input never leaves your browser.
How to use
Includes the 8-value blob (organic shape) syntax with a randomizer. The preview updates live and everything stays in your browser.
In Corners mode, four sliders control the top-left, top-right, bottom-right and bottom-left radii. The output is automatically collapsed to the shortest equivalent shorthand — one value when all corners match, two when the diagonals match, and so on. Switch between px and %, and turn on "Link all corners" to move all four with a single slider. Blob (8 values) mode builds the slash-separated syntax with four horizontal and four vertical radii; hit the randomizer to explore organic shapes.
Examples
- All four corners 12px →
border-radius: 12px;(collapsed to one value) - Top-left & bottom-right 10px, top-right & bottom-left 20px →
border-radius: 10px 20px;(diagonals match, two values) - Top corners 24px, bottom corners 0 →
border-radius: 24px 24px 0px 0px;(tab-like top rounding) - Unit % with all corners 50 →
border-radius: 50%;(a perfect circle on a square element) - Blob default →
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;