What Is CSS Clip-Path?
The CSS clip-path property clips an element to a custom shape — anything outside the shape is hidden. You can create polygons, circles, ellipses, and complex SVG paths to mask images, build creative layouts, design section dividers, and add visual interest without image editing software.
Supported Shape Functions
polygon() — define any shape with coordinate points. circle() — clip to a circle with radius and center position. ellipse() — clip to an ellipse with horizontal and vertical radii. inset() — clip to a rectangle with optional rounded corners. This tool focuses on polygon shapes with draggable points for maximum creative control.
How to Use This Clip Path Maker
- Choose a base shape — Select from circle, ellipse, polygon, or inset as your starting shape.
- Drag the control points — Click and drag the polygon vertices or shape handles to create your custom clip-path.
- Add or remove points — Click anywhere on the canvas to add a point (it joins the outline between the last and first points), then drag it into place. Double-click a point, or select it and press Remove, to delete it.
- Preview on your content — See the clip-path applied to an image or colored div to judge the visual effect.
- Copy the CSS — Grab the complete
clip-pathproperty declaration.
Worked example: the copied CSS on boxes that are not square
The editor is square, but the CSS you copy will go on elements of any shape. On October 12, 2026 we applied the tool's output to 400 × 400, 400 × 200 and 200 × 400 boxes in Chromium and measured the visible area.
| clip-path | 400 × 400 | 400 × 200 | 200 × 400 |
|---|---|---|---|
circle(40% at 50% 50%) (default) | 320 px circle | 252 px wide, cut flat at top and bottom (200 px) | 200 px wide, cut flat at the sides; 252 px tall |
polygon(…) presets | as drawn | stretched to 2:1: the hexagon and star are squashed | stretched to 1:2 |
| Frame preset | 10% border ring, centre clear | uneven ring: 40 px at the sides, 20 px top and bottom | 20 px at the sides, 40 px top and bottom |
- circle() percentages are not "% of the width". CSS Shapes resolves them against √(w² + h²) / √2, so 40% on a 400 × 200 box is a 126 px radius, taller than the 100 px half-height. For a round result on any box, use a length (
circle(80px)) orclosest-side, or give the element aspect-ratio: 1. - Polygon points are % of the element's own box, so every preset stretches with it. A regular hexagon needs the element's height to be about 0.87 × its width (or use aspect-ratio).
- Clicking adds a point at the end of the list, joined between the last point and the first, not on the edge nearest the click. On the default triangle, a click at 90% / 10% makes the outline cross itself and the filled area drops from 50% to 39% of the box. Drag the new point into place, double-click a point (or select it and press Remove) to delete it; at least 3 points stay.
- Holes work with one polygon. The Frame preset walks round the outside, steps in at 10% / 10%, then walks the inside the other way; Chromium leaves the centre clear, so you can clip a photo into a frame without SVG.
- Clipped-out areas are not clickable. In Chromium a click in the corner outside a triangle clip did not reach the element; a click inside did. The element still takes its full rectangle in the layout.
- Animating between shapes works when both states use the same function and, for polygon(), the same number of points; the tool rounds every point to whole percentages.
Sources
Checked on .
Frequently Asked Questions
📖 Learn More
Related Article CSS Clip-Path and Shapes Guide →Built by Derek Giordano · Part of Ultimate Design Tools