Pure CSS — No Images Required
Generate CSS Triangles
Instantly
Pick a direction, size, and color — get clean CSS code for the classic border trick or modern clip-path. Works in every browser. 100% free.
🎯
8 Directions
Generate triangles pointing up, down, left, right, or any corner — all from the same tool.
⚡
Two CSS Methods
Classic border trick for zero-size boxes, or modern clip-path that works with backgrounds and gradients.
📋
Copy-Ready Code
Clean, production-ready CSS output. Click once to copy — paste directly into your stylesheet.
Direction — Up
CSS Method
Zero-size element. Diagonal directions produce right isosceles triangles.
Size — 80px
20px200px
Color
Preview
Generated CSS
.triangle {
width: 0;
height: 0;
border-left: 40px solid transparent;
border-right: 40px solid transparent;
border-bottom: 80px solid #3b82f6;
}Tip: Add this class to an empty <div> or a ::before / ::after pseudo-element to keep your HTML clean.
Frequently Asked Questions
Everything you need to know about CSS Triangle Generator.