About CSS Clip Path Generator
The CSS clip-path property hides every part of an element that falls outside a shape. This generator offers 14 presets written with the polygon(), circle(), ellipse(), and inset() functions. Coordinates are percentages of the element box, so the shape scales with the element. Clipping does not change layout: the element keeps its original box, and shadows and outlines drawn outside the shape are cut off too.
How to use CSS Clip Path Generator
- Fill in "Shape", "Preview color", "Preview width" and "Preview height".
- The result appears below and updates as you type.
- Copy the result with the copy button, or download it as a file where that is offered.
Questions about CSS Clip Path Generator
Why did my box-shadow disappear after adding clip-path?
clip-path cuts away everything outside the shape, including the shadow. Put the clipped element inside a wrapper and apply filter: drop-shadow() to the wrapper, which follows the visible outline of the clipped child.
Runs in your browser. Page last updated .