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
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.
Log in to comment