Embed this tool on your site
<iframe src="https://devtoolbox.dedyn.io/tools/css-clip-path" width="100%" height="800" frameborder="0" title="CSS Clip-Path Generator"></iframe>

CSS Clip-Path Generator

Create custom CSS clip-path shapes visually. Click to add points, drag to adjust, and choose from 15+ preset shapes. Supports polygon, circle, ellipse, and inset clip paths with real-time CSS output. Everything runs in your browser.

Click to add points
Preview
Polygon mode: Click canvas to add points. Drag points to reposition. Right-click a point to remove it.
clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
Browser Support: clip-path basic shapes have 97%+ global support.
Chrome 55+ Firefox 54+ Safari 9.1+ Edge 79+

How to Use the CSS Clip-Path Generator

The CSS clip-path property lets you clip elements into any shape. This visual generator makes it easy to create complex clip paths without manually calculating coordinates.

Polygon Mode

Click anywhere on the canvas to add points. Each point is defined as a percentage position (x% y%). Drag points to reposition them. Right-click a point to remove it. The polygon shape is drawn by connecting all points in order.

Circle & Ellipse Mode

Use the sliders to adjust the radius and center position, or drag the handles directly on the canvas. Circle uses a single radius value, while ellipse lets you set independent horizontal and vertical radii for oval shapes.

Inset Mode

Inset creates a rectangular clip with configurable offsets from each edge (top, right, bottom, left) plus an optional border-radius for rounded corners. Use the sliders or drag the edge handles on the canvas.

Using with CSS

Copy the generated code and apply it to any HTML element:

.clipped-element {
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  /* Add -webkit- prefix for Safari <= 13 */
  -webkit-clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

Frequently Asked Questions

What is CSS clip-path and how does it work?
CSS clip-path is a property that creates a clipping region to define which parts of an element are visible. Anything outside the clipping region is hidden. It supports four basic shape functions: polygon() for custom multi-point shapes, circle() for circular clips, ellipse() for oval clips, and inset() for rectangular clips with optional rounded corners. The values use percentages or lengths relative to the element's bounding box.
Is clip-path supported in all browsers?
CSS clip-path with basic shapes (polygon, circle, ellipse, inset) is supported in all modern browsers including Chrome 55+, Firefox 54+, Safari 9.1+, and Edge 79+. The property has over 97% global browser support. For older browsers, you can use the -webkit-clip-path prefix as a fallback. The "Copy with Prefix" button in this tool includes the prefixed version automatically.
Can I animate CSS clip-path transitions?
Yes, CSS clip-path can be animated using CSS transitions and keyframe animations. For smooth transitions between shapes, both the starting and ending clip-path values must use the same shape function with the same number of points. For example, you can smoothly transition between two polygon() values that both have 6 points. Animating between different shape types (e.g., circle to polygon) requires JavaScript or the Web Animations API.
Keyboard Shortcuts
Ctrl+Shift+C Copy CSS
Ctrl+L Reset shape