Clip Path Playground - Online Interactive CSS Shapes
Drag points to create a custom clip‑path shape. See the CSS value update live. For creating non‑rectangular elements.
UD5 Toolkit
clip-path. For Safari < 16, add -webkit-clip-path.
clip-path is a property that defines a clipping region — only the portion of an element that falls inside this region is visible. The rest is hidden. It works like a "mask" that can take basic shapes like circle(), ellipse(), polygon(), inset(), or even SVG paths. It's widely used for image cropping, UI effects, animations, and creative layouts.
circle() creates a perfectly round clipping shape defined by a single radius value. ellipse() creates an oval shape with two radius values — rx (horizontal) and ry (vertical). Use circle() when you need a uniform circular crop, and ellipse() when you need more control over the width and height of the clipped region independently.
clip-path with basic shapes. Safari versions before 16 may require the -webkit-clip-path prefix. IE 11 and older browsers do not support it. Global support is approximately 96%+ as of 2025. Always test across target browsers and consider providing a fallback for legacy browsers.
clip-path is animatable with CSS transitions and keyframe animations, as long as the shape type remains the same (e.g., animating circle(30% at 50% 50%) to circle(50% at 50% 50%)). You can animate radius, position, or both simultaneously. Use transition: clip-path 0.3s ease; for smooth hover effects, or @keyframes for more complex animations. Note: animating between different shape types (e.g., circle to polygon) requires SMIL or JavaScript-based solutions.
sqrt(width² + height²) / sqrt(2) for circle(), and against the element's width/height for ellipse() rx/ry respectively. The at position percentages are always relative to the element's width and height. Using percentages is recommended for responsive designs.
at keyword specifies the center position of the circle or ellipse. It accepts any CSS <position> value: percentages (e.g., at 50% 50% for center), pixel values, or keywords like at center, at top left, at right bottom. The first value is the horizontal position, the second is vertical. at 50% 50% places the center exactly in the middle of the element. Omitting at defaults to center.
clip-path works on any HTML element, including <img>, <video>, <canvas>, and <iframe>. It's commonly used to create circular avatar images, elliptical video overlays, and unique image crop effects. Just apply clip-path: circle(45% at 50% 50%); to your image element, and it will be perfectly cropped. The element still occupies its original space in the layout — only the visual rendering is clipped.
pointer-events: none or use a different approach.
clip-path animations are generally GPU-accelerated and perform well, especially with basic shapes like circle() and ellipse(). Browsers can composite clipped elements efficiently. However, avoid overly complex clip-paths with many vertices on low-powered devices. For best performance, animate using transform and opacity when possible, and reserve clip-path animations for intentional visual effects. Testing on real mobile devices is always recommended.
Drag points to create a custom clip‑path shape. See the CSS value update live. For creating non‑rectangular elements.
Create gradient‑filled text with the background‑clip property. Choose linear or radial gradients. Get the CSS. Modern typography.
Build CSS Grid layouts by defining columns, rows, and gaps visually. Get the complete grid CSS code. An essential web design tool running in the browser.
Generate CSS-only triangles by configuring direction, size, and color. Copy the CSS snippet. Useful for creating speech bubbles and navigation arrows.
Create all kinds of CSS‑only triangles (up, down, left, right, equilateral). Adjust color and size. Grab the code.
Visually create beautiful linear and radial gradients. Get the CSS code instantly. Copy the code or export as image. Perfect for web designers.
Interactively apply CSS filter functions (blur, brightness, contrast, etc.) to an image and copy the resulting filter property. No coding required.
Set column‑count, gap, and rule, and see a multi‑column text layout. Copy the minimal CSS. For magazine designs.
Create a multi‑column text layout with adjustable column count, gap, and rule. Copy the CSS. Elegant reading experience.
Visually apply CSS transform functions like rotate, scale, skew, and translate. Obtain the exact CSS code for your elements. No coding needed.
Build a 3D rotating cube using pure CSS. Set dimensions, colors, and animation speed. Copy the HTML and CSS.
Style the <progress> and <meter> elements with cross‑browser CSS. Adjust colors and sizes. Copy the final styles.
Paste or upload an SVG and convert it into a CSS background‑image data URI. Clean and ready to embed.
Write global CSS and auto‑generate unique, scoped class names with source maps. Understand CSS Modules naming.
Choose from a dozen pure CSS loading spinners. Customize color, size, and speed. Copy the HTML & CSS. No JavaScript needed.
Design beautiful buttons with gradients, shadows, and hover/active effects. No JavaScript required. Copy the CSS.
Toggle common print styles: remove backgrounds, hide elements, set page margins, and add page breaks. Get the complete @media print block.
Add rows and columns, merge cells, and set gaps visually. Get the grid‑template CSS and HTML. Fast layout prototyping.
See how overflow: visible, hidden, scroll, and auto behave with real content. Clone to test with your text.
Create a 3D extruded text effect using multiple text‑shadows. Adjust depth, color, and perspective. Ready‑to‑use CSS.
Pick an emoji and get the exact CSS content property value with escaped Unicode. For inserting emojis via CSS.
Pick two images or colors and apply all 16 CSS mix‑blend‑mode values live. See and copy the right CSS for your design.
Browse a collection of common UI components (cards, modals, navbars) built with pure CSS. Preview and copy the HTML/CSS. Fast prototyping.
Paste an SVG and get an optimized, URL‑encoded data URI for use in CSS backgrounds. Reduces file size and escapes characters.
Add multiple CSS filters (grayscale, blur, hue‑rotate) to an image. See the combined effect. Copy the CSS filter value.
Convert an SVG into a data‑URI for mask‑image or mask‑position. Create non‑destructive clipping masks via CSS.
Type text and instantly see it rendered with text‑transform: uppercase, lowercase, capitalize, and full‑width. Copy CSS.
Write scoped CSS rules that apply only within a subtree. See the boundary limits and avoid naming conflicts. New browser feature.
Paste an SVG path and convert all relative commands to absolute. Also smooth curves to lines. Local parser.
Generate a CSR and private key pair in the browser using the Web Crypto API. Download both as files. No data sent to server.