Generate modern CSS clip-path shapes visually. Create polygons with draggable interactive control points, circles, ellipses, and inset frames with live preview, copy, and download.
Drag the blue knobs on the preview canvas, or fine-tune coordinates numerically below:
/* Calculating CSS... */
Click any preset to instantly apply its geometric clipping path:
The CSS clip-path property creates a clipping region that sets what part of an element is visible. Everything inside the region renders normally, while everything outside the clipping path is hidden and completely non-interactive.
clip-path: polygon(x1 y1, x2 y2, ...) | circle(r at cx cy) | ellipse(rx ry at cx cy) | inset(t r b l round rad) | path("SVG d");
Defines an N-sided polygon using coordinate pairs (x y) in percentages or pixels, connected sequentially in clockwise order to form a closed shape.
Renders a circle using a single radius length (e.g. 50%) centered at specified X and Y coordinates (e.g. at 50% 50%).
Creates an oval by declaring independent horizontal (rx) and vertical (ry) radii relative to a central origin point.
Defines an inner cropping rectangle with Top, Right, Bottom, and Left padding offsets, plus optional round <radius> for corner curvature.
| Shape Function | Arguments | Responsive Behavior | Best Used For |
|---|---|---|---|
polygon() |
Comma-separated coordinate pairs | 100% fluid with percentage coordinates | Angled cards, hero banners, arrows, stars, badges |
circle() |
Radius + at <position> |
Adapts to element container bounds | Circular avatars, reveals, floating action buttons |
ellipse() |
Radius X, Radius Y + at <position> |
Scales with container aspect ratio | Pill banners, arched headers, stadium tags |
inset() |
Top, Right, Bottom, Left + round |
Uniform margin crop | Inner card borders, rounded picture frames |
path() |
SVG path data string ("M ... Z") |
Fixed pixel coordinates (non-fluid) | Organic Beziers, curves, custom vector icon clipping |
clip-path property allows developers to mask elements into custom shapes such as polygons, triangles, circles, and ellipses. Anything inside the path remains visible, while outside areas are cropped away. Unlike CSS border-radius, clip-path can create arbitrary polygonal geometry and sharp diagonal edges.
50% 0%), coordinates calculate proportionally based on the element’s rendered width and height. As the element resizes on mobile, tablet, or desktop viewports, the clipping shape automatically stretches and scales in perfect proportion.
FileReader API, your image is loaded directly into your browser client-side with zero server storage, ensuring 100% privacy and instant performance.
polygon() defines straight-line edges between vertices using responsive percentage coordinates. path() uses SVG path syntax (e.g., cubic Beziers, arcs) allowing smooth curves, but coordinates are fixed in physical pixels and do not automatically scale with element dimensions without complex SVG transforms.
clip-path. However, Safari on iOS and older WebKit engines previously required -webkit-clip-path. Our generator includes a convenient prefix toggle so your output remains universally compatible.
clip-path is that pointer events (clicks, hovers, touches) are discarded for the clipped-out area. Users can click through the invisible parts to interactive elements underneath.
.css stylesheet file immediately.