EN
My tools

CSS Clip-Path Generator

Make CSS clip-path shapes: triangle, hexagon, star, arrow, chevron, message bubble, circle, ellipse, inset or your own polygon, with numbered points and preview.

Trapezoid/parallelogram slant, star inner radius, cross arm width, arrow head length, chevron notch, bubble tail height, circle radius, ellipse horizontal radius, inset distance. Empty = the shape's default.
Ellipse vertical radius or arrow shaft thickness.
Star points or regular polygon sides.
For triangle, arrow, chevron and message bubble.
One "x y" point per line (or separated by commas), in % or px.
My tools →
Advertisement

clip-path cuts an element — an image, a card, a button — into a shape: everything outside the shape is hidden, including the background and hover area. This generator writes clip-path values for 16 ready shapes (triangles, polygons, stars, crosses, arrows, chevrons, message bubbles, circle(), ellipse() and rounded inset()) with adjustable proportions and direction, or checks your own polygon. The preview numbers each point so you can see the order.

How to use this tool

  1. Choose a shape.
  2. Adjust its amount (slant, inner radius, arm width…), the number of points or the direction.
  3. Or choose Custom polygon and type one "x y" point per line.
  4. Copy the CSS; both the -webkit- and standard lines are included.

Formula

clip-path: polygon(x₁ y₁, x₂ y₂, …) · circle(r at cx cy) · ellipse(rx ry at cx cy) · inset(d round r)

Polygon coordinates are measured from the element's top-left corner: x as a percentage of its width, y of its height. Regular polygons and stars are computed from evenly spaced angles and stretched to fill the box.

Example

The hexagon uses six corners 60° apart with flat top and bottom, stretched to the box: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%). A regular octagon cuts each corner at 1 ÷ (2 + √2) = 29.29% of the side. A 4-point star with a 50% inner radius has its inner corners at 50 ± 17.68%, i.e. 32.32% and 67.68%.

Frequently asked questions

Does clip-path change the layout?

No. The element keeps its full rectangular box in the layout; clip-path only hides the parts outside the shape. Clicks and hover are limited to the visible shape.

Can I animate clip-path?

Yes, between two polygons with the same number of points (or two circles). The browser interpolates each point, which makes smooth morphing effects possible.

Why is my shadow cut off?

box-shadow is drawn outside the box and gets clipped too. Wrap the element and put filter: drop-shadow(...) on the wrapper; drop-shadow follows the clipped shape.

Sources

Last updated:

Cite or embed this tool
APA

kakaoCalc. (2026, November 8). CSS Clip-Path Generator. https://kakao.mobile/tools/css-clip-path-generator/

MLA

“CSS Clip-Path Generator.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/css-clip-path-generator/.

Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms

Advertisement