Skip to main content
WizTools123
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 the softer squircle shapes are made. A per cent mode is included, along with a wide preview that shows why per cent behaves as it does.

Free Forever Nothing Uploaded Elliptical corners Runs in your browser
Free Online CSS Border Radius Generator with Elliptical Corners
Share this tool
Advertisement Slot (Top Banner) Google AdSense Unit • Responsive Banner
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
Sponsored Content (Below Tool) Google AdSense Placement

Why a Per Cent Radius Turns Into an Oval

It is measured against the box, not against the corner.

A radius in pixels is one number and gives a circular corner: 20px across and 20px down. A radius in per cent is two numbers in disguise. The horizontal part is worked out from the width of the element and the vertical part from its height, so border-radius: 20% on a 400 by 100 box means 80px across and 20px down. The corner is an ellipse, and on a wide box it looks stretched.

That is not a bug, and it is occasionally exactly what you want: border-radius: 50% turns a square into a circle and a rectangle into a full ellipse, which is the shortest way to write either. But for a card or a button, where the width changes with the content, a per cent radius means the corner changes shape as the box changes shape. Pixels or rem keep it steady. Turn on the wide preview here and switch the unit to see the difference on the same numbers.

How to Build a CSS Border Radius

A few steps, and nothing is uploaded.

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.

What to Know About Border Radius

Including why a per cent radius changes shape with the box.

A per cent radius is relative to the element itself. The horizontal part comes from the width and the vertical part from the height, so the same per cent gives a round corner on a square and a stretched oval on a wide box. That is why border-radius: 50% draws a circle on a square and an ellipse on a rectangle.
The slash form sets the two axes separately. border-radius: 40px 40px 40px 40px / 20px 20px 20px 20px means every corner reaches 40px sideways and 20px down, which is a flatter, wider curve than any single value can give. The four values before the slash are horizontal, the four after are vertical.
A radius clips the background, not the content that overflows it. The rounded edge trims the background and the border, but a child element can still stick out past the curve unless you add overflow: hidden. This is why an image inside a rounded card often keeps square corners until you round the image too or clip the parent.
This is not a true squircle. The elliptical form gets closer to the smooth corner used on iOS than a plain circular radius does, but a real squircle is a superellipse and CSS has no property for one. If you need that exact curve you need an SVG path or a clip-path, and this page will not produce it.

Key Features & Capabilities

What this tool does, and what it deliberately does not.

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 the 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 that produces the soft, almost squircle corners people admire and then cannot reproduce.

This page exposes all of it. 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, and the wide-box toggle exists because per cent radii cannot be understood from a square.

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. Nothing is uploaded and nothing is remembered between visits; the page is a way of seeing a value before you commit it.

Frequently Asked Questions

Elliptical corners, per cent, squircles and clipping.

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.

Not with border-radius alone. A squircle is a superellipse, and the elliptical form here only gets you a closer approximation than a circular corner does. If you need the exact curve, draw it as an SVG path or apply it with clip-path, and accept that the element then clips its content differently.

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.

Other Developer Tools

Advertisement Slot (Bottom Banner) Google AdSense Unit • Responsive Banner