Loading Techie Utils…

CSS Triangle Generator

Make a CSS triangle with clip-path and copy the code. Free, and runs entirely in your browser — nothing you enter is uploaded, stored or sent to a server.

About Clip Path Generator

Cuts an element into a shape with clip-path — triangles, polygons, stars, arrows, speech bubbles, circles, ellipses, inset rectangles with rounded corners, or a polygon you write point by point — with a live preview.

Points are percentages of the element's own box, so one clip-path works at any size: 50% 0% is always the top centre. The element keeps its full rectangular box for layout, so neighbouring content does not move — to have text flow around the shape as well, give the element the same value as shape-outside.

clip-path can be animated between two polygons with the same number of points, which is how many shape-morphing hover effects are built.

Where it helps

  • Sixteen ready-made shapes plus a custom polygon.
  • Percentage points scale with the element automatically.
  • Checks custom points, so a typo cannot produce silently broken CSS.
  • Previews at any width and height.

Limits

  • Clipping hides content but not the box: clicks and hovers still register in the clipped-away corners.
  • Shadows and borders are clipped too; to shadow a clipped shape, use filter: drop-shadow() on a wrapper.
  • Curved shapes other than circles and ellipses need path() or an SVG clipPath, which this does not draw.

Frequently asked questions

Why is my box-shadow gone?

clip-path clips everything outside the shape, including the shadow. Put the clip-path on an inner element and filter: drop-shadow() on its parent — drop-shadow follows the clipped shape.

Can I animate between shapes?

Yes, if both are polygons with the same number of points: the browser interpolates each point. Different point counts snap instead of morphing.

How do I make text wrap around the shape?

Float the element and give it shape-outside with the same value as its clip-path; text then flows along the shape's edge.

Related tools

More Colors & Design tools