Home Tools Blog About

CSS Clip Path Generator

In short

Builds clip-path shapes visually: drag the points of a polygon, resize a circle or inset, start from 26 presets, and copy the CSS.

  • Runs in your browser
  • Nothing uploaded
  • Free, no sign-up
Preview: drag the dots

Click a dot to select it. Arrow keys nudge the selected dot by 1% (Shift: 5%).

Edit an existing clip-path value

Pair it with the CSS Animation Generator to animate between shapes, or the CSS Gradient Generator for the fill.

🛡
Private by designYour files and text stay in this tab
⚡
Runs in your browserNo waiting for a server
💧
No watermarksClean output you can use
🆓
FreeNo account needed

How to Use CSS Clip Path Generator

CSS Clip Path Generator · free online tool · All Tools Verse
The CSS Clip Path Generator tool, as it looks in your browser.
  1. Start from a shape. Choose a preset or a shape function: polygon, circle, ellipse, inset or path.
  2. Drag the dots. Select a dot to nudge it with the arrow keys, or add and remove points on a polygon.
  3. Check it on your image. Set the preview size and pick My image to see the crop on your own picture.
  4. Copy the CSS. Set your selector, add the -webkit- line if you support old Safari, and copy or download.

Example: a hexagon card

The page opens on the hexagon preset. With the selector .clipped and the -webkit- line ticked, the CSS is:

.clipped {
  -webkit-clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

Drag the top-left dot down and to the right and the first point changes from 25% 0% to the new position, in the preview and in the CSS together. Turn on “Show the clipped-away area” to see the part of the image that will be hidden.

You can also paste an existing value under “Edit an existing clip-path value”. The shorthand inset(5% 10%) loads as top 5%, right 10%, bottom 5% and left 10%, ready to adjust.

The five shape functions

Function Example What the numbers mean
polygon() polygon(50% 0%, 100% 100%, 0% 100%) x and y of each corner, in percent of the element’s width and height
circle() circle(40% at 50% 50%) Radius, then the center after “at”
ellipse() ellipse(45% 30% at 50% 50%) Horizontal and vertical radius, then the center
inset() inset(10% 10% 10% 10% round 20px) How far each edge moves in (top, right, bottom, left), with optional rounded corners
path() path("M 50,30 A 20,20 0 0,1 90,30 ...") An SVG path in pixels from the top-left corner. It does not stretch with the element

The presets: 12 basic, 6 arrows, 8 decorative shapes, from triangles and arrows to a star, a speech bubble and a frame with a hole.

How it works

Each shape is kept as plain numbers. Dragging a dot converts the pointer position into a percentage of the preview box (rounded to 5% when Snap is on, or to one decimal), and the CSS is rebuilt from those numbers. The preview uses the same clip-path value your page will, so what you see is what the browser draws. For circle and ellipse the dots move the center and the radius; for inset they move the top-left and bottom-right corners.

Percentages make polygon, circle, ellipse and inset stretch with the element, which is what you want for responsive cards and image crops. Anything outside the shape is not drawn and does not receive clicks.

Limits

  • path() is edited as text, not by dragging, and its pixel numbers do not scale. Use polygon for shapes that must stretch.
  • Values with px or calc() can be pasted into your CSS by hand, but the editor only reads percentages back.
  • clip-path cuts the element only; a box-shadow on the same element is cut too. Put the shadow on a wrapper and use filter: drop-shadow there instead.

Frequently asked questions

Why does my clip-path shadow disappear?

clip-path removes everything outside the shape, including the element’s own box-shadow. Wrap the element and add filter: drop-shadow() to the wrapper; the shadow then follows the clipped shape.

Can I animate clip-path?

Yes, between two shapes of the same function and, for polygons, the same number of points. Write two keyframes with different point positions; the CSS Animation Generator can build the rest.

How do I make a slanted section edge with CSS?

Use the “Slanted section edge” preset. It keeps both top corners and the bottom-left corner, and lifts the bottom-right corner to 85% of the height, so the bottom edge runs at an angle. Drag that point to change the angle.

Do I still need -webkit-clip-path?

Only for old Safari versions. Current browsers read the unprefixed clip-path, so the extra line is optional.

Keep going

Related Tools

All Developer tools →

CSS Animation Generator →

Creates CSS animations from 20 presets or your own keyframes, with a live preview,…

CSS Aspect Ratio →

Generate CSS aspect-ratio with padding-top fallback, object-fit options, 16+ presets, decimal input. Live preview.…

CSS Beautifier →

Formats CSS with clean indentation or minifies it to the smallest safe size. Choose…

CSS Border Radius Generator →

Visual CSS border-radius with elliptical mode, 6 unit types (px/%/em/rem/vw/vh), 8 shape presets, live…

CSS Columns Generator →

Generate CSS multi-column layout with column-count or column-width, gap, rule, fill, span, break-inside. Live…

CSS Cursor Generator →

Browse 34 CSS cursors organized by category, with custom URL cursor builder. Live hover…

CSS Filter Generator →

Generate CSS filter with 10 functions including drop-shadow, backdrop-filter mode, 8 preset combinations. Live…

CSS Flexbox Generator →

A visual flexbox builder: set the container, click any item to change how it…

CSS Glassmorphism Generator →

Builds frosted glass CSS with backdrop-filter. Preview it on four test backgrounds, see an…

CSS Gradient Generator →

Design a linear, radial or conic CSS gradient by dragging color stops on a…

CSS Grid Generator →

Visual CSS Grid builder with grid-template-areas, auto-fit + minmax responsive tracks, per-item spans. 6…

CSS Media Query Generator →

Build @media queries: width, dark mode, reduced-motion, hover, pointer, orientation, print. Free, offline, client-side,…

Share

Embed this tool

Add this free tool to your website. Copy and paste the code: