Favorites

superellipse() CSS Function

superellipse()
CSS FunctionThis function is supported in some modern browsers, but not all.
Updated 21st November 2026

The superellipse() function describes a corner curve for corner-shape, from a sharp notch through a bevel and round corner to a squircle.

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.

Description

The superellipse() CSS function describes the curve used for a box's corners when combined with the corner-shape property. It gives you control over corner shapes that go beyond the circular arcs of border-radius, including the smooth "squircle" corners used in many app icons, as well as bevelled, scooped and notched corners. The size of the corner is still set with border-radius; superellipse() only changes its shape.

The argument is a number that controls the curvature. A value of 1 gives a normal round corner, the same as border-radius on its own. Values above 1 make the corner squarer and smoother; 2 is a squircle, and infinity gives a sharp square corner. 0 produces a straight diagonal bevel. Negative values curve the corner inward: -1 is a concave scoop and -infinity is a notch. The corner-shape keywords are shorthands for these values: round, squircle, square, bevel, scoop and notch.

/* App-icon style squircle */
.icon {
  border-radius: 28%;
  corner-shape: superellipse(2);   /* same as squircle */
}

/* Ticket with scooped corners */
.ticket {
  border-radius: 16px;
  corner-shape: superellipse(-1);  /* same as scoop */
}

/* Gentle bevel */
.tag {
  border-radius: 10px;
  corner-shape: superellipse(0);   /* same as bevel */
}

superellipse() and corner-shape are currently supported only in Chromium-based browsers. Elsewhere, the corners fall back to ordinary rounded corners.

Interactive Demo

Demo Code
HTML Code
<div class="demo-element"></div>
CSS Code
.demo-element {
	width: 200px;
	height: 130px;
	border-radius: 50px;
	background: linear-gradient(135deg, #f72585, #4361ee);
	corner-shape: superellipse(1);
}

Syntax

superellipse() = superellipse( <number> | infinity | -infinity )

Values

  • <number>The curvature of the corner. 1 is a normal round corner, values above 1 are squarer (2 is a squircle), 0 is a straight bevel, and negative values curve inward (-1 is a scoop).
  • infinityA sharp square corner, the same as corner-shape: square.
  • -infinityA sharp inward notch, the same as corner-shape: notch.

Example

<div class="wrap">
<h1>CSS superellipse() examples</h1>
<div class="grid">
<div class="card">
<div class="shape s-inf"></div>
<div class="label">superellipse(infinity)</div>
</div>
<div class="card">
<div class="shape s-3"></div>
<div class="label">superellipse(3)</div>
</div>
<div class="card">
<div class="shape s-2"></div>
<div class="label">superellipse(2) /* squircle */</div>
</div>
<div class="card">
<div class="shape s-1"></div>
<div class="label">superellipse(1) /* round */</div>
</div>
<div class="card">
<div class="shape s-0"></div>
<div class="label">superellipse(0) /* bevel */</div>
</div>
<div class="card">
<div class="shape s-m1"></div>
<div class="label">superellipse(-1) /* scoop */</div>
</div>
</div>
<p class="note">All boxes use border-radius: 40px. Browsers without corner-shape show plain rounded corners.</p>
</div>
/* Base demo layout */
* { box-sizing: border-box; }

body {
margin: 24px;
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
background: #f5f7fb;
color: #102a43;
}

.wrap {
max-width: 860px;
margin: 0 auto;
}

h1 {
font-size: 20px;
margin: 0 0 16px;
}

.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 16px;
}

.card {
background: #fff;
border-radius: 12px;
padding: 16px;
box-shadow: 0 6px 18px rgba(16, 42, 67, 0.08);
}

.label {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
font-size: 12px;
color: #486581;
margin-top: 10px;
word-break: break-word;
}

.note {
font-size: 13px;
color: #486581;
margin-top: 14px;
}

/* superellipse() examples */
.shape {
height: 110px;
border-radius: 40px;
background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.s-inf { corner-shape: superellipse(infinity); }
.s-3 { corner-shape: superellipse(3); }
.s-2 { corner-shape: superellipse(2); }
.s-1 { corner-shape: superellipse(1); }
.s-0 { corner-shape: superellipse(0); }
.s-m1 { corner-shape: superellipse(-1); }
Open in editor

Browser Support

The following information will show you the current browser support for the CSS superellipse() function. Hover over a browser icon to see the version that first introduced support for this CSS function.

This function is supported in some modern browsers, but not all.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported

Looks like you're using an ad blocker, and that's fine! Ads help keep CSS Portal's generators and references free, so if the site's useful to you, visit our Support page to see other ways to help.