TXT · Text & Data tools

CSS Clip-Path Generator

CSS Clip-Path Preview

Shape cropping

Generate CSS clip-path rules to hide parts of an element. Select a base shape — circle(), ellipse(), inset(), or polygon() — and drag the sliders to set the coordinates.

The visual preview updates immediately. When the crop matches your design, copy the generated CSS rule to paste into your stylesheet.

Percentage coordinates vs pixels

This generator outputs coordinates in percentages (e.g., 50% 100%) rather than absolute pixels. Percentages ensure the clipped shape scales responsively as the parent element resizes on smaller screens.

Inset vs padding

The inset() shape works similarly to CSS margin or padding, defining how much of the image to cut away from the top, right, bottom, and left edges. Use it to trim the visible edges of a background image or a container without changing its CSS layout box.

Frequently Asked Questions

Generate CSS `clip-path` rules. Select a basic shape (circle, ellipse, inset, or polygon), adjust the coordinate sliders, and copy the CSS.

The generator outputs the standard CSS shapes: circle, ellipse, inset, and polygon.

It hides the pixels outside the shape and blocks click events in the clipped area, but the element still occupies its original rectangular space in the document layout.

Yes. CSS transitions work smoothly as long as the start and end shapes are the same type and have the exact same number of coordinate points.

Explore Our Tools

Browse all tools