Free online tools

CSS Polygon Clip Path Generator

Make a CSS clipping shape from an ordered list of polygon points. Review a preview and copy the code into your stylesheet.

Enter your values

Enter one x, y percentage pair per line. 0, 0 is the top-left corner.

This tool processes your input in your browser.

Result

Place points relative to the box

The x value is measured from the left and the y value from the top. A point at 100%, 100% sits at the bottom right. The polygon follows the input order and closes automatically from the last point to the first.

Select a fill rule for overlapping edges

Nonzero and even-odd define which regions are kept when the polygon crosses itself. A simple polygon usually looks the same under either rule.

Frequently asked questions

Can a point go outside the element?

Yes. Negative coordinates and values above 100% are allowed. The clipping shape can extend beyond the element’s box.

Does the tool change the element’s layout size?

Clipping changes which parts are visible. It does not change the box used for normal CSS layout.