CSS Clip Path Generator
Draw clip-path shapes by dragging vertices on a live canvas — polygon, circle, ellipse, and inset — with 25 ready-made shapes, per-point editing, and a draggable editor. Export CSS (with -webkit-), SCSS, Tailwind, or JS.
About this ToolHow it works, benefits & use casesTap to collapse
Sculpt CSS clip-path shapes by dragging directly on a live canvas. Choose one of four shape types — polygon, circle, ellipse, or inset — and edit it visually: drag polygon vertices to move them, click empty canvas space to drop a new vertex on the nearest edge, or hover an edge and hit the + button to insert a midpoint. Circles and ellipses get draggable centre and radius handles; inset is shaped with top/right/bottom/left sliders plus a corner-radius. Every coordinate is a percentage, so the shape scales with the element. A gallery of 25 ready-made shapes — arrows, stars, chevrons, badges, speech bubbles, and more — gives you instant starting points, and any parametric shape can be converted into an editable polygon when you want full per-point control. The preview shows the clipped element over your choice of gradient background with a ghost of what’s clipped away, and a live readout shows the exact clip-path value. Export CSS (with the -webkit-clip-path prefix for Safari), SCSS, a Tailwind arbitrary class (identical in v3 and v4), or a JS inline style — all captured in a shareable URL.
How to Use
- 1Pick a shape type — polygon, circle, ellipse, or inset — or load one of the 25 gallery shapes.
- 2For polygons, drag the vertices, click empty canvas to drop a new point, or use the + button on an edge to insert one.
- 3For circle/ellipse, drag the centre and radius handles; for inset, use the top/right/bottom/left and corner-radius sliders.
- 4Fine-tune any polygon vertex with the numeric X/Y fields, or use "Start from scratch" to begin with a fresh triangle.
- 5Switch the preview background, and click "Convert to editable polygon" to turn a parametric shape into draggable points.
- 6Choose an output format and copy, download, share, or pipe the generated clip-path.
Key Benefits
- Drag vertices and handles directly on a live canvas — no guessing at coordinates
- Four shape types: polygon, circle, ellipse, and inset (with corner radius)
- Click-to-add and edge + buttons insert polygon points on the nearest edge
- 25 ready-made shapes (arrows, stars, chevrons, badges, bubbles) as starting points
- Percentage-based coordinates so shapes scale with the element
- Convert any parametric shape into an editable polygon for full control
- Exports include the -webkit- prefix; Tailwind arbitrary class works in v3 and v4
Common Use Cases
- Cutting hero images into angled or chevron sections for landing pages
- Masking avatars and thumbnails into circles, hexagons, or custom shapes
- Creating arrow, badge, and speech-bubble shapes without SVG
- Designing diagonal section dividers with inset and polygon clips
- Producing reusable, responsive clip-path values that scale with their container
Drag dots to move • click empty space to drop a new vertex
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);Shape type
Shapes
Vertices (6)
Copy, download, share, or pipe to another tool
.element {
-webkit-clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}Draw any shape, get clean CSS
Drag the vertices to sculpt a polygon(), or switch to circle(), ellipse(), or inset(). Click the + on an edge to add a point; every value is a percentage so the shape scales with the element. Export ships the -webkit-clip-path prefix for Safari, and the Tailwind arbitrary value works the same in v3 and v4.
Was this tool helpful?
Share Your Experience
Help others discover this tool!
Related tools
- CSS FormatterFormat and beautify CSS code
- CSS MinifierMinify CSS code
- Parallax Effect CalculatorBuild multi-layer parallax with pure-CSS perspective, JS scroll, or React — scrollable live preview
- CSS Triangle GeneratorGenerate CSS triangles in 8 directions with the classic border trick or a modern clip-path — live preview, tunable size & color. Export CSS, SCSS, Tailwind, or JS
- Unused CSS DetectorFind CSS selectors never matched by your HTML, see how many bytes you can save, and get cleaned CSS - with a safelist for dynamic classes
- View Transitions CSS GeneratorGenerate cross-document @view-transition CSS and the startViewTransition() JS path — with a live preview
With a polygon selected, click anywhere on empty canvas to drop a new vertex — it is inserted on the nearest edge so it joins the shape cleanly. You can also hover an edge and press the + button to add a midpoint there. To remove a point, use the X button next to it in the Vertices list; a polygon always keeps at least three points.
Circle, ellipse, and inset are parametric shapes with fixed handles — you can move their centre and radii but not add arbitrary points. "Convert to editable polygon" approximates the current shape as a polygon and exposes every point for dragging and fine-tuning, so you can start from a clean circle or inset and then distort it freely.

