A little help goes a long way. Find a tool/

Design

CSS Clip Path Generator

Free CSS clip-path generator: crop any element into a circle, ellipse, rounded inset, or polygon shape — triangle, diamond, hexagon, star — with live preview and copyable CSS.

YOUR WORKSPACEFree to use. No sign-up.
—
Pick a shape and tune the values.

Deep dive guides

A LITTLE CONTEXT · 4 MIN READCSS clip-path: Cutting Shapes Out of Boxes

How css clip path generator works

clip-path hides the parts of an element outside a geometric region, and the generator covers the four basic-shape functions. circle(R% at X% Y%) keeps everything within R percent of the reference shape from a center point; ellipse(RX% RY% at X% Y%) does the same with separate horizontal and vertical radii; inset() shrinks each side inward by a percentage, with an optional border-radius-style round for cropped cards with soft corners.

Polygon mode clips to a vertex list you pick from a preset gallery: triangle, diamond, pentagon, hexagon, star, and arrow. Each vertex is an x/y pair in percentages of the box, and the browser connects the points in order and clips outside the resulting polygon — the technique behind hero-image diagonals, avatar blobs, and notched badges. The percentages are the numbers worth learning to read; the generator writes them for you.

The preview applies the identical clip-path declaration to a sample block, so radii and offsets are tuned visually before copying. Two habits make clip-path predictable: percentages are relative to the element's own box (so the same circle crops differently on a wide banner and a square tile), and clipping is purely visual — pointer events on hidden regions still fire, so avoid clipping interactive controls. Pair it with the border-radius generator when a rounded rectangle is all you need.

Frequently asked questions

What is the difference between circle(50%) and border-radius: 50%?
border-radius rounds the element's box — the box still occupies its full layout space and its background is clipped to the rounded outline. clip-path removes content outside the shape without touching the box: the element keeps a rectangular footprint in the layout, and anything painted outside the clip — box-shadows, overflowing children — disappears.
Why is my circle clipped at the edges?
A circle's percentage radius is resolved against the reference box in a way that keeps it circular, so a 50% circle on a wide rectangle touches the short sides but not the long ones. Either use an ellipse with separate radii, use an inset with equal values for a rectangular crop, or keep the element square.
Do clipped areas still receive clicks?
Yes — clip-path is visual only, so buttons and links outside the visible shape remain in the accessibility tree and still receive pointer events. Keep interactive elements inside the clipped region, or apply the clip to a decorative wrapper instead of the control itself.
How do percentages work in polygon()?
Each vertex is 'x% y%', where 0% 0% is the element's top-left corner and 100% 100% its bottom-right. Points are connected in the order listed and the region outside the closed path is hidden. Self-intersecting paths render with the even-odd fill rule, so a star's points stay pointy.