CSS Clip-path Generator

Cut images and boxes into shapes with CSS. Start from a preset, drag the points into place and copy the clip-path code.

FreeNo sign-upPrivate — runs in your browser

CSS

How to use the Clip-path Generator

  1. Pick a shapeStart from a preset such as a triangle, hexagon, star, arrow, speech bubble or circle.
  2. Shape itDrag the white dots to move the corners, add or remove points, and turn on snapping for neat 5% steps. For circles, ellipses and inset shapes use the size slider.
  3. Copy the CSSCopy the clip-path code and add it to any image, video, button or box in your stylesheet.

Example

The Hexagon preset gives clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);

Circle at 50% gives clip-path: circle(50% at 50% 50%);, a perfect round crop for profile photos.

Frequently asked questions

What does clip-path do?

It hides everything outside a shape, so only the part inside is visible. The element keeps its normal size in the layout; only what you see changes.

Do percentages work on any size?

Yes. Points in % are relative to the element’s width and height, so the shape scales with the element. On a non-square element the shape stretches with it.

Is clip-path supported in all browsers?

Basic shapes like polygon(), circle() and inset() work in all current browsers. The -webkit- line helps older Safari versions.

Popular posts from this blog

Character Counter

Speech to Text Online

Keyboard Tester