CSS Clip-path Generator

Create CSS clip-path shapes visually. Drag handles to edit polygon points, choose from circle, ellipse or inset shapes, apply preset shapes like triangle, star or hexagon, and copy the ready-to-use clip-path CSS. Free, 100% client-side.

Points (drag handles in preview or edit below)

Did we solve your problem today?

What Is CSS clip-path?

clip-path is a CSS property that clips an element to a defined shape, masking everything outside it. It is supported in all modern browsers and works on any HTML element — <div>, <img>, <video>, and SVG elements.

Supported Shape Functions

FunctionSyntaxUse Case
polygon()polygon(x1% y1%, x2% y2%, …)Any custom multi-point shape
circle()circle(r% at cx% cy%)Circular crop
ellipse()ellipse(rx% ry% at cx% cy%)Oval / stretched circle
inset()inset(top% right% bottom% left% round r%)Rectangular crop with rounded corners

How to Use

  1. Choose a shape type — Polygon, Circle, Ellipse, or Inset using the tabs
  2. Drag handles — in Polygon mode, drag the blue circles on the preview to reposition points
  3. Add or remove points — click + Point to add a new polygon vertex, or Remove to delete the selected one
  4. Apply a preset — choose from Triangle, Rhombus, Hexagon, Arrow, Star, Circle, or Ellipse
  5. Adjust sliders — for Circle, Ellipse and Inset, use the sliders to fine-tune radius and position
  6. Copy CSS — click Copy to copy the clip-path declaration to your clipboard

Polygon Coordinates

All values are percentages relative to the element’s bounding box:

This means the shape scales automatically with any element size.

Preset Shapes

PresetPointsDescription
Dreieck3Equilateral triangle pointing up
Rhombus4Diamond / rotated square
Hexagon6Regular flat-top hexagon
Pfeil7Left-pointing arrow
Stern105-pointed star

Browser Support

clip-path with shape functions is supported in Chrome 55+, Firefox 54+, Safari 9.1+, and Edge 12+. No vendor prefixes are needed in modern browsers.

Privacy

All clip-path generation and preview rendering happens locally in your browser. No shape data or CSS code is ever sent to a server.

FAQ

What is CSS clip-path?

clip-path is a CSS property that clips an element to a defined shape, hiding everything outside that shape. It supports polygon() for custom multi-point shapes, circle() and ellipse() for round shapes, and inset() for rectangular cutouts with optional rounded corners. The original element remains in flow; only its visible area changes.

What shape types does this generator support?

The generator supports all four CSS clip-path basic shapes: Polygon (drag any number of points freely), Circle (radius + center position), Ellipse (two radii + center), and Inset (rectangular crop with optional corner rounding). Switch between types using the shape tabs.

How do I move the polygon handles?

In Polygon mode, drag any blue circle on the preview to reposition that point. The clip-path value updates live as you drag. You can also add points with the + button or remove the selected point. All percentages are relative to the element size, so the shape scales correctly with any element dimensions.

Can I use clip-path on images?

Yes. clip-path works on any HTML element including <img>, <video>, <div>, and SVG. Apply the generated clip-path property to any element. Combine it with object-fit: cover on images to keep the image centered while clipping to your custom shape.