CSS Clip-Path Generator
Create CSS shapes with clip-path: polygons, circles, ellipses and insets. Pick presets (star, hexagon, arrow, chevron) and copy the ready code. Everything in your browser.
What is clip-path?
clip-path crops an element into a custom shape using coordinates (polygon()), a circle, an ellipse or an inset. Only the area inside the shape stays visible — the rest of the element is clipped away.
Handy for diagonal headers, cards with cut corners, speech bubbles, arrows and complex icons without reaching for SVG or image files. Everything runs in the browser.
Ready-made clip-path shapes you can copy
You need a hexagonal card, an arrow, or a notched corner, and writing a polygon() coordinate pair by coordinate pair is nobody's idea of fun. This page covers the common cases: pick one of nineteen preset shapes, from triangle and star to chevron and speech bubble, watch the cut applied to a sample square, and copy the CSS with clip-path and -webkit-clip-path already filled in.
Polygons come out with percentage coordinates, so the same shape works on a 40px avatar and a full-width banner without edits. Worth knowing: the clipping is only partly cosmetic. The element still occupies its original rectangle in the layout, but the clipped-away area stops receiving clicks. Circle, ellipse and inset get their own sliders for radius and margins; inset also supports rounded corners, which the tool emits using the round keyword.
There is no vertex dragging or point-by-point polygon editing here: the tool works from presets. If a shape needs fine-tuning, copy the code and edit the percentage pairs directly in your CSS; the format is perfectly readable. Also note the cut removes everything the element paints, including box-shadow; for a shadow that follows the shape, use filter: drop-shadow() on a parent element. Everything runs in your browser, nothing is uploaded.
Frequently asked questions
Can I edit the polygon points on this page?
Why does the code include -webkit-clip-path?
Does clip-path cut off the element's shadow too?
Related Tools
CSS Border Radius Generator
Create custom rounded shapes with 8 independent controls (4 corners × 2 axes). Live preview and ready-to-copy CSS. Everything in your browser.
CSS Grid Generator
Build CSS Grid layouts visually: define rows, columns, gaps and alignment. Live preview and ready-to-copy CSS. Everything in your browser.
CSS Clamp Calculator
Generate CSS clamp() values for fluid typography and spacing. Enter minimum/maximum sizes and viewport widths to get a ready-to-paste clamp() function.
PX to REM and EM Converter
Type a pixel, rem or em value and the other two update live from your root font size, 16px by default, plus a table from 8 to 96 px in pt too.
prefers-reduced-motion CSS
Builds the @media (prefers-reduced-motion: reduce) block that neutralises animations, transitions and smooth scrolling, page-wide or only inside .anima.
CSS Triangle Generator
Create pure CSS triangles using the border trick. Choose direction (up, down, left, right), size and color. Useful for tooltips, arrows and pointers. Everything in your browser.