Buy me a coffee
Design

CSS clip-path Generator

Create clip-path shapes visually with draggable points Runs on your device — nothing is uploaded, nothing is stored.

1
X50%
Y0%
2
X100%
Y100%
3
X0%
Y100%
Generated CSS
clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
-webkit-clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
Preset Shapes

Click any shape to load it as an editable polygon.

About CSS clip-path Generator

This tool builds CSS clip-path values visually. Pick a shape (polygon, circle, ellipse or inset) and the preview square updates as you change it. For a polygon you drag the numbered points straight on the preview or fine-tune each point's X and Y with sliders, add points, or remove them down to a minimum of three. Eight polygon presets are one click away: triangle, rhombus, pentagon, hexagon, star, message bubble, arrow and chevron.

Circle and ellipse take a radius and a center position, and inset takes top, right, bottom and left offsets plus an optional corner radius. Every value is a percentage of the element's box, so the shape scales with the element. The output panel shows the finished declaration, with a -webkit-clip-path line for older Safari, and a copy button.

How to use CSS clip-path Generator
  1. Choose polygon, circle, ellipse or inset.
  2. Drag points on the preview or use the sliders and presets to shape it.
  3. Check the live preview, then copy the CSS from the output panel.
  4. Paste it into the rule for your element.
Limitations and trade-offs
  • The preview is a fixed gradient square, not your own image or element. Copy the CSS and check it on the real element, especially if it is not square.
  • Values are percentages only. The tool does not produce pixel values, the path() function or SVG references.
  • Polygon points snap to whole percentages when dragged, and a polygon needs at least three points.
  • Inset offsets and corner radius stop at 50%. Circle and ellipse sizes go up to 100%.
Frequently asked questions