Border Radius Generator
Craft rounded and organic shapes with per-corner border radius control.
Updated · Examples checked by automated tests
Top left
Top right
Bottom right
Bottom left
border-radius: 24%;
About Border Radius Generator
Border radius is deceptively deep: each corner takes two radii, and the eight-value shorthand that results is almost impossible to write by eye.
This generator exposes every corner independently with a live preview, offers a randomiser for organic blob shapes, and always shows the shortest valid shorthand for what you have built.
How Border Radius Generator works in your browser
Each corner takes a horizontal and a vertical radius. When they match, the corner is circular; when they differ, it becomes elliptical, which is how organic "blob" shapes are made. The generator writes the eight values as the border-radius shorthand, using the slash to separate horizontal and vertical radii.
It always outputs the shortest shorthand that produces the same shape, so the CSS stays readable.
When to use it
- Rounding only the top corners of a card or tab.
- Generating an irregular blob shape for an illustration or avatar mask.
- Turning a square element into a circle or pill.
Worked examples
Equal rounded corners in pixels
Settings: Unit px, all corners 12
Input
(all corners 12)Expected output
border-radius: 12px;When every corner matches, the shorthand collapses to one value.
A tab with only the top corners rounded
Settings: Unit px, top-left and top-right 16, bottom corners 0
Input
(top corners 16)Expected output
border-radius: 16px 16px 0px 0px;The four values run clockwise from the top-left: top-left, top-right, bottom-right, bottom-left.
Limits and checks before you use the result
- Percentages are relative to the element’s width and height, so 50% makes a circle only on a square element.
- Radii larger than the element are scaled down proportionally by the browser.
- Child elements and images can poke out of rounded corners unless the parent has overflow: hidden.
Frequently asked questions
What does the slash in the shorthand mean?
Values before the slash are horizontal radii and values after it are vertical radii, which is how you make elliptical rather than circular corners.
How do I make a circle?
Set every corner to 50% on a square element.
What are the organic blob shapes?
They come from mismatched horizontal and vertical radii on each corner, which produces the asymmetric shapes popular in modern illustration.
Related tools
CSS Clamp Generator
Generate fluid typography and spacing with clamp() and viewport units.
Flexbox Generator
Learn and generate flexbox layouts with every property visualised.
CSS Grid Generator
Compose CSS Grid layouts visually and export the code.
Box Shadow Generator
Design CSS box shadows visually, including layered and inset shadows.
CSS Gradient Generator
Build linear, radial and conic gradients with unlimited color stops.
Color Converter
Convert between HEX, RGB, HSL, HSB and CMYK with a live preview.