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.
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
- Choose a shape.
- Adjust its amount (slant, inner radius, arm width…), the number of points or the direction.
- Or choose Custom polygon and type one "x y" point per line.
- 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:
Page address with these inputs: https://kakao.mobile/tools/css-clip-path-generator/
Cite or embed this tool
kakaoCalc. (2026, November 8). CSS Clip-Path Generator. https://kakao.mobile/tools/css-clip-path-generator/
“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