About the CSS Clip-path Generator tool
The CSS clip-path property cuts an element into any shape: a triangle for a speech bubble, a slanted section divider, a hexagonal avatar or a star badge. It works on images, videos and gradients with no extra markup, but writing polygon coordinates by hand means guessing percentages and reloading the page over and over.
This clip-path generator starts you from fifteen presets, including triangle, trapezoid, parallelogram, rhombus, pentagon, hexagon, octagon, star, right arrow, chevron, message bubble, cross, circle, ellipse and inset rectangle. For polygons, drag the handles directly on the preview to move points, select a point to fine-tune it with X and Y sliders, and add or remove points to build your own shape.
Circle, ellipse and inset shapes have their own sliders for radius, centre and edges, including rounded corners for inset. Preview the result on a gradient or a solid colour, optionally showing the clipped-away area faintly, and copy the finished clip-path CSS.
How to use CSS Clip-path Generator
- Click a shape under “Shape presets” such as Hexagon, Star or Circle.
- For polygons, drag the dots on the “Live preview” to move points.
- Use “Add point after #n” or “Remove #n” and the Point X/Y sliders to refine the shape.
- For circle, ellipse or inset, adjust the sliders for radius, centre or edges.
- Copy the result from the “CSS code” panel.
Features
15 shape presets
Common polygons, arrows, stars and badges plus circle, ellipse and inset.
Draggable points
Move polygon vertices with mouse or touch directly on the preview.
Editable polygons
Add points between existing ones or remove them to create custom shapes.
Percentage coordinates
All values are in percent so the shape scales with any element size.
Show clipped area
Optionally display the hidden part faintly to see what gets cut.
When to use it
- Create a slanted hero section edge without SVG.
- Crop profile photos into hexagons or circles.
- Design arrow-shaped breadcrumb steps or tags.
- Make a star or burst badge for a sale label.
- Animate between two polygons with the same number of points.
Frequently asked questions
Does clip-path work in all browsers?
Basic shapes like polygon(), circle(), ellipse() and inset() work in all modern browsers. The -webkit- prefix is only needed for older Safari versions.
Can I animate clip-path?
Yes. Transitions and keyframes work between shapes of the same type, and for polygons both shapes must have the same number of points.
Does clip-path affect clicks?
Yes. Areas outside the clipped shape do not receive pointer events, so users can only click the visible part.
Why is my box-shadow cut off?
clip-path clips everything outside the shape, including shadows and borders. Use filter: drop-shadow() on a parent element instead.
What is the difference between clip-path and mask?
clip-path uses hard-edged geometric shapes. mask uses an image or gradient and allows soft, semi-transparent edges.