CSS Clip Path Generator
Create CSS clip-path shapes visually. Pick a preset shape or drag points to build a custom polygon, preview it live, and copy ready-to-use CSS.
Drag any point on the shape to reshape it.
Stop Hand-Coding Polygon Coordinates
Clip-path shapes look simple once they are finished, but writing the polygon points by hand means guessing percentages and reloading the page again and again. This tool turns that guesswork into dragging: pick a starting shape, move the points until the outline matches what you need, and the CSS updates as you go.
Why Use This Generator?
15 Ready-Made Shapes
Start from circles, stars, arrows, speech bubbles, and more instead of typing coordinates from scratch.
Drag-to-Edit Points
Grab any point on the preview and move it. The clip-path value updates live as you drag.
Multiple Preview Backgrounds
Switch between light, dark, and gradient backgrounds to see how the edges look against real content.
Clean, Copy-Ready CSS
The output is a single clip-path declaration, formatted and ready to paste into your stylesheet.
How this CSS Clip Path Generator works
This tool builds a clip-path value the same way you would sketch a shape on paper: by placing points and adjusting them until the outline looks right. Pick a preset from the shape grid, such as a hexagon, star, or message bubble, and the preview instantly clips the sample box to that outline using the CSS clip-path property. Behind the scenes, each preset is stored as a list of coordinate pairs given in percentages, so the shape scales correctly no matter how big or small the final element is.
Every polygon shape lets you drag any point directly on the preview. Each drag recalculates the point's position as a percentage of the box width and height, then rebuilds the polygon() function with the new coordinates. Because clip-path only hides parts of an element rather than resizing it, the underlying background stays in place while the visible area changes shape, which is why the preview lets you switch between light, dark, and gradient backgrounds to check how the edges and contrast will look against real content.
The generated CSS is a single declaration you can paste onto any element with a defined width and height. Modern browsers render clip-path natively, so no JavaScript is needed on your site, only the copied rule. Everything runs in your browser using plain calculations; nothing you design here is uploaded or stored.
How to use this CSS Clip Path Generator
Pick a shape
Choose a preset like circle, hexagon, star, or arrow, or start from a custom polygon.
Drag the points
Fine-tune the shape by dragging its corner points directly on the preview.
Copy the CSS
Grab the finished clip-path rule and paste it into your stylesheet.
Frequently Asked Questions
What is the difference between clip-path and the older mask-image property?
Why is my clip-path not showing any effect on the element?
Can I use clip-path on a background image instead of an actual img tag?
Can I animate or transition between two clip-path shapes?
Does clip-path affect the actual clickable area of an element?
Which browsers support the CSS clip-path property?
How do I make the shape responsive so it still looks right on mobile?
Can I import an SVG path instead of using polygon points?
Does a complex clip-path shape slow down page performance?
Does this tool save or upload the shapes I create?
Related Tools
CSS Formatter
Format CSS code for better readability.
Gradient Generator
Generate the gradient using two colors
CSS Box-Shadow Generator
Design custom CSS box shadows with a live preview. Adjust offset, blur, spread, and color, stack multiple layers, and copy the code.
CSS Triangle Generator
Create CSS triangles with a live preview. Pick a direction, size, and color, choose the border-trick or clip-path method, and copy the code.
CSS Background Maker
Design solid, gradient, and pattern backgrounds with a live preview. Adjust colors, angle, position, and spacing, then copy ready-to-use CSS.
CSS Loader Generator
Build CSS loading spinners with a live preview. Pick a style, adjust size, color, and speed, then copy ready-to-use CSS and HTML.
The CSS Clip Path Generator is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.

