Shape controls
Pick a preset or dial a regular polygon with any number of points.
Preview and CSS
Generate clip-path polygon shapes: triangles, stars, arrows, chevrons and regular polygons with any point count. Preview live, then copy the CSS.
Pick a preset or dial a regular polygon with any number of points.
clip-path: polygon() takes a list of x y points as percentages of the element box, and the browser cuts the element to that shape. Anything outside the polygon is hidden but the element still occupies its full box in layout, which is why clip-path is perfect for decorative shapes.
This tool applies rotation as a separate transform so the polygon math stays clean: the points are generated upright, then the whole shape rotates. In your own CSS you can bake rotation into the points or keep the transform, whichever is easier to maintain.