Squircle Generator
Adjust corner smoothness and export the code
Preview
.squircle {
width: 240px;
height: 240px;
clip-path: path('M 120 0 L 175.33 0.19 L 189.6 0.77 L 199.46 1.75 L 207.12 3.13 L 213.39 4.92 L 218.65 7.16 L 223.11 9.87 L 226.91 13.09 L 230.13 16.89 L 232.84 21.35 L 235.08 26.61 L 236.87 32.88 L 238.25 40.54 L 239.23 50.4 L 239.81 64.67 L 240 120 L 239.81 175.33 L 239.23 189.6 L 238.25 199.46 L 236.87 207.12 L 235.08 213.39 L 232.84 218.65 L 230.13 223.11 L 226.91 226.91 L 223.11 230.13 L 218.65 232.84 L 213.39 235.08 L 207.12 236.87 L 199.46 238.25 L 189.6 239.23 L 175.33 239.81 L 120 240 L 64.67 239.81 L 50.4 239.23 L 40.54 238.25 L 32.88 236.87 L 26.61 235.08 L 21.35 232.84 L 16.89 230.13 L 13.09 226.91 L 9.87 223.11 L 7.16 218.65 L 4.92 213.39 L 3.13 207.12 L 1.75 199.46 L 0.77 189.6 L 0.19 175.33 L 0 120 L 0.19 64.67 L 0.77 50.4 L 1.75 40.54 L 3.13 32.88 L 4.92 26.61 L 7.16 21.35 L 9.87 16.89 L 13.09 13.09 L 16.89 9.87 L 21.35 7.16 L 26.61 4.92 L 32.88 3.13 L 40.54 1.75 L 50.4 0.77 L 64.67 0.19 Z');
}Settings
Shape
Size
The generated path is calculated from this width and height. The preview is shown at a readable size
Used in the preview and SVG output
What is Squircle Generator?
Squircle Generator creates shapes that sit between a square and a circle. border-radius rounds corners with circular arcs, so the change from a straight edge to the corner is fairly visible. A squircle keeps the curvature continuous from edge to corner, so it feels softer while keeping more of the square's character.
Use it for app icons, cards, and buttons that need a silhouette border-radius cannot express. When you are happy with the shape, export it as CSS or SVG and use it directly in your layout.
How to Use
- Pick a preset close to your target, or adjust smoothness, rotation, and aspect ratio.
- Set the size you will use in your layout.
- Choose an output format and copy the code.
Main Settings
Presets
Start from a preset that matches your use case. Each preset sets the size, rotation, and smoothness together, so you can refine the values from there. The shape preview helps you compare the options.
Corner Smoothness
Higher values round the corners toward a circle. Lower values keep straighter edges and a more square-like silhouette. Icons and avatars usually work with higher values, while buttons and cards often need lower ones.
Rotation
0° keeps the shape upright. 45° turns it into a diamond-like silhouette with corners pointing up, down, left, and right. Use 0° for app icons, avatars, cards, and buttons, and 45° for badges or other decorative shapes that should feel diamond-like.
Size and Aspect Ratio
Width and height define the coordinate space of the generated path() and SVG. The preview is shown at a readable size, while the output uses the size you set. Lock the aspect ratio to change width and height together. Common ratios are available as presets.
Output Formats
CSS: a.squircleclass with the size and clip pathclip-path: thepath('...')valueSVG path: the path for adattributeSVG: SVG code that includes the fill color
Fill Color
The color used in the preview and SVG output. The exported SVG includes this color as its fill.
Use Cases
- Giving app icons and profile images a silhouette between a circle and a square
- Making cards and thumbnails feel softer than a standard border radius
- Keeping corner styling consistent across icons, cards, and other UI surfaces
Things to Keep in Mind
- The generated
clip-path: path()uses coordinates based on the selected width and height. If the element size changes, the shape will not scale with it, so the path needs to be regenerated for the new size. - Support for
clip-path: path()differs between browsers. Checking the result in the target environment before shipping helps avoid unexpected rendering issues.
Last updated:

