About this tool
CSS clip-path Generator cuts a preview box into one of eight ready-made shapes and gives you the matching CSS. The shapes are triangle, rhombus, pentagon, hexagon, star, circle, ellipse and an inset rectangle with rounded corners. The preview is a 160 by 160 pixel gradient square, so you can see the outline straight away.
The output is a single declaration, for example clip-path: polygon(50% 0%, 0% 100%, 100% 100%); that you copy with one click and paste into any rule. The polygon shapes list their corner points as x y percentages of the element's own width and height, so the shape scales with the element instead of being tied to pixels. The circle is circle(50% at 50% 50%), the ellipse is ellipse(50% 35% at 50% 50%) and the inset is inset(10% 10% 10% 10% round 10px).
The shapes are fixed presets. There are no draggable points and no size controls, so treat the output as a starting point and edit the percentages by hand if you need a different outline; polygon() accepts as many x y pairs as you like, and the preview here will not follow your manual edits. Clipping changes only what is painted: the element keeps its full rectangular box for layout, and any border or box-shadow that falls outside the shape is cut away with everything else. Nothing you do on this page is uploaded.