clip-path Shape Generator - Online CSS Clip Tool

Generate CSS clip-path shapes online. Pick a triangle, hexagon, star or other preset, drag control points for custom polygons, preview live and copy the code.

Shape controls

Drag the white handles in the preview to adjust vertices, or type percentage coordinates directly.

P1
P2
P3

Live Preview

clip-path CSS

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

Shape math and preview run locally in your browser. No data is uploaded.

About This Tool

A single clip-path property can cut out triangles, hexagons, stars and other irregular shapes. This generator makes coordinate editing visual: pick a preset or drag the control points directly in the preview.

Polygon, circle, ellipse and inset syntax are all supported, and the generated CSS is ready to copy. Calculations stay in your browser.

Key Features

Six useful presets

Triangle, hexagon, star, beveled rectangle, speech bubble and arrow are one click away.

Draggable vertices

Drag the white handles to reshape a polygon, or type percentage coordinates directly.

Four clip syntaxes

polygon, circle, ellipse and inset cover most real-world use cases.

Live preview

Shapes and parameters update instantly so you can compare options.

Local processing

No data is uploaded and everything is released when you close the page.

When to Use It

Avatar and card shapes

Give avatars and image cards a beveled or hexagonal outline for a consistent visual language.

Marketing visuals

Build tags, bubbles and decorative shapes without extra image assets.

Front-end teaching

Show how percentage coordinates map to a shape and explain clip-path behavior.

How to Use It

  1. 1Choose polygon, circle, ellipse or inset.
  2. 2For polygons, pick a preset or drag handles and type coordinates.
  3. 3Confirm the clipped result in the preview.
  4. 4Copy the generated clip-path CSS into your stylesheet.

Frequently Asked Questions

Is clip-path well supported?

All modern browsers support it. Older browsers may need a -webkit- prefix or a fallback.

Can I animate the shape?

Yes. Keep the vertex count the same and transition the polygon coordinates for a smooth morph.

What are the percentages relative to?

They are relative to the element's own width and height, so 50% 50% is the center.

Is my shape data uploaded?

No, shape math and preview run locally in your browser.

Other Tools

CodeSwordsman

100+ technical tools with browser-local processing — your data never leaves your device. Official Microsoft Store desktop apps: free, ad-free, offline.

Completely Free

© 2026 CodeSwordsman All Rights Reserved

Service Terms | Privacy Policy | Help | Version Updates | About Us

This website uses cookies to ensure you get the best experience on our website. Privacy Policy.