Round each corner in px or percent, make elliptical blob shapes, and see the radius the browser really draws before copying the CSS.
Initializing in your browser…
Generate realistic test data as JSON, CSV or SQL: valid card numbers and IBANs, safe example e-mails, and a seed that brings the same rows back.
Cut elements into shapes with CSS clip-path: 16 presets, draggable points, circles and rounded insets, with CSS checked before you copy it.
Design layered CSS box shadows with live preview on light or dark, twelve presets, inset shadows, and a box-shadow line to copy.
You use the Pill preset for a button and want to know what corner the browser actually draws on a 200 by 100 pixel button.
Settings
Pill preset: border-radius: 9999px Preview box: 200 x 100
What the panel under the preview shows
These radii overlap on a 200 by 100 box, so the browser shrinks every one of them by the same factor, 0.00500. Top Left 50.0 x 50.0 px Top Right 50.0 x 50.0 px Bottom Right 50.0 x 50.0 px Bottom Left 50.0 x 50.0 px border-radius: 9999px;
Along the 100 pixel sides, the two corners ask for 9999 + 9999 = 19998 pixels, so the browser scales every radius by 100 / 19998 = 0.005. Each corner becomes 9999 x 0.005 = 50 pixels, exactly half the height, which turns the short ends into semicircles. The same CSS on a 300 by 60 button would give 30 pixel corners, still a perfect pill, which is why the oversized value is the standard trick. The scaling is applied to all four corners together, so a single oversized corner would shrink the others too, and the panel shows that as well.
Round the corners of any element and copy the border-radius line. Set all four corners at once or each one separately, in pixels or percent, add elliptical corners for organic blob shapes, and see the radius the browser will really draw on a box of your size.
The shorthand. border-radius takes one to four values. One value rounds every corner the same; two values set opposite pairs (top-left with bottom-right, then top-right with bottom-left); four go clockwise from the top left. The generator always writes the shortest form that means exactly the corners you set, so a design with two rounded diagonal corners comes out as 40px 0px rather than four numbers.
Elliptical corners. A corner does not have to be a quarter circle. Turn on Elliptical and each corner gets a horizontal and a vertical radius, written with a slash: 60% 40% 30% 70% / 30% 70% 70% 30% is the Blob preset. Unequal radii make a corner curve away faster in one direction than the other, which is how organic, hand-drawn looking shapes and squircle-like cards are made in pure CSS.
Pixels or percent. Pixel radii stay the same size whatever the element. Percent radii scale with it, and they are measured against the width horizontally and the height vertically, so 50% on every corner gives a circle only when the box is square, and an ellipse otherwise. Switching to percent caps any corner above 100.
What the browser actually draws. If the two radii along one side add up to more than that side is long, CSS shrinks every radius on the element by the same factor until they fit. That is why border-radius: 9999px makes a perfect pill: on a 200 by 100 box each corner is scaled down to 50 pixels, half the shorter side. It is also why one oversized corner can quietly shrink the other three. The panel under the preview works this out for the box size you set and lists the radius each corner will really be drawn with, with a warning when scaling happens.
Working with it. Use Same for all corners for a quick result, or Each corner for full control. Change the preview box size and colour to match your element, start from one of thirteen presets (including Pill, Circle, Leaf, Blob and Squircle), and copy the CSS. The page address keeps your settings, so you can bookmark or share a design. Everything runs in your browser.
The Pill preset writes border-radius: 9999px. On a 200 by 100 box the browser scales each corner to 50px, half the height, so the ends are perfect semicircles at any width.
Top Only rounds the two upper corners and keeps the bottom square: border-radius: 20px 20px 0px 0px.
Blob uses elliptical percentages, 60% 40% 30% 70% / 30% 70% 70% 30%, for a soft, uneven shape that scales with the element.
Percent radii are measured against the width horizontally and the height vertically. On a square box 50% gives a circle; on a rectangle it gives an ellipse. For a circle, make the element square.
When two corner radii on a side add up to more than the side, the browser scales all four radii down by the same factor. A huge value therefore always ends up as half the shorter side, which is exactly the pill shape most people want.
Values before the slash are the horizontal radii and values after it are the vertical radii. Different pairs make elliptical corners, as in 60% 40% 30% 70% / 30% 70% 70% 30%.
Clockwise from the top left: top-left, top-right, bottom-right, bottom-left. With two values, the first is top-left and bottom-right, the second top-right and bottom-left.
It rounds the background and border. Child elements and images can still show in the corners unless you add overflow: hidden to the rounded element.
Pixels for consistent corners on cards and buttons of any size; percent when the curve should grow with the element, as in circles, pills on fixed-ratio boxes, and blob shapes.
This runs as client-side JavaScript. Keys, tokens, payloads, and other inputs never leave your device.