CSS Shape Generator
Build a clip-path polygon, circle, ellipse or inset shape and copy the finished rule.
Build a clip-path shape
clip-path: —
Shape: — · points kept: —
How to use the CSS Shape Generator
- Pick a polygon, circle, ellipse or inset shape from the list.
- Edit the polygon points or drag the radius, inset and position controls.
- Copy the generated rule with both the standard and webkit clip-path properties.
Features
- Polygon, circle, ellipse and inset clip-path shapes
- Editable polygon point list with a validator
- Live preview that updates on every keystroke
- Copyable rule with the webkit prefixed clip-path
Advertisement
Frequently Asked Questions
Common questions about the free online css shape generator.
It cuts an element into a shape. Anything outside the path is hidden, while the element keeps
its place in the page layout.
List pairs of x and y values separated by commas, such as 50% 0% for a top centre point, and
give at least three points to close a shape.
Yes. Percentages scale with the element box, while pixel values stay fixed, so a mix lets one
axis follow the box and the other stay exact.
Inside an inset shape it adds rounded corners, using one radius for every corner or four
separate radius values.
The polygon probably has fewer than three valid points, or the points are in an order that
folds the path over itself.
Modern browsers all support it. Older Safari versions need the webkit prefixed property,
which the generated rule already includes.
Yes. Two polygons with the same number of points can be transitioned between, which makes an
opening or revealing animation possible.
Yes. It is completely free, runs locally in your browser and needs no account, no sign-up and
no upload.
Last updated: October 10, 2026