← All tools/Generators/Design/CSS Clip Path Generator
CSS Clip Path Generator
Pick a shape, see it live, and copy the clip-path code — percentages are relative to the element box, so it scales to any size.
Your shape
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%)
How it works
Builds clip-path: polygon(x% y%, ...) from preset points Percentages are relative to the element box
A hexagon is clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%). Paste that one line into your CSS and any rectangle becomes a hexagon — it scales with the element.
Frequently asked questions
What is clip-path?
A CSS property that clips an element to a shape. polygon() takes a list of x% y% points, and the element is cut to the shape those points outline.
Will it work in all browsers?
Yes — clip-path: polygon() is supported in all modern browsers (Chrome, Firefox, Safari, Edge). Very old browsers ignore it and show the full rectangle.
Do the percentages scale with the element?
Yes. 25% always means a quarter of the element’s own width, so the same code works on a 100px badge and a 600px banner.
Can I animate a clip-path shape?
Yes, with CSS transitions — as long as the start and end polygons have the same number of points, the shape morphs smoothly between them.
More tools
Tell us what you think
Loving this tool, or stuck on something? Tell us — it takes a minute.
We’ll only use your name and email to reply if needed. The tool and page are filled in for you.