CSS shape workshop
CSS Clip Path Generator
Shape an image, card, or section with responsive CSS. Start with a preset, refine the geometry, then copy your clip path.
Loading the local shape editor.
How to build a clip path
- Choose a shape. Polygon presets are starting points; switching functions preserves each function's geometry.
- Drag a handle or enter exact coordinates. Add a point halfway along the next edge, then move it into position. Use the selected-point menu when handles overlap.
- Check another preview aspect ratio. Copy the CSS into your stylesheet and test the actual element at its real sizes.
Understand the percentages
For polygon points and shape centers, X follows width and Y follows height. 0% 0% is top left. 100% 100% is bottom right. A polygon's shape can stretch when its box changes proportions. The editor keeps points within those bounds; CSS itself permits a wider range.
A circle radius percentage uses the box's diagonal divided by the square root of two: radius = percentage / 100 × sqrt((width² + height²) / 2). On a wide box, circle(50%) can extend past the top and bottom. Ellipse radii use width and height separately. Inset edges use the corresponding axis; rounded corners follow CSS's radius rules.
What the result changes
clip-path: polygon(50% 0%, 100% 100%, 0% 100%); creates a triangle. Clipping hides content and pointer hit areas outside the shape, while the original layout box remains. Keep essential text and controls clear of cropped edges. Clipping is not a way to hide sensitive content from the document.
Scope, privacy, and compatibility
This editor generates percentage-based polygon(), circle(), ellipse(), and inset(). It does not parse arbitrary CSS, SVG paths, external URLs, or other shape functions, and it does not export images. Zero-radius shapes and intersecting polygons receive warnings. Inset edge pairs must total less than 100% here so the rectangle remains visible.
Geometry is processed locally in memory, with no tool uploads, external assets, or saved history. The site may use its shared analytics. The optional WebKit declaration is provided for older implementations, not a guarantee of browser support. Test the exported result in your target browsers.
Technical references: CSS Masking's clip-path definition and CSS Shapes basic-shape definitions.