About

Tool No. 95 of Pikkola, 28 November 2026

A shape is dragged over a picture and comes out as one line of CSS. The page writes the value four ways, reads a pasted polygon back into vertices, and shows what happens to a shadow, an outline and a focus ring when a box is cut.

What it does

The value, and what the browser does with it

clip-path is painted, not laid out: the element keeps the box the layout gave it and only the pixels inside the shape survive. That is why a clipped card leaves a gap at its cut corner and why a box-shadow, which is painted outside the box, disappears with the corner it was under.

Percentages, and the shape that stays put

A vertex at 50% 0% is the middle of the top edge at any width, so the same value cuts a phone card and a desktop card correctly. A pixel value would be right for one breakpoint and wrong for the next, and a shape that is not square stretches, which the preview shows honestly.

Four ways to carry one value

The class in the stylesheet is the one to ship: it is cached and a strict content policy allows it. The inline form is for a one-off, the Tailwind form is compiled at build time, and the SVG clipPath in objectBoundingBox units is the fallback for a page that cannot allow inline styles at all.

What it is not

It is not an image editor: nothing is cropped, no file is written and no picture is uploaded. It does not write path() curves, does not check whether a polygon crosses itself, and cannot tell you how a shape looks in a browser other than the one you are reading it in.

Contact

A shape that CSS renders differently from this preview, or a mode worth adding, is worth the value and the browser version: hello@pikkola.com.

Back to the studio