ToolJutsu
All tools
Color & Design Tools

Clip-Path Generator

Create CSS clip-path shapes visually.

Preview fill
Shape preset
Polygon vertices (%)
Point 1
Point 2
Point 3

A polygon needs at least three points. Coordinates are percentages of the box, with 0% 0% at the top-left corner.

Generated CSS
clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
Processed on your device. We never see your files.

How to use Clip-Path Generator

What this tool does

The Clip-Path Generator builds a CSS clip-path value visually. You pick from a library of preset shapes — triangle, trapezoid, rhombus, pentagon, hexagon, octagon, star, arrow, circle, ellipse and inset — or switch into the polygon editor and set every vertex coordinate yourself. The chosen clip is applied live to a preview box that you can fill with a solid colour or a sample image, and the resulting declaration is shown as copyable code. All of it runs in your browser with no upload.

clip-path is one of the most expressive layout properties in CSS. It lets a plain rectangular element appear as almost any flat shape without extra markup, SVG files or background images. The catch is the syntax: a polygon() is a long list of percentage pairs, and a stray number turns a clean hexagon into a mess. This tool keeps the value correct while you experiment.

Use cases

In web design, clipped shapes give sections distinctive edges — angled hero banners, diagonal dividers between bands of colour, or chevron-shaped step indicators. For branding, a custom polygon can echo a logo’s geometry across buttons and cards. Illustrators and prototypers use the star, arrow and hexagon presets to compose badges, callouts and decorative grids without opening a vector editor. In product UI, circle and ellipse clips create spotlight effects and rounded media thumbnails, while the inset shape is handy for revealing part of an element during an animation. Because the clip does not affect layout, it is also a safe way to add visual interest to an existing design without risking reflow.

How to use it

  1. Choose how the preview is filled — a colour (with a native picker and hex field) or a sample image.
  2. Pick a shape preset. Geometric presets load straight into the polygon editor; circle, ellipse and inset show their own sliders.
  3. For a polygon, edit any vertex’s X and Y percentage, or use Add point and Remove to change the number of corners (minimum three).
  4. For circle, ellipse or inset, drag the sliders to set radius, centre or edge offsets.
  5. Watch the preview update on every change, then click Copy CSS to copy the full clip-path declaration.
  6. Use Reset to return to the default triangle.

Tips

Start from the closest preset and nudge its vertices rather than drawing from scratch — it is far quicker. Remember that 0% 0% is the top-left corner, so to push a point toward the bottom you raise its Y value. Keep symmetric shapes symmetric by mirroring X values around 50%. For diagonal section dividers, a four-point polygon with two corners at 0%/100% and the other two offset vertically gives a clean slope. When clipping an image, test with a busy photo: shapes that look fine on a flat colour can crop important detail. If a shape must animate, keep the same number of points in every keyframe so the browser can interpolate between them smoothly.

clip-path sits alongside border-radius for rounding and mask-image for soft, gradient-based reveals — pick whichever matches the edge you need. For a single hard-edged triangle made purely from borders, the CSS Triangle Generator produces a lighter-weight result. Combine clipped shapes with box-shadow carefully: a shadow follows the original box, not the clip, so use a filter: drop-shadow() instead when you want the shadow to trace the shape. Since the output is standard CSS, it works in any stylesheet, framework or CSS-in-JS setup without modification.

Frequently asked questions

What does the clip-path property actually do?
clip-path defines a visible region for an element — anything outside the region is hidden, so the element appears as that shape. It does not crop or change the underlying box; it only masks what you see. Layout still treats the element as its original rectangle, which is why surrounding content does not reflow when you change the clip.
How do polygon coordinates work?
Each vertex is an X and Y pair given as a percentage of the element's box. 0% 0% is the top-left corner, 100% 100% is the bottom-right. The browser connects the points in order and fills the enclosed area. The editor here lets you set those percentages directly and add or remove points, so you can refine a preset or draw a custom shape.
Why include the -webkit-clip-path prefix?
Older versions of Safari and some WebKit-based browsers only recognised the property under the -webkit- prefix. The preview applies both the prefixed and unprefixed forms so the shape renders consistently. When you copy the CSS you get the standard declaration; add the -webkit- line yourself if you must support very old WebKit builds.
Can I clip an image instead of a colour block?
Yes. Switch the preview fill to Image to see the shape applied to a sample photograph, which makes star, hexagon and arrow shapes much easier to judge. The generated clip-path works on any element — a div, an img, a background — so you can drop it onto your own image in exactly the same way.
Is my design uploaded anywhere?
No. The generator builds the clip-path string with JavaScript in your browser and renders the preview locally. No coordinates, colours or images are sent to a server, and nothing is stored after you close the page.

Related tools