CSS Clip Path Generator
Build a CSS clip-path with a polygon, circle, ellipse or inset. Paste points, copy the standard and -webkit rule. No upload.
What the CSS clip path generator builds
The shape is written as a clip-path value and repeated as -webkit-clip-path, because some Safari versions still honour only the prefixed form. A polygon takes three to seven points in order, each as x% y%; a circle and an ellipse take their radii plus a position; an inset takes four edges measured inward from each side. Percentages are relative to the element's own box, so the same rule clips a thumbnail and a hero image identically. The honest limitation is what clipping does not do: it changes what is painted, not the layout. The element keeps its full size in the flow, and the clipped-away region also removes any border or box-shadow the element had.
How to use it
Choose the shape first: a polygon reads one x% y% point per line, a circle and an ellipse read their radii plus a position, and an inset reads four edges. Press Run to get both the standard rule and the prefixed form Safari still needs.
Worked example
Input:
shape: polygon, points: 50% 0% / 100% 100% / 0% 100%
Output:
.clip {
-webkit-clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
Why it runs in your browser
The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.
The shape is written as a clip-path value and repeated as -webkit-clip-path, because some Safari versions still honour only the prefixed form. A polygon takes three to seven points in order, each as x% y%; a circle and an ellipse take their radii plus a position; an inset takes four edges measured inward from each side. Percentages are relative to the element's own box, so the same rule clips a thumbnail and a hero image identically. The honest limitation is what clipping does not do: it changes what is painted, not the layout. The element keeps its full size in the flow, and the clipped-away region also removes any border or box-shadow the element had.
Build a CSS clip-path with a polygon, circle, ellipse or inset. Paste points, copy the standard and -webkit rule. No upload.
How to use it
Choose the shape first: a polygon reads one x% y% point per line, a circle and an ellipse read their radii plus a position, and an inset reads four edges. Press Run to get both the standard rule and the prefixed form Safari still needs.
Why it runs in your browser
The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.
What to Expect
What this tool keeps
- The result is produced on this page with JavaScript, so it works offline after the page loads and nothing you enter is sent anywhere.
Sample input
shape: polygon, points: 50% 0% / 100% 100% / 0% 100%
Sample output
.clip { -webkit-clip-path: polygon(50% 0%, 100% 100%, 0% 100%); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); }
Frequently asked questions
How do I use the css clip path generator?
Choose the shape first: a polygon reads one x% y% point per line, a circle and an ellipse read their radii plus a position, and an inset reads four edges. Press Run to get both the standard rule and the prefixed form Safari still needs.
Is my input uploaded?
Nothing is uploaded. The result is produced on this page.
Is there a size limit?
No: nothing is pasted, so there is no input size to exceed.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.