Developer tools
CSS clip-path shapes and downloadable sample
Download a circle, ellipse or your own polygon as CSS/HTML and as a clipped SVG shape, ready to use.
The example values can be changed. Press Calculate to update the result; you can download it as TXT or CSV and collect scenarios in this tab. Nothing is saved or sent automatically.
Result
Method:
Width/height40–1200px; percentages 0–100. Polygon 3–32 points, nonzero fill rule including self intersections; zero radius produces an empty shape. Hex colour including alpha. SVG only from your generated geometry, without scripts, external links, image/text/SVG imports or interoperability guarantee.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Generate a polygon with 3–32 ordered vertices at 0–100%, a circle or an ellipse. Enter X Y pairs per line or separated by semicolons, with decimal points and at most 2000 UTF-16 units. Width and height: 40–1200 px. Circle radius uses the normalized diagonal; ellipse axes use width and height. Download CSS/HTML or the generated SVG shape, clipped to the original box. SVG coordinates are rounded to six decimal places; polygons use nonzero fill and zero radii are allowed. Generated SVG contains no scripts or external references; arbitrary SVG, image and text input is not supported. Decorative browser-dependent preview, with no cross-browser geometry guarantee. Generate explicitly; no automatic saving or sending.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Shape
- Polygon
- Width: 40–1200px
- 240
- Height: 40–1200px
- 180
- Hex colour including optional alpha
- #2979FF
- Polygon X Y pairs
- 50 0; 100 100; 0 100
Result
- CSS width
- width: 240px;
- CSS height
- height: 180px;
- CSS background
- background-color: #2979FF;
- CSS clipping shape
- clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
Frequently asked questions
Which clip-path shapes can I generate?
A circle, an ellipse or a polygon with 3 to 32 ordered vertices at 0 to 100%.
How do I enter polygon points for clip-path?
Enter X Y pairs per line or separated by semicolons, with decimal points and at most 2000 UTF-16 units. Polygons use the nonzero fill rule, including self intersections.
What size can the clip-path shape be?
Width and height can be from 40 to 1200 px.
Which files can I download for the clip-path shape?
You can download CSS, an HTML sample and an SVG shape clipped to the original box. SVG coordinates are rounded to six decimal places and contain no scripts or external references.
Can I clip my own image with this tool?
No. Image, text and arbitrary SVG input are not supported; the preview uses a generated sample.