Design & CSS

CSS Clip-path Generator

Create a CSS polygon clip-path from percentage coordinates with a visual shape preview.

01Input and settings

The calculation runs in your browser. You can use the tool without installing software.

02Result

Waiting for input
Waiting for input

Enter your values or load the example to see the result here.

About this tool: CSS Clip-path Generator

Create a CSS polygon clip-path from percentage coordinates with a visual shape preview.

Enter one x; y pair per line, with both coordinates between 0 and 100. At least three points are required; their order defines the polygon boundary. The preview uses a rectangular canvas, so percentages are relative to its width and height. Copy the CSS into the target element.

How the calculation works

clip-path: polygon(x₁% y₁%, x₂% y₂%, …)

Worked example

x; y points in %, one per line
50; 0
100; 50
50; 100
0; 50
clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);

Questions and answers

What does this tool do?

Create a CSS polygon clip-path from percentage coordinates with a visual shape preview. Enter one x; y pair per line, with both coordinates between 0 and 100. At least three points are required; their order defines the polygon boundary. The preview uses a rectangular canvas, so percentages are relative to its width and height. Copy the CSS into the target element.

What affects precision and input format?

Enter one x; y pair per line, with both coordinates between 0 and 100.

Where are the calculations performed?

The calculation runs in your browser. You can use the tool without installing software.

Comments (0)

Share your thoughts — please be polite and stay on topic.

No comments yet. Leave a comment — share your opinion!

To leave a comment, please log in.

Log in to comment