Skip to main content
WizTools123
Free Online Tools

Tool Categories


Developer Tools New Tool

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.

Free Forever Runs in Your Browser Elliptical Corners Four Separate Corners
Free Online CSS Border Radius Generator with Elliptical Corners
Share this tool
CSS Border Radius Generator Everything happens in this tab. Nothing you paste is sent anywhere.
Preview
CSS
Mode
Horizontal radius 18px 18px 18px 18px
Vertical radius 40px 40px 40px 40px

Pixels give the same corner whatever the size of the box.

Buy Us A Coffee

Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.

Buy Us A Coffee

How to Use CSS Border Radius Generator

Step by step, start to finish.

1
Choose a unit

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.

2
Set the corners

Leave them linked for one even radius, or unlink and drag each of the four on its own.

3
Try the elliptical form

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.

4
Copy the rule

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.

Four independent corners

Linked for speed, or unlinked when only one corner should move.

Elliptical corners

The two-value slash form, for flatter and softer curves.

Pixels or per cent

Switch the unit and watch the shape change on the same numbers.

Square or wide preview

The wide box is what makes per cent behaviour obvious.

Shorthand output

One declaration in the standard corner order, units included.

Runs in your browser

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.

It separates the horizontal radii from the vertical ones. The values before the slash say how far each corner curves across, and the values after say how far it curves down. Without a slash, each corner uses one value for both axes and the corner is a quarter circle.

Because the radius is in per cent. The horizontal part is a percentage of the width and the vertical part is a percentage of the height, so a wide element gets a corner that is much wider than it is deep. Use pixels or rem if you want the corner to stay the same shape as the box grows.

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.

The elliptical form here gets you a close, soft approximation: try a horizontal radius larger than the vertical one on each corner. A true squircle is a superellipse, so for that exact curve draw it as an SVG path or apply it with clip-path, keeping in mind that the element then clips its content to that path.

Because the radius clips the parent element's own background and border, not its children. Either give the image the same radius, or add 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.

All Developer Tools

Feedback

No feedback on this tool yet. Yours would be the first.