Pinatool

CSS Clip-Path Generator

Create custom CSS clipping shapes using polygons, circles, ellipses, and inset paths. Adjust shapes visually, preview the result, and export clean CSS for your website.

Visual Shape Canvas

Drag the control points or select a preset to sculpt your shape.

CSS Shape Preview

Pinatool

Shape Type

Presets

Vertices (6)

1
2
3
4
5
6
Fill Color

CSS Code

Copy this rule to apply the clipping mask to any HTML element or image.

.clipped-element {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

How It Works

1

Pick Shape Type or Preset

Choose between custom polygon, circle, ellipse, or inset shapes, or kick off your design with presets like Triangle, Diamond, Hexagon, Arrow, Speech Bubble, and Star.

2

Sculpt Points and Dimensions

Drag the control handles directly across the stage, nudge with arrow keys, or input exact percentages to fine-tune each vertex and radius.

3

Preview & Copy CSS

Load an image from your device to test the mask on real media, then copy the generated CSS snippet directly into your stylesheet.

CSS Clip-Path Generator Key Features

Interactive Drag Handles

Freely drag vertices with touch or mouse, use keyboard arrows for fine percentage adjustments, and add up to 12 polygon points.

Custom Image Preview

Load any photo from your device into the stage to see how your mask frames images, banners, avatars, and hero cards.

Draggable Vertex Handles & Built-in Shape Presets

Add, remove, and drag polygon points visually, switch between rounded inset(... round ...) frames, circles, and ellipses, or apply geometric presets in one click.

Frequently Asked Questions

What is the CSS clip-path property?

The CSS clip-path property creates a clipping region that sets what part of an element is visible. Everything inside the clipping path is displayed, while regions outside the boundary are completely hidden.

Are the generated percentage coordinates responsive?

Yes. By using percentage coordinates (% rather than fixed pixels), the clipping mask automatically scales proportionally with the dimensions of whatever HTML element or image container it is applied to.

How do I add or delete vertices on a polygon?

Click the "+ Add Vertex" button to insert a new vertex along the longest edge of your shape. To remove a point, click the trash icon next to that point coordinate in the sidebar (polygons require at least 3 points).

How does custom image preview work?

Click Load Image to preview your clip-path mask over any photo from your device. A temporary object URL is created directly on your device solely for live previewing without transmitting the file externally.

Which browsers support CSS clip-path?

CSS clip-path basic shapes are supported in current versions of major browsers, including Chrome, Edge, Safari, and Firefox. Check compatibility if you need to support older browsers.