CSS Clip-path Generator
Cut elements into triangles, hexagons, stars, arrows and more, and copy the clip-path CSS.
Enter your values
Result
CSS
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); -webkit-clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
polygon() points are x% y% pairs measured from the element's top-left corner; circle() and ellipse() take a radius and a centre point.
Live preview
How to use CSS Clip-path Generator
- Enter shape, preview colour and preview width.
- The result updates instantly as you type, with no button to press.
- Read the formula box to see how it was calculated, then copy the result.
Features
- Instant results
- Results update as you type, with no Calculate button and no page reload.
- Formula explained
- See exactly how the answer is worked out, so you can check it or learn the method.
- Private & free
- Everything runs in your browser. Nothing you enter is uploaded or stored.
Frequently asked questions
How does the CSS Clip-path Generator work?
It uses this method: polygon() points are x% y% pairs measured from the element's top-left corner; circle() and ellipse() take a radius and a centre point.
Is this CSS Clip-path Generator free?
Yes. It is 100% free, needs no sign-up and works on mobile and desktop. Your numbers never leave your device.
Free, no sign-up. Your files and numbers are processed in your browser and are not uploaded.