How do I create custom CSS clip-path shapes?
Select a shape type (circle, ellipse, inset, or polygon), then adjust the visual controls to design your clip-path. For polygons, drag the points directly on the preview or choose from 13 presets including triangle, star, hexagon, arrow, cross, and more. The generator outputs production-ready CSS that you can copy with one click. Add the -webkit- prefix for older Safari support. Everything runs in your browser — no signup required.
Shape: Circle Radius: 50% Center: 50% 50%
clip-path: circle(50% at 50% 50%); -webkit-clip-path: circle(50% at 50% 50%);
CSS Clip-path Generator
Create CSS clip-path shapes visually — circle, ellipse, inset, or polygon with draggable points. Copy production-ready CSS.
Polygon Points (3)
Drag points on the preview or edit values below.
Shape Presets
Preview Colors
Preview
CSS Output
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);Ctrl+Enter to copy CSS
Clip-path Reference
circle(r at cx cy) — circular clipellipse(rx ry at cx cy) — elliptical clipinset(t r b l round br) — rectangular clip with optional roundingpolygon(x1 y1, x2 y2, ...) — arbitrary polygon with unlimited verticesSupported in all modern browsers. Use -webkit-clip-path for older Safari versions.
Tips & Best Practices
Use clip-path for reveal animations instead of overflow: hidden
clip-path can be animated with CSS transitions for smooth reveal effects: transition from `circle(0%)` to `circle(100%)` for a circular reveal, or `inset(0 100% 0 0)` to `inset(0)` for a horizontal wipe. These are GPU-accelerated and performant.
clip-path clips everything including box-shadow and outline
Elements with clip-path lose their box-shadow and outline because those are rendered outside the clipping region. Use filter: drop-shadow() instead of box-shadow for clipped elements — drop-shadow follows the clip-path shape.
Create custom shaped sections with polygon clip-path
Angled section dividers (diagonal cuts between page sections) use `clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%)`. This creates a clean diagonal edge without SVG or pseudo-elements, and the angle is easily adjustable.
clip-path hides content visually but not from screen readers or DOM
Clipped content is invisible but still present in the DOM and accessible to screen readers, search engines, and JavaScript. Never use clip-path to 'hide' sensitive information — use server-side rendering control instead.
Frequently Asked Questions
What is the CSS clip-path property?
How do I create a triangle with clip-path?
Does clip-path affect layout and click events?
Is clip-path supported in all browsers?
Related Generate Tools
JSON to GraphQL Schema
Generate GraphQL schema definitions from JSON data with automatic type inference, Query/Mutation generation, and .graphql download
HTTP Request Builder
Build HTTP requests visually and generate code in cURL, JavaScript, Python, Go, Rust, and PHP — lightweight Postman/ReqBin alternative
HTML Table Generator
Build HTML tables visually with an interactive editor — add rows, columns, header rows, captions, and styling. Export as plain HTML, inline CSS, or Tailwind classes
CSS Filter Generator
Build CSS filter effects visually — blur, brightness, contrast, grayscale, hue-rotate, invert, opacity, saturate, sepia, and drop-shadow with 12 presets and live preview