CSS clip-path Generator

Create custom CSS shapes visually. Drag the polygon points right on the preview, load a ready-made shape, or switch to circle, ellipse, and inset modes — then copy the clip-path CSS.

Shape Type

Drag the white handles on the preview. Double-click a handle to remove it (3 point minimum), or double-click an empty spot to add one.

Preset Shapes

clip-path

Preview Fill

CSS Code

clip-path: polygon(50% 0%, 0% 100%, 100% 100%);

The Complete Guide to CSS clip-path

The CSS clip-path property lets you clip an element to any shape — triangles, hexagons, stars, arrows, speech bubbles, and freeform polygons — without images, masks, or SVG wrappers. The visible region is defined by a basic shape function, and everything outside that region simply isn't painted (and isn't clickable). Because it's pure CSS, it scales crisply at any resolution, animates on the GPU, and adds zero network requests.

The Four Shape Functions

How polygon() Coordinates Work

Each point is written as a horizontal value followed by a vertical value. 0% 0% is the top-left corner, 100% 0% is the top-right, and 100% 100% is the bottom-right. Points are connected in the order you list them, and the shape closes automatically from the last point back to the first. Using percentages keeps the shape responsive — it stretches with the element. You can also mix in pixel values for fixed-size notches.

Practical Uses

Browser Support & Tips

All modern browsers support clip-path with basic shapes. For maximum compatibility this generator outputs the standard property alongside the -webkit-clip-path prefix. Animations between two polygon() values only interpolate smoothly when both have the same number of points — a common gotcha. Remember that clipping affects pointer events too: clicks on the clipped-away area pass through to elements beneath.

Frequently Asked Questions

It clips an element to a custom shape — polygons, circles, ellipses, or inset rectangles — so you can make hexagon avatars, angled section dividers, speech bubbles, and reveal animations using pure CSS, with no image files.
In Polygon mode, drag any white handle directly on the preview. Double-click a handle to delete it (minimum 3 points), or double-click empty space to insert a new point. You can also start from any of the 18+ presets.
Yes — every modern browser supports clip-path with basic shapes. The generated code includes the -webkit-clip-path prefix for older WebKit versions, so you can paste it with confidence.
Yes. You can transition clip-path with CSS animations. For smooth polygon morphs, keep the same number of points in both the start and end shapes — the browser interpolates point-by-point.
Completely. The optional preview image you upload never leaves your device — it's only used locally to visualise the clip. SarvKit does no server uploads.