Border Radius Generator
Round corners with per corner sliders, blob mode and copyable CSS
How to use
- The simple mode starts selected. Each slider drives one corner: top left, top right, bottom right, bottom left.
- Switch to blob mode for eight sliders, a horizontal and a vertical radius per corner.
- Five presets cover the rounded card, circle, drop, leaf and organic shapes. Pick one and fine tune from there.
- The preview box mirrors every change, so keep dragging until the shape fits.
- Copy the standard border radius rule and paste it into your stylesheet.
Syntax and behavior
What is the eight value syntax?
What happens when neighboring corners overlap?
How do pixels differ from percentages?
Does border radius clip images?
Common questions
Why is the preview a 160 pixel square?
Are the parameters saved?
Does border radius affect layout?
Does the generated code work everywhere?
Screenshots


How to use
- Drag the corner sliders
Four sliders control top left, top right, bottom right and bottom left. The preview box follows every move in real time.
- Switch to blob mode
Blob mode splits each corner into horizontal and vertical radii, eight sliders in total. It matches the eight value syntax for petals and organic shapes.
- Start from a preset
Rounded card, circle, drop, leaf and blob cover the common shapes. Pick the closest one and fine tune from there.
- Copy the CSS
The output switches format with the mode and builds a standard border radius rule. Copy it and paste into your stylesheet.
About this tool
The border radius shorthand lists four values clockwise from the top left corner. The eight value form splits each corner into a horizontal and a vertical radius with a slash between the two groups. Unequal pairs turn every corner into an elliptical arc. Petals, drops and organic shapes all come from that form. The browser guards against overlap. When neighboring radii sum past the side length, it scales all radii down by one factor. The shape survives, though it may differ from the plan. Rounded areas also clip backgrounds and overflowing content, which makes border radius plus overflow hidden the standard way to crop avatars and covers.
This tool offers four sliders in simple mode and eight in blob mode. The preview is a 160 pixel square, and the output switches format with the mode. Five presets cover the common shapes and stay editable after selection, while the mode and all values persist on this device for the next visit. The generated values are pixels, so rescale them proportionally for other element sizes. A perfect circle ignores size altogether: write 50% and any square element rounds fully.
How it works
Each radius pair defines a quarter ellipse, measured horizontally along the width and vertically along the height. Eight equal values at half the side length produce a circle. When adjacent radii overflow a side, the browser scales them all by one factor to keep the shape closed. That is why some large values seem to change nothing. The rounded region clips backgrounds and overflowing content, and overflow hidden leans on that behavior to crop images. The property also transitions smoothly, enabling small morphing interactions between shapes.
Radii are now a base variable of most design systems, commonly built on 4, 8, 12 and 16. Large radii feel friendly and soft, small radii feel crisp and professional, so the choice itself sets the tone. Asymmetric radii create drops and leaves, and the eight value form builds irregular blobs that decorate pages more cheaply than illustrations. Keep text containers to modest radii, since big curves squeeze the reading area and hurt line lengths. Body cards do best with small to medium corners.
When to use it
- Avatars and covers
Community pages lean on rounded avatars and covers. A shared 8 to 16 pixels works for rectangles, and full rounding handles circles. With overflow hidden the image clips itself to the shape and needs no extra processing of the source file.
- Buttons and cards
Buttons usually sit between 6 and 10 pixels while cards take 12 to 20. Two or three tiers carry a whole site. A pill shaped primary button, fully rounded, separates cleanly from secondary actions by weight alone. Apply the same rule to form confirm buttons so emphasis stays predictable.
- Organic decoration
Landing pages use blob mode to build asymmetric organic shapes that feel livelier than plain rounded blocks and lighter than illustrations. Save the eight values and reuse them across sections. A few offset color blocks already form a backdrop set, and the shapes animate nicely on scroll.
Tips & tricks
- Follow the design system for radii, and multiples of 4 keep the whole site consistent.
- For a circle on a non square element write 50% instead of forcing fixed pixels.
- Pair large radii with overflow hidden, or images will spill past the rounded corners.
Things to watch
- Content spills past corners
Border radius clips backgrounds and overflowing content, but an image without overflow hidden still covers the corners squarely. Avatars and covers hit this most often. Add hidden overflow on the container or round the image itself so the shape completes.
- Circle values on rectangles
Maxing four corners on a rectangle yields a capsule, not a circle, since the two ends stay half circles. A true circle needs a square element or a 50% value. Half of each side rounds fully without any extra math, whatever the size.
- Mixing up the eight values
In the eight value form the slash lists four horizontal radii first, then four vertical ones. Both groups run clockwise from the top left. Reversing them ruins the shape, and no amount of dragging fixes the order. Confirm the direction of both groups before adjusting, then calibrate corner by corner.