CSS Clip-Path Generator

CSS Clip-Path Generator builds the clip-path CSS that clips an element to a polygon, circle, ellipse or rounded rectangle. It has ready-made shapes such as triangle, hexagon, star and arrow plus a polygon editor for your own points; the preview updates instantly.

Presets
clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);

The preview is shown on a gradient box.

How it works

  1. 1Pick the shape type (polygon, circle, ellipse, inset).
  2. 2For polygons click a preset or write the points yourself; for the others adjust the sliders.
  3. 3Check the preview and copy the CSS with "Copy CSS".

Frequently asked questions

How do I write the points?+

Each point is "x y" (percent or px) separated by commas, e.g. 50% 0%, 0% 100%, 100% 100%. Points are measured from the top-left corner of the element's box.

Does clip-path also cut shadows and borders?+

Yes, everything outside the clipped area becomes invisible, shadows and borders included; for a shadow put filter: drop-shadow() on a wrapper around the element.

What about browser support?+

All modern browsers support clip-path.

Embed on your site

Size
480 × 360px
<iframe
  src="https://toolsqube.com/en/color/clip-path-generator/embed"
  width="480" height="360"
  style="border:0;border-radius:14px"
  title="CSS Clip-Path Generator · ToolsQube"
  loading="lazy">
</iframe>

Want to go deeper on this topic: Color and Design Guide →

Command Palette

Search for a command to run…