CSS Border Radius Generator

Set each corner’s radius, including elliptical corners for blob shapes, and get the shortest border-radius CSS.

Runs in your browser. Nothing is uploaded.

Preview
Corners
Presets

How to use the CSS Border Radius Generator

  1. Choose a unit, px, % or rem, and type a radius for each corner. With Same for all corners ticked, one value sets all four.
  2. Tick Elliptical corners to give each corner separate across and down radii, for organic blob shapes.
  3. Change the preview width and height to match your element.
  4. Try the presets, Rounded card, Pill, Circle, Speech bubble and Blob.
  5. Copy the CSS; it uses the shortest shorthand that gives the same result.

Rounded corners, exactly as you want them

Rounded corners soften a design and help group content: cards, buttons, images, inputs and avatars all use them. Simple cases need just one value, but CSS border-radius can do much more: a different radius on each corner, elliptical corners, and organic blob shapes made from eight separate values. Remembering the order and the slash syntax is fiddly. This generator gives you a control for every value and a live preview.

Corner by corner

Set each corner on its own, top left, top right, bottom right and bottom left, or tick Same for all corners to change them together. Choose pixels for fixed corners, percent for shapes that scale with the element, or rem to follow the user’s font size.

Elliptical corners and blobs

With Elliptical corners ticked, each corner gets two radii: one across and one down. When they differ, the corner becomes a quarter of an ellipse. Combine different values on each corner, in percent, and the box turns into a smooth, organic blob, a popular decorative shape behind illustrations and photos.

Shortest CSS

The output uses the shortest valid shorthand. Four equal corners become one value, matching opposite corners collapse to two or three values, and the slash part is added only when the vertical radii differ. The result is easy to read and works in every browser.

Try the presets

  • Rounded card: gentle 16 px corners.
  • Pill: fully rounded ends for buttons and tags.
  • Circle: 50% on all corners.
  • Speech bubble: one sharper corner pointing at the speaker.
  • Blob: an organic shape from elliptical corners.

Pair the result with the CSS Box Shadow Generator for depth and the CSS Gradient Generator for colour. Everything runs locally.

Frequently asked questions

How do the four values in border-radius map to corners?

They go clockwise from the top left, top-left, top-right, bottom-right, bottom-left. With fewer values CSS repeats them, so two values mean the top-left and bottom-right corners share the first and the other two share the second.

What does the slash in border-radius mean?

Values before the slash are horizontal radii, values after it are vertical radii. Different values make each corner an ellipse instead of a quarter circle. That is how blob shapes are made.

How do I make a perfect circle or a pill?

For a circle, use 50% on a square element. For a pill, use a radius larger than half the height, such as 999px; the browser caps it so the ends stay round.

px, % or rem?

px gives fixed corners. % depends on the element’s size, good for circles and blobs. rem scales with the root font size, so corners grow when users enlarge text.

Is anything uploaded?

No. Everything runs in your browser.

Tutorials

Tutorial · 6 min · intermediate

How to make an organic blob shape with CSS

Use elliptical border-radius values to turn a plain box into a smooth blob for backgrounds and image frames, with no SVG or image needed.