Free Online CSS Border Radius Generator with Elliptical Corners
Set all four corners independently, then switch on the two-value elliptical form to give each corner a separate horizontal and vertical radius, which is how softer squircle-style corners are made. A per cent mode is included, along with a wide preview that shows how per cent radii follow the box.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Use CSS Border Radius Generator
Step by step, start to finish.
Pixels give a corner that stays the same whatever the box does. Per cent scales with the width and the height, which is how a 50% circle works.
Leave them linked for one even radius, or unlink and drag each of the four on its own.
Switch it on and each corner gets a second, vertical radius. The output then uses the slash form, which is what gives you the softer squircle-style corners.
One border-radius declaration, in the shorthand order top left, top right, bottom right, bottom left.
Key Features
What this tool does, and what it does not do.
Linked for speed, or unlinked when only one corner should move.
The two-value slash form, for flatter and softer curves.
Switch the unit and watch the shape change on the same numbers.
The wide box is what makes per cent behaviour obvious.
One declaration in the standard corner order, units included.
No upload and no account. It works with the network off.
About CSS Border Radius Generator
border-radius looks like the simplest property in CSS until you meet its second form. One value rounds everything, four values round each corner in the order top left, top right, bottom right, bottom left, and a slash splits each corner into a horizontal and a vertical radius so the curve can be wider than it is tall. That last form is the one behind the soft, squircle-style corners on many app icons and cards, and this page makes it easy to dial in.
Drag the four corners together or separately, switch on the elliptical form to get the second set of radii, and change the unit between pixels and per cent. The preview is a real element, so the curve you are looking at is the curve the browser draws. A wide-box toggle stretches the preview so you can see how per cent radii respond to a box that is not square.
What can I set?
- Four horizontal radii, one per corner, each from 0 to 100.
- Four vertical radii when the elliptical switch is on, also from 0 to 100, written after the slash.
- Link all four corners, on by default, so the top-left slider sets every corner at once.
- Unit: pixels, or per cent of the box.
Pixels or per cent?
Pixels give a corner that keeps its shape however large the box grows, which suits buttons, cards and inputs. Per cent is measured against the width for the across part and the height for the down part, so the same number gives a round corner on a square and an oval corner on a wide box. That is exactly how 50% turns a square into a circle, and it is why the page shows a short hint under the sliders that changes with the unit you pick.
The output is a single shorthand declaration with the units written in, in the order the specification uses, so it drops straight into a stylesheet. Copy it or download it, and paste it into your CSS. The page runs entirely in your browser, needs no account, and works with the network off once it has loaded.
Frequently Asked Questions
Common questions about this tool.
border-radius: 50% on an element whose width and height are equal. On an element with unequal sides the same value gives a full ellipse, which is often useful in itself. For a pill shape on a box of unknown width, a very large pixel radius such as 9999px is the usual approach, since the browser caps it at half the shorter side.clip-path, keeping in mind that the element then clips its content to that path.overflow: hidden to the card so anything inside is clipped to the curve. The second option is usually cleaner, since it also handles content you add later.More Developer Tools
Other tools from the same hub, free and in your browser.
Feedback
No feedback on this tool yet. Yours would be the first.