CSS Border Radius Generator
Set a radius for each corner and get a ready-to-paste border-radius rule, collapsed to the shortest equivalent form (one, two, three or four values). Switch the unit between px and %, use the elliptical form (`x / y`) for squashed corners, and copy the previewed result.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
Questions
Why did my four values become one?
CSS collapses equal corners: four identical values become one, opposite pairs that match become two, and a matching bottom-right/bottom-left pair become three. The generator emits the shortest form that preserves the shape.
When do I need the slash syntax?
The `x / y` form makes each corner elliptical — different horizontal and vertical radii. A value of `50% / 25%` gives a lozenge; plain `50%` gives a circle.
Does this work on any element?
Yes. border-radius applies to any box, but it only clips content when the element establishes a clipping context, for example with `overflow: hidden` on an image wrapper.
How it works
CSS Border Radius Generator runs entirely in your browser tab. Your input is processed by JavaScript on this device. Nothing is uploaded, and the page works offline once it has loaded.
Related tools
See categoryCSS Box Shadow Generator
Generate box-shadow rules — single or layered soft shadows.
CSS Gradient Generator
Build linear, radial and conic CSS gradients with custom colour stops.
Fluid CSS Clamp Generator
Generate responsive CSS clamp() values between viewport breakpoints.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.