CSS Clip-Path Generator
Drag the points on the photo to cut it into any shape, or start from one of 36 ready-made shapes: triangles, hexagons, stars, chevrons, message bubbles, slanted section edges and notched cards. Switch to circle, ellipse or inset for rounded cuts, preview a smooth morph between two shapes, and copy the result as CSS, a Tailwind class or keyframes, in percent or pixels.
How it works
- Pick a shape from the presets, or choose Polygon, Circle, Ellipse or Inset at the top.
- In polygon mode, drag any point. Click on the image near an edge to add a point there, or select a point and press Delete to remove it. Turn on snapping to line points up on a 5% or 10% grid.
- Keyboard: Tab to a point, then use the arrow keys to move it 1% (hold Shift for 10%). Press Delete or Backspace to remove it.
- For circle, ellipse and inset, use the sliders for size, position and corner radius.
- Open Animate to choose a second shape and watch the photo morph between them. Then copy the CSS, the Tailwind class, the pixel version for your element size, or the keyframes.
How clip-path works
clip-path hides every part of an element that falls outside a shape you describe. Nothing is resized or moved: the element keeps its full box in the layout, and only the visible area changes. That is why a clipped image still pushes the content below it down by its full height, and why clicks outside the shape pass through to whatever is behind.
The four basic shapes cover most needs. polygon() takes a list of x and y points; circle() takes a radius and a centre; ellipse() takes two radii and a centre; inset() trims a distance from each side and can round the corners with the round keyword. Points are measured from the top left of the element, so 0% 0% is the top left corner and 100% 100% is the bottom right.
Common shapes on real websites
Slanted and V-shaped section edges are the most common use: a hero or a feature band with an angled bottom gives a page direction without any extra images. Apply the clip to the section, then pull the next section up with a negative margin equal to the slant so no gap shows.
Notched and cut-corner cards suit tech, gaming and industrial brands, and a ticket stub shape works for events and coupons. Hexagons and circles are popular for team photos and logo grids. Chevrons and arrow tags make step indicators and breadcrumb trails. Message bubbles help testimonial blocks feel like a conversation.
Animating between shapes
clip-path can be transitioned and animated like any other property, as long as the start and end shapes are compatible. Two circles, two ellipses or two insets always animate. Two polygons animate only when they have exactly the same number of points; otherwise the browser snaps from one to the other.
The Animate panel matches the point counts for you and previews the result on the photo. Hover reveals are a good fit: set the resting shape on the element and the second shape on :hover with a short transition. The exported keyframes include a prefers-reduced-motion rule that turns the loop off for visitors who ask for less motion.
Tips
- Percent values scale with the element, so they suit responsive sections. Use the pixel version only when the element has a fixed size, such as an avatar or an icon tile.
- clip-path cuts off box-shadow and outlines along with everything else. For a shadow on a clipped card, put the clip on an inner element and use filter: drop-shadow() on a wrapper.
- Slanted section edges look best when the next section overlaps by the slant height (a negative top margin), otherwise you get a gap of page background.
- Clicks only land inside the visible shape. A clipped button with a tiny triangle shape has a tiny click target, so keep interactive elements generously sized.
- Keep morph pairs simple. Shapes with similar point counts and similar layouts (for example a hexagon and an octagon) give the cleanest animation.
Frequently asked questions
Is this clip-path generator free?
Yes, with no signup. It runs entirely in your browser. If you load your own image it is shown from your device and never uploaded.
Which browsers support CSS clip-path?
The basic shapes used here (polygon, circle, ellipse and inset) work unprefixed in current Chrome, Edge, Firefox and Safari. Very old Safari versions needed -webkit-clip-path; add that line too if you must support them.
Why does my animation jump instead of morphing?
Browsers only animate between two polygons that have the same number of points, or two shapes of the same kind. This tool fixes that for you: when the shapes differ it adds extra points along the longest edges so both polygons match, and the exported keyframes already include those points.
How do I use the Tailwind class?
Tailwind has no built-in clip-path utility, so the tool gives you an arbitrary property class such as [clip-path:polygon(50%_0%,100%_100%,0%_100%)]. Tailwind turns the underscores back into spaces. It works in Tailwind 3.4 and later, including version 4. Paste it into the element's class list as it is.
What is the difference between the percent and pixel output?
Percent values are measured against the element's own box, so the shape stretches with it. The pixel version converts each point using the width and height you enter, which keeps exact sizes but will not adapt if the element resizes.
Can I make a hole in a shape?
Yes, with a single polygon that walks around the outside, cuts in to an inner edge, and comes back out along the same line. The Frame preset shows the pattern. Newer browsers also support path() and shape(), which this tool does not generate.
Related: CSS shadow generator, CSS layout generator, Color palette generator, Image color picker.
Start a 7-day free trial or see all free tools. New We.Inc accounts begin with a 7-day free trial (card required, $0 today, cancel anytime) rather than a free plan. AI building is on paid plans from $20 a month.
More in Free Tools
- Clothing Brand Name Generator
- Code to Image Generator
- Cold Email Template Generator
- Color Blindness Simulator for Screenshots and Palettes
- Color Contrast Checker | Free Tool
- Color Converter
- Color Name Finder
- Color Palette From Image
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App
