CSS Triangle Generator

Create pure CSS triangles in different directions, customize color and size, preview and copy the code.

CSS Triangle Generator

Controls the triangle base; left/right borders are half of this.

Controls the triangle height.

Triangle Generator Guide
What it does

Generate CSS-only triangles for tooltips, arrows or pointers. Choose direction, color, and size—then copy the ready-to-use CSS.

How to use
  1. Pick a direction (up, down, left, right) to orient the triangle.
  2. Choose a color via the color picker or paste a HEX code.
  3. Adjust size with the number field or slider until it fits your design.
  4. Preview updates in real time; copy the CSS snippet when satisfied.
  5. Paste the CSS into your stylesheet and add the triangle class to your element.
FAQ
CSS Triangle Generator - Build CSS-only arrows and pointers