Clip-Path Generator.
Drag polygon points or pick a preset shape and copy the CSS clip-path for images and sections.
Runs in your browserAbout Clip-Path Generator
The Clip-Path Generator lets you cut images, cards and page sections into custom shapes without exporting an SVG. Start from a preset such as a triangle, hexagon, star, chevron, speech bubble or cross, or switch to a circle, ellipse or inset rectangle with rounded corners, and the preview image is clipped live. For polygons you can drag each point on the preview, double-click to add a point and edit the coordinates as text; every coordinate is a percentage of the element, so the shape scales with it. The output is a clip-path declaration and a Tailwind arbitrary property class such as [clip-path:polygon(50%_0%,100%_100%,0%_100%)]. For example, the hexagon preset produces polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%), a common avatar frame. A diagonal section edge is just a four-point polygon with one corner moved up. Typical mistakes are expecting borders and box-shadows to follow the clipped shape (they are clipped too; use a drop-shadow filter on a wrapper instead), forgetting that clicks outside the shape no longer reach the element, and animating between polygons with a different number of points, which browsers cannot interpolate. Coordinates in px work but do not scale. Everything runs in your browser.
How to Use
- Choose a shape or a preset.
- Drag the points on the preview or edit the values.
- Copy the clip-path CSS or the Tailwind class.
Frequently Asked Questions
Can I animate clip-path?
Yes, with a CSS transition or animation, as long as both shapes are the same function with the same number of points.
Why did my box-shadow disappear?
clip-path clips everything outside the shape, including shadows and outlines. Put the clipped element inside a wrapper with filter drop-shadow.
Is clip-path supported in all browsers?
The basic shapes (polygon, circle, ellipse, inset) work in every current browser without a prefix.
Is anything uploaded?
No. The preview uses a built-in image and the CSS is generated in your browser.
Related Tools
Set each corner radius, including elliptical corners, and copy the shortest CSS or Tailwind classes.
Preview SVG path data, drag its points, convert between absolute and relative commands, minify, scale and measure it.
Build linear, radial and conic CSS gradients with a live preview, OKLCH interpolation and Tailwind output.
Design soft, layered or inset CSS box-shadows with a live preview and Tailwind output.
Drag the handles of a CSS cubic-bezier easing curve, preview the motion and copy the timing function.
Check text and UI color contrast against WCAG 2.2 AA and AAA, with the closest passing colors.