Create CSS clip-path shapes with live preview
Preset Shapes
Custom clip-path value
Preview Color
CSS Code
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);Generate CSS clip-path shapes online free with live preview. Choose from 11 preset shapes (triangle, diamond, hexagon, star, circle, ellipse, arrow, parallelogram, and more) or enter a custom clip-path value. Customize the preview color with a color picker. Copy the CSS code with one click. Perfect for web designers who want to create non-rectangular shapes for sections, images, and UI elements.
CSS clip-path lets you create non-rectangular shapes for HTML elements without SVG or images. It's used for creative section dividers (diagonal cuts between sections), image masks (hexagonal profile pictures), decorative UI components (arrow-shaped buttons), and unique layouts that stand out from standard rectangular designs. CSS clip-path is supported in all modern browsers and is more performant than SVG masks for simple shapes.
polygon(x1 y1, x2 y2, ...) — define a shape with coordinate pairs as percentages. circle(radius at cx cy) — e.g. circle(50% at 50% 50%). ellipse(rx ry at cx cy) — e.g. ellipse(50% 30% at 50% 50%). inset(top right bottom left round radius) — rectangular clip with optional rounded corners. All coordinates use percentages relative to the element's bounding box. Use the -webkit- prefix for older Safari versions.
polygon() defines a shape using a list of x,y coordinate pairs as percentages. For example, polygon(50% 0%, 0% 100%, 100% 100%) creates a triangle.
Yes, clip-path is supported in all modern browsers. Use the -webkit- prefix for older Safari versions.
Yes, clip-path can be animated with CSS transitions and keyframes, as long as both states use the same shape type with the same number of points.
clip-path uses geometric shapes to clip elements. mask uses images or gradients for more complex masking effects. clip-path is simpler and more performant.
Yes, clip-path works on any HTML element including text. It's a great way to create shaped text containers.
Chúng tôi không chỉ thiết kế website, mà còn giúp doanh nghiệp xây dựng thương hiệu số mạnh mẽ. Cung cấp dịch vụ thiết kế website trọn gói từ thiết kế đến tối ưu SEO. Hãy liên hệ ngay với Tấn Phát Digital để cùng tạo nên những giải pháp công nghệ đột phá, hiệu quả và bền vững cho doanh nghiệp của bạn tại Hồ Chí Minh.
Tạo border-radius tùy chỉnh.
Tạo hiệu ứng filter CSS.
Tạo hiệu ứng kính mờ CSS.
Tạo hiệu ứng Soft UI.
Tạo text-shadow CSS.
Tạo hệ thống font size.
Tạo bảng màu thương hiệu.