Squircle Generator
A squircle is not a rounded rectangle with a bigger radius. This tool draws it two ways: as a superellipse, the curve |x/a|^n + |y/b|^n = 1 that CSS corner-shape uses for its corners, or with Figma's corner smoothing, which eases the curve into each edge. The preview and code update as you move the controls, and you can copy SVG or CSS, or download the SVG file.
How to generate a squircle
- Pick a Model: Superellipse or Figma corner smoothing. Enter a Width (px) and Height (px) from 1 to 4000.
- Set Corner Radius. Its range ends at half the shorter side, so it cannot overshoot. In superellipse mode, tick Full shape to make the whole outline one superellipse.
- Drag Exponent n (2 to 12) or Smoothing (%) (0 to 100), or press a preset button. Choose a Fill Color.
- Switch Output format between SVG markup and CSS, then use Copy code. Download SVG saves a
squircle-file with a timestamp, and Reset to defaults starts over.
Superellipse or Figma smoothing
The exponent n sets how square the corner is. At 2 each corner is a quarter ellipse, which is a circular arc when the corner box is square. At 4 you get the shape CSS calls corner-shape: squircle, because that keyword is superellipse(2) and n is 2 raised to that number. Higher n pushes the curve toward the box corner. The CSS output lists corner-shape inside @supports, so browsers without it keep the plain border-radius.
Figma's smoothing is a different construction. A smoothing of 0% is a normal circular corner, and the 60% preset is the one Figma labels iOS. The curve starts earlier along each edge and the curvature joins the straight line without a jump, which a single circular arc cannot do. The clip-path output is fixed to the pixel size, while the mask output stretches with its box. The path is a polyline of short segments in superellipse mode.