Skip to content

Menu

CSS Clip-Path Generator

Create CSS clip-path shapes with draggable polygon points and shape presets.

Runs entirely in your browserDesignFree, no sign-up
Loading tool

01What is CSS Clip-Path Generator?

Rectangles are easy. A hexagon avatar, an angled hero section or a ribbon-shaped badge used to mean exporting an SVG mask or stacking pseudo-elements. The clip-path property replaces most of that with one line of CSS, and this generator writes that line for you while you look at the shape. You pick one of the four basic shape functions defined in the W3C CSS Shapes Module Level 1, which the CSS Masking Module Level 1 lets clip-path use: polygon(), circle(), ellipse() and inset(). For a polygon, you drag the handles on the 300px preview with a mouse, pen or finger. You can also type exact X and Y percentages into the point list. Dragged values are rounded to whole percent and kept between 0 and 100. Add appends a point halfway between the last and the first point, up to 20 in total. The trash icon removes one, but the tool stops at three, because fewer than that is not an area. Circle gets sliders for radius and center, ellipse gets two radii and a center, and inset gets four edge offsets (0 to 50%) plus an optional corner radius in pixels. A checkerboard sits behind the gradient sample, so the cut-away part is obvious at a glance. Ten presets give you a starting shape: Triangle, Pentagon, Hexagon, Star, Arrow Right, Cross, Diamond, Circle, Ellipse and Inset. Here is a quick example. Load Triangle and the output reads polygon(50% 0%, 100% 100%, 0% 100%). Press Add and a fourth point appears at 25% 50%. That sits on the left edge, so nothing changes visually until you drag it outward. The copied CSS is a small .clipped-element rule with clip-path and a -webkit-clip-path copy. That prefix only helps very old Safari builds and does no harm elsewhere. Every coordinate is a percentage of the element box, so the shape stretches with the element. There are limits. The tool has no path() or shape() support, so curves beyond circles and ellipses are out of reach. It does not set a reference box such as border-box, so the browser default applies. The inset corner radius is a single pixel value for all four corners. Your shape and the preview never leave the page you are on, because nothing here calls a server.

Frontend developers and web designers who want angled sections, shaped avatars or badges in plain CSS instead of extra SVG files. The tool runs entirely in your browser, so your data never leaves your device.

02How to use CSS Clip-Path Generator

  1. Click a preset, or choose polygon, circle, ellipse or inset as the shape type
  2. For a polygon, drag the handles in the preview or type X and Y percentages in the point list
  3. Press Add to append a point or the trash icon to drop one (20 maximum, 3 minimum)
  4. For circle, ellipse or inset, adjust the sliders such as Radius (%), Center X (%) or Top (%)
  5. Check the clipped gradient against the checkerboard, then copy the generated CSS rule

03Worked examples

Input: Preset Triangle
Result: clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
Copied CSS also wraps this in a .clipped-element rule with a -webkit-clip-path line. Only the main line is shown.
Input: Preset Triangle, then Add
Result: clip-path: polygon(50% 0%, 100% 100%, 0% 100%, 25% 50%);
The new point is the rounded midpoint of the last point (0% 100%) and the first (50% 0%), so the shape looks the same until you drag it.
Input: Preset Hexagon
Result: clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
Input: Preset Star
Result: clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
Input: Preset Ellipse
Result: clip-path: ellipse(50% 35% at 50% 50%);
Input: Preset Inset
Result: clip-path: inset(10% 10% 10% 10% round 8px);
The round part only appears when Radius (px) is above 0.

04Common use cases

  • Cutting a slanted bottom edge on a hero banner with a four-point polygon like 0% 0%, 100% 0%, 100% 85%, 0% 100%
  • Building chevron steps for a checkout progress bar from the Arrow Right preset
  • Clipping team photos into hexagons or diamonds without editing the image files
  • Making a star or plus badge for a pricing card without shipping an extra SVG
  • Preparing two polygons with the same point count so a hover transition can morph one into the other
  • Revealing an image on scroll by animating inset() from 50% down to 0%

05Tips

  • A clip-path transition only animates smoothly between two shapes of the same kind, and polygons also need the same number of points. Otherwise the shape snaps.
  • Areas you clip away stop receiving clicks and hover, which makes non-rectangular buttons behave as they look.
  • clip-path also cuts off box-shadow and outline. Put filter: drop-shadow() on a wrapper element if the shape needs a shadow.
  • New points from Add land on the closing edge, so they never change the shape. Drag them out right away or you will wonder why nothing happened.
  • Percent values follow the element size. If you need a fixed 20px notch, edit the copied polygon by hand and swap in px or calc() values.

06Related concepts

SVG clip path, CSS shapes, Polygon, Shape outside.

Frequently Asked Questions

What is CSS Clip-Path Generator?

CSS Clip-Path Generator is a free, browser-based developer tool on AIDToolStack. Create CSS clip-path shapes with draggable polygon points and shape presets. It requires no installation or sign-up and works entirely in your browser.

Is CSS Clip-Path Generator free to use?

Yes. No sign-up, no fees and no usage cap.

Does CSS Clip-Path Generator store my data?

No. It runs in your browser; nothing is uploaded.

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe