Border Radius Generator

CSS border radius generator for organic blob shapes: drag four sliders, preview the shape live and copy the eight-value border-radius code.

Runs in your browser. Files never leave your device.
30%
70%
40%
60%
Generated CSS
border-radius: 30% 70% 40% 60% / 40% 70% 30% 60%;

About the Border Radius Generator

Design organic blob shapes and unusual rounded corners with this CSS border radius generator. Drag four sliders and watch a gradient shape change in the live preview, then copy a ready-made border-radius line that uses all eight radius values to give each corner its own elliptical curve, rather than one plain radius.

Typical uses are hero-section blobs, avatar frames, decorative backgrounds and buttons with a softer, hand-drawn look. When you're short of ideas, Generate Random Shape gives you a fresh one to start from, and the result is plain CSS that works on any element without images or SVG.

How the eight-value border-radius works

A CSS corner doesn't have to be a quarter circle. Written with a slash, border-radius takes four horizontal radii (top-left, top-right, bottom-right, bottom-left) before the slash and four vertical radii after it, so every corner becomes a quarter ellipse with its own width and height.

Each slider moves the point where two neighbouring curves meet on one side of the box: Top edge sets that point along the top (measured from the left), Right edge down the right side (from the top), Bottom edge along the bottom (from the right) and Left edge up the left side (from the bottom). The two radii on each side always add up to exactly 100%, so the curves join smoothly with no flat stretch in between and the browser never has to shrink them.

border-radius: T  (100−T)  B  (100−B)  /  (100−L)  R  (100−R)  L

Before the slash: horizontal radii of the top-left, top-right, bottom-right and bottom-left corners
After the slash:  vertical radii of the same four corners, in the same order
T, R, B, L = the Top, Right, Bottom and Left edge slider values, in %

Percentages are measured against the element itself: horizontal radii against its width and vertical radii against its height. The preview is a 220 × 220 square, so on a wider or taller element the same code gives a stretched version of the shape.

Assumptions and limits

  • The generator writes percentage values only. For an ordinary rounded rectangle with the same radius on every corner, such as border-radius: 12px, you don't need the eight-value form.
  • Moving a slider to 0 or 100 sets one corner's radius along that edge to zero. A corner with a zero radius in either direction is drawn as a plain right angle, so that corner loses its curve.
  • Generate Random Shape picks each slider from 10 to 89, so random shapes always keep all four corners rounded.
  • Copy CSS copies a single border-radius declaration. The gradient, size and shadow in the preview are only there to show the shape and aren't included.

Worked examples

The starting blob

With the sliders at their default positions (Top edge 30, Right edge 70, Bottom edge 40, Left edge 60), the copied code gives a soft, lopsided blob that's a good base for a hero illustration or an image mask.

border-radius: 30% 70% 40% 60% / 40% 70% 30% 60%;

A circle, or an ellipse on a rectangle

Set all four sliders to 50. Every radius becomes 50%, which makes a perfect circle on a square element such as an avatar, and an ellipse on a rectangle such as a 300 × 150 banner.

border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;

A leaf shape with two sharp corners

Set the Top edge and Bottom edge sliders to 0 and leave the other two at 50. The top-left and bottom-right corners lose their horizontal radius and become square corners, while the top-right and bottom-left corners each curve across the full width and half the height, giving a leaf-like shape for badges or icons.

border-radius: 0% 100% 0% 100% / 50% 50% 50% 50%;

How to use the Border Radius Generator

  1. Shape the blob. Drag the Top, Right, Bottom and Left edge sliders and watch the preview update.
  2. Try random shapes. Press Generate Random Shape for a new starting point, then fine-tune it with the sliders.
  3. Copy the CSS. Press Copy CSS and paste the border-radius line into the stylesheet rule for your element.

Frequently asked questions

What does the slash mean in CSS border-radius?

Values before the slash are the horizontal radii of the four corners and values after it are the vertical radii. Without a slash each corner gets the same value in both directions, which in px gives a quarter circle; with it, each corner can be a quarter ellipse of any proportion.

How do I make a blob shape with CSS?

Give an element a width, a height and a background, then apply an eight-value border-radius in percentages like the one this generator copies. Keeping each edge's two radii at a total of 100% is what makes the outline look smooth and organic instead of boxy.

How do I make rounded corners in CSS?

For the same rounding on every corner, one value is enough, for example border-radius: 8px for a button or border-radius: 50% for a circle. Use four values (top-left, top-right, bottom-right, bottom-left) for different corners, and the slash form from this tool for blob shapes.

Why does my shape look different on my page?

Because percentage radii follow the element's size: horizontal values use its width and vertical values its height. The preview is square, so on a wide card the blob is stretched sideways. Make the element square, or adjust the sliders while thinking about your real proportions.

Can I animate between two blob shapes?

Yes. border-radius is animatable, which is how the preview morphs smoothly as you drag. Copy two shapes, add transition: border-radius 0.3s ease to the element and switch between them on hover, or use them as keyframes in a CSS animation for a slowly morphing blob.

Does the eight-value border-radius work in all browsers?

Yes. Elliptical corners written with a slash are part of the CSS Backgrounds and Borders standard and work in all current desktop and mobile browsers without a vendor prefix, so the copied line can be used as it is.

Sources

This tool runs entirely in your browser. What you enter or upload stays on your device and is never sent to our servers.