CSS border-radius generator
Border-radius builder with independent corners, drag or slider editing, px/percent units, circle/capsule/leaf/arch/blob presets, 8-value slash syntax and a live preview with copyable CSS.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Shape preset
8px on all corners — the everyday card/button radius
Corner radii
Adds a second set of radii after / so the corners become elliptical — handy for organic shapes.
8pxDrag near a corner of the preview box to change that corner radius.
Generated CSS
Compressed with the CSS shorthand rules: equal corners collapse to a single value.
.radius-box {
border-radius: 8px;
}What this tool does
- Tune card, button and avatar radii corner by corner — drag the preview near a corner to change that corner
- One-click circle (50%), capsule (9999px), leaf, arch and organic blob shapes
- Generate the 8-value border-radius: a b c d / e f g h syntax when you need elliptical corners
Example
Input
Preset: Blob (corners 63% 37% 63% 37%, slash 37% 63% 37% 63%)
Output
.radius-box {
border-radius: 63% 37% / 37% 63%;
}With slash syntax the horizontal and vertical radii are each compressed, then joined with / into 8 values.
Frequently asked questions
What is the difference between px and percent?
px is a fixed radius. Percentages are relative to the element width (horizontal radii) and height (vertical radii), so 50% is a circle on a square but an ellipse on a rectangle. When you switch units, out-of-range values are clamped (px ≤ 9999, % ≤ 100).
What is the slash (8-value) syntax?
In border-radius: a b c d / e f g h the values before / are the horizontal radii and those after / are the vertical ones, producing elliptical corners. The tool compresses each side independently, so 63% 37% 63% 37% becomes 63% 37%.
Why does the output have fewer than four values?
It follows the CSS shorthand rules: four equal corners collapse to one value, top-left=bottom-right plus top-right=bottom-left to two, top-right=bottom-left to three, and only a fully distinct set keeps four. The result is equivalent to what the browser resolves.
Can the selector be .card .title?
No. Only a single .class, #id or tag name (e.g. .radius-box, #avatar, div) is accepted because it is a template for one rule. For compound selectors, copy the output and replace the selector in your editor.
Keywords:border-radiusCSS