CSS Triangle Generator

Create CSS triangles in 8 directions with live preview and copy-ready code. Customize size and color. Free online tool, no signup.

Preparing private browser tool…

Your file will stay on this device.

Frequently asked questions

How do CSS triangles work without SVG?
A zero-size element with thick borders and transparent sides shows only one colored border as a triangle.
Can I make asymmetric triangles?
Yes. Use different border widths on adjacent sides. This generator uses equal sizes for simplicity.
Browser support?
Universal. The border trick works in every modern browser. No prefixes or fallbacks required.
Which directions can I generate?
Eight: up, down, left, right, and the four diagonal corners. The size slider runs from 10 to 200 px.
How do I use it as a tooltip arrow?
Paste the rule into a ::before or ::after pseudo-element and position it absolutely against the bubble. The element itself is zero by zero, so it adds nothing to the layout.