Interfaces and CSSRuns in your browser

CSS clip-path Generator

Configure a simple shape mask without canvas, SVG export, or runtime parsing of full CSS.

  • Inset/circle/ellipse/polygon
  • 0–100% values
  • Local preview
Online tool

Try the tool

Add your data, choose the settings, and get the result.

Input

Polygon: x1 y1 x2 y2 x3 y3 x4 y4. Inset: top right bottom left. Circle: radius x y. Ellipse: rx ry x y.

Result

Preview
clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);

Processing in your browser

Text and selected files are processed in the current browser and are not sent to a server to produce the result.

Reviewed: 2026-07-17
01

How to use it

  1. 1

    Choose the shape mode.

  2. 2

    Enter percentages within the allowed range.

  3. 3

    Check the preview and copy the clip-path declaration.

02

What the tool can do

  • Inset, circle, ellipse, and four-point polygon.
  • Validation for values in the 0–100% range.
  • Plain CSS output without image or SVG export.
03

Common use cases

  • Quick shape mask for a card, hero image, or decorative surface.
  • Checking percentages before moving them into a design token.
  • Prototyping a simple CSS-only visual effect.
04

How it works inside

All values are validated as percentages and user CSS is not executed.

The preview applies only the generated clip-path value.

05

Questions and answers

How can I generate CSS for a shaped clipping area?

Choose a supported shape and adjust its settings. Check the preview and copy the clip-path property into your element's styles. It changes the visible area in the browser without cropping the original image file.

Can I draw an arbitrary complex shape?

Use the shapes and settings shown in the tool; polygons are limited to four points. Edit CSS separately for a more complex outline. The generator is not an SVG path editor.