CSS SQUIRCLE GENERATOR
Build an iOS-style continuous-curve squircle shape and copy the clip-path CSS.
In short
Build an iOS-style squircle — a continuous-curve corner shape smoother than border-radius — from a superellipse formula rendered as a clip-path polygon, with adjustable smoothness, size, and color. No image or SVG file, runs entirely in your browser.
.squircle {
width: 200px;
height: 200px;
background: #ff6a35;
clip-path: polygon(100% 50%, 99.79% 68.06%, 99.14% 75.44%, 98.06% 80.93%, 96.53% 85.36%, 94.54% 89.01%, 92.04% 92.04%, 89.01% 94.54%, 85.36% 96.53%, 80.93% 98.06%, 75.44% 99.14%, 68.06% 99.79%, 50% 100%, 31.94% 99.79%, 24.56% 99.14%, 19.07% 98.06%, 14.64% 96.53%, 10.99% 94.54%, 7.96% 92.04%, 5.46% 89.01%, 3.47% 85.36%, 1.94% 80.93%, 0.86% 75.44%, 0.21% 68.06%, 0% 50%, 0.21% 31.94%, 0.86% 24.56%, 1.94% 19.07%, 3.47% 14.64%, 5.46% 10.99%, 7.96% 7.96%, 10.99% 5.46%, 14.64% 3.47%, 19.07% 1.94%, 24.56% 0.86%, 31.94% 0.21%, 50% 0%, 68.06% 0.21%, 75.44% 0.86%, 80.93% 1.94%, 85.36% 3.47%, 89.01% 5.46%, 92.04% 7.96%, 94.54% 10.99%, 96.53% 14.64%, 98.06% 19.07%, 99.14% 24.56%, 99.79% 31.94%);
}How to build a squircle shape
- 1
Adjust corner smoothness on the live preview — lower values look more like a circle, higher values look closer to a rounded square.
- 2
Set the size and fill color.
- 3
Copy the generated clip-path CSS.
- 4
Apply the .squircle class to an icon, avatar, or card element.
Questions
- What makes a squircle different from a rounded square (border-radius)?
- border-radius joins a straight edge to a circular arc with a sudden change in curvature at the point they meet, which the eye reads as a subtle kink. A squircle is a superellipse — |x|ⁿ + |y|ⁿ = 1 — where the curve changes continuously all the way around, the same continuous-corner shape Apple uses for iOS app icons, so it looks smoother at the same corner size.
- How does this tool draw a superellipse with only clip-path?
- There's no native CSS superellipse primitive, so this tool samples 48 points around the mathematical curve x = sign(cos t)·|cos t|^(2/n), y = sign(sin t)·|sin t|^(2/n) for the chosen exponent n, converts them to percentages, and joins them into a clip-path: polygon(...) — a polygon smooth enough at 48 points to read as a continuous curve.
- What does the smoothness value actually control?
- It's the superellipse exponent n. At n = 2 the shape is a perfect circle; as n increases the corners pull outward and flatten toward a square while the sides stay gently curved — most squircle logos land somewhere between 3 and 5.
- Is there a newer, native CSS way to do this?
- A corner-shape: squircle property is landing in some browsers' CSS Shapes work, but it isn't broadly supported yet. The clip-path polygon approach here works in every current browser today with no fallback needed.
- Does clip-path affect click targets or accessibility?
- clip-path only changes what's painted, not the element's layout box or hit-testing area in most browsers, so clicks just outside the visible curve near the corners may still register. For a purely decorative shape like an avatar or icon this is rarely noticeable; keep interactive controls (buttons, links) unclipped if precise hit areas matter.
Related tools
- CSS Clip-Path GeneratorDrag points on a live preview to build a clip-path: polygon() shape from a preset or from scratch, and copy the CSS.
- CSS Speech Bubble GeneratorBuild a chat-style speech bubble with a border-trick tail on any side, and copy the CSS.
- CSS Blob GeneratorRandomize an organic blob shape from a single border-radius value and copy the CSS.
- CSS Triangle GeneratorBuild a pure-CSS triangle with the border trick — direction, size, and color — and copy the CSS.
- CSS Link Underline Effects GeneratorBrowse a gallery of 10 hover underline effects for links — slide in, center out, double line, dot grow, and more.
- CSS Mask / Fade Edge GeneratorFade out the edges of an image or block with a mask-image gradient — top, bottom, sides, or all edges — and copy the CSS.
- CSS Button Hover Effects GeneratorBrowse a gallery of button hover effects — sweep, fill, shine, ripple, lift, and outline grow — and copy the CSS.
- CSS Ribbon GeneratorGenerate CSS and HTML for a diagonal corner sash or a banner ribbon with a swallowtail, arrow, or flat tail, with custom text, colors, and shadow.
Updated