CSS Clip Path Generator
Sculpt a shape directly on the canvas. Drag polygon points, explore rounded shapes, and export CSS or an SVG.
Live preview
Drag a point. Arrow keys move it; Shift moves by 10%. Delete removes it.
clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
Everything stays in your browser.
How to use
- Choose a shape or polygon preset.
- Drag a vertex or use its arrow keys. Hold Shift for larger steps; enable snap for a 5% grid.
- Try a local image and copy the CSS or download the SVG.
Example
clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
Details and limitations
Polygon points are bounded to 0–100%. You can add up to 20 points; at least three are required.
Adding a point inserts it halfway along the edge after the selected vertex. Delete removes the selected point.
Local raster images are preview-only and never uploaded or embedded in the export. The SVG contains a blue specimen and a reusable clipPath.
The SVG matches the square preview. CSS circle percentages use the normalized diagonal, so shapes on nonsquare elements can differ from a stretched SVG.
Opposing insets exceeding 100% are proportionally reduced, matching CSS behavior.
Related tools
Format references
Tool page updated: