What is the CSS Clip Path Generator?
Generate clip-path values to mask elements into polygons, circles, ellipses, and custom shapes. Drag handles to shape the mask visually.
Everything runs locally in your browser. Adjust the controls above, preview instantly, and copy clean, production-ready CSS — no account, no upload.
Using the CSS Clip Path Generator
Everything lives in the panel at the top of this page. There is nothing to install — it all runs right here in your browser.
Choose shape type
Select polygon, circle, ellipse, or inset from the shape buttons. A default shape appears on the preview element.
Drag the control points
Move the handles to reshape the mask. For polygons, double-click to add a point; click a point and press Delete to remove it.
Copy the clip-path value
Click Copy to grab the clip-path value. Apply it to an image, section, or any element.
What the generated code looks like
Clean, production-ready CSS — no vendor bloat, no unnecessary declarations.
/* Polygon shapes */
.triangle { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.parallelogram { clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%); }
.hexagon { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
/* Angled section break */
.section-angled {
clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
/* Circle mask */
.avatar { clip-path: circle(50%); }
/* Ellipse */
.hero-image { clip-path: ellipse(60% 40% at 50% 50%); }clip-path hides everything outside the shape. The element still occupies its full layout space - only the visible area changes.
Pro tips for better results
clip-path does not affect layout
The clipped element still occupies its original box in the layout. Surrounding elements are not affected. Use negative margins or overlapping positioning if you need adjacent elements to follow the clip shape.
Use clip-path for angled section breaks
polygon(0 0, 100% 0, 100% 90%, 0 100%) on a section creates a diagonal bottom edge that overlaps the next section. Combine with negative margin-bottom to close the gap.
Transitions work on clip-path for reveal effects
clip-path values can be transitioned if both states have the same number of polygon points. This enables revealing animations where shapes expand or transform.
Frequently asked questions
From the blog
Read more →Modern CSS techniques every developer should know
A practical tour of the CSS features that replaced yesterday’s hacks.
From design to code without the friction
How visual generators speed up the build without sacrificing clean output.
Writing CSS that scales with your project
Tokens, naming, and structure that keep large stylesheets maintainable.