CSS Clip Path Generator
CSS Code
clip-path: polygon(50% 0%, 100% 0%, 50% 50%, 100% 100%, 50% 100%, 0% 50%);Comments
Similar Coding Tools
See AllCSS Loader Generator
Browse and customize pure CSS loading animations. Dot, bar, zig-zag, line, and more.
CSS Triangle Generator
Create CSS triangle shapes using the border method. Choose direction, size, and color.
CSS Box Shadow Generator
Generate and preview CSS box-shadow effects for boxes, circles or headers.
What is CSS Clip Path Generator?
CSS Clip Path Generator lets you choose from many polygon shapes (triangle, hexagon, star, heart, nonagon, and more) and see a live preview. You can set the preview width and height, use a sample image or a custom gradient, and copy the generated clip-path CSS to use in your project.
Clip-path is useful for cropping images or elements into custom shapes without extra markup or images.
How to use the CSS Clip Path Generator?
Follow these steps:
- 1
Select a shape from the Clip Path Shape dropdown.
- 2
Adjust Width and Height sliders to match your target dimensions.
- 3
Optionally enable Custom Background, Show Outside, or Hide Guides.
- 4
Copy the CSS code and add it to your element (e.g. img or div) in your stylesheet.