Skip to CSS clip path generator

CSS Clip Path Generator

Pick a shape, drag the points, copy the CSS.

Loading CSS clip path generator…

What Is a CSS Clip Path Generator?

A CSS clip path generator visually creates a clip-path value so you do not have to calculate polygon coordinates by hand. CSS clip-path lets you define a visible region for an element. This tool edits the common functions—polygon(), circle(), ellipse(), and inset()—then outputs CSS you can paste onto images, cards, sections, and buttons.

How to Use the CSS Clip Path Generator

  1. Choose a shape type.
  2. Start from a preset or a custom polygon.
  3. Drag points or edit X/Y values.
  4. Preview the clipping result.
  5. Switch background or upload a local preview image.
  6. Copy CSS, Tailwind, or React code.
  7. Paste the generated declaration into your project.

CSS Clip-Path Syntax Explained

MDN documents clip-path as a CSS property that defines a clipping region. This generator writes the basic-shape functions:

  • clip-path: polygon(x1 y1, x2 y2, x3 y3);
  • clip-path: circle(radius at x y);
  • clip-path: ellipse(rx ry at x y);
  • clip-path: inset(top right bottom left round radius);

Polygon coordinates are relative to the element’s reference box. 0% 0% is top-left, 100% 100% is bottom-right, 50% 50% is center.

Polygon, Circle, Ellipse, and Inset

Use polygon for custom edges. Use circle or ellipse for avatars and ovals. Use inset when you want a rectangular crop with an optional round radius—closer to a padded crop than a freeform silhouette.

CSS Clip-Path Polygon Coordinates

List points in order around the shape. A triangle is three pairs; a diamond is four. Too many points make dragging harder and can self-intersect. This editor keeps values in the 0–100% range.

Common CSS Clip-Path Shapes

Common clip-path shapes and syntax
ShapeUseExample
TriangleFlags, play markspolygon(50% 0%, 100% 100%, 0% 100%)
DiamondBadgespolygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)
HexagonProfile imagespolygon(25% 0%, 75% 0%, 100% 50%, …)
Star / arrowStickers, buttonsPresets in the editor
Circle / ellipse / insetAvatars, ovals, padded cropscircle(50% at 50% 50%)

CSS Clip-Path Use Cases

  • Hero section dividers and diagonal banners
  • Image masks and hexagon profile photos
  • Polygon cards, arrow buttons, and badges
  • Speech bubbles and decorative tickets
  • CSS reveals that stay on one element

For a clipped card with elevation, pair the shape with the Box Shadow Generator. If you only need rounded rectangular corners, use the Border Radius Generator instead.

How to Create Responsive Clip-Path Shapes

Percentage-based polygon coordinates scale with the element. A hero cut such as polygon(0% 0%, 100% 0%, 100% 80%, 0% 100%) stays a diagonal on every width. That is why this generator stays on percentages. path() is not treated as the same responsive model.

Clip-Path vs Border-Radius

border-radius rounds the corners of a rectangle. clip-path cuts a non-rectangular region. A circular avatar can be either border-radius: 50% on a square or circle()—but a hexagon or arrow needs clip-path.

CSS Clip-Path vs SVG Clip Paths

CSS clip-path is convenient on HTML elements. SVG <clipPath> is better for complex vector masks and reusable definitions. This page can export an SVG polygon for polygon() only—it is not a full SVG path editor.

Does Clip-Path Need -webkit-clip-path?

Current Chrome, Edge, Firefox, and Safari implement the standard clip-path property. The export still writes -webkit-clip-path next to it for older WebKit contexts. Check MDN for the live support table rather than treating the prefix as required everywhere.

Common CSS Clip-Path Mistakes

  1. Reversing X and Y.
  2. Forgetting 0% 0% is the top-left.
  3. Using more polygon points than you can edit cleanly.
  4. Creating a self-intersecting star by accident.
  5. Mixing percentages with fixed px mid-shape.
  6. Expecting clip-path to shrink layout size.
  7. Animating polygon to circle and hoping they morph.
  8. Treating path() like percentage polygon coordinates.
  9. Shipping only a prefix, or only the standard property, without checking your browser set.
  10. Using clip-path when border-radius or a simple gradient would do.

Frequently Asked Questions

What is a CSS clip-path generator?

A visual tool that builds a CSS clip-path value. This one edits polygon points, circle, ellipse, and inset, then copies CSS, Tailwind, React, or a CSS variable.

What does CSS clip-path do?

It defines the visible region of an element. Pixels outside the shape are hidden. The element’s layout box does not shrink.

How do I create a polygon clip path?

Use polygon(x1 y1, x2 y2, …) with at least three points. Example: polygon(50% 0%, 100% 100%, 0% 100%) is a triangle. Drag points here or type the percentages.

Can I create a triangle with clip-path?

Yes. Load the Triangle preset or use polygon(50% 0%, 100% 100%, 0% 100%).

Can I create a hexagon with CSS clip-path?

Yes. The Hexagon preset uses polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%).

Can I create a circle with clip-path?

Yes. circle(50% at 50% 50%) is a full circle centered on the element. Switch to Circle mode to edit radius and center.

What is the difference between polygon() and circle()?

polygon() is a list of straight-edged points. circle() is a radius and optional center. Use circle for avatars; use polygon for triangles, stars, and arrows.

Can I use percentages with clip-path?

Yes. This generator outputs percentages so the shape scales with the element. 0% 0% is the top-left of the reference box.

Is clip-path responsive?

Percentage polygon, circle, ellipse, and inset values scale with the element. path() uses a different coordinate system and is not treated as a drop-in equivalent here.

Can I use clip-path on images?

Yes. Apply the property to the img or a wrapper. The image file is not cropped on disk. You can preview a local image in this tool; it is not uploaded.

Can I use clip-path in Tailwind CSS?

Yes. Copy the Tailwind tab: an arbitrary property such as [clip-path:polygon(50%_0%,100%_100%,0%_100%)].

Can I use clip-path in React?

Yes. Copy the React tab for a style object with clipPath and WebkitClipPath.

Does clip-path change the element's layout size?

No. It only changes what is painted. Space, hit-testing of the box, and flow stay based on the unclipped dimensions unless you add extra layout CSS.

Can clip-path be animated?

Yes, between compatible values—typically polygon() to polygon() with the same number of points. Circle and polygon do not always interpolate cleanly.

What is -webkit-clip-path?

A prefixed alias. Current Chromium, Firefox, and Safari implement standard clip-path. The CSS export still includes -webkit-clip-path beside clip-path for older WebKit contexts. Read current support on MDN.

Can I paste an existing clip-path into the generator?

Yes. Paste polygon(), circle(), ellipse(), or inset() into the import field. Invalid syntax shows an error and does not change the editor.

Does the tool upload my image?

No. A preview image is read in the browser with an object URL and is not sent to a server.

Is this CSS clip-path generator free?

Yes. It is free, needs no signup, and runs in the browser.

By Muhammad Abdullah Rauf · Founder, EverydayTools.proUpdated 2026-09-20

Advertisement

Reviewed on 2026-09-20.