piko

CSS Triangle Generator

Draw an up, down, left, or right-pointing triangle using CSS borders.

Runs on your device. Nothing you add is uploaded.

104
80
Preview
CSS
.example {
  width: 0;
  height: 0;
  border-left: 52px solid transparent;
  border-right: 52px solid transparent;
  border-bottom: 80px solid #FF5A1F;
}

How to use CSS Triangle Generator

  1. Adjust the controls to match your design.
  2. Review the preview while you edit.
  3. Copy the CSS into your stylesheet.

Questions

Two transparent borders make the angled edges, while a third border supplies the triangle color.

How this works

Builds a local preview and a standard CSS rule from the selected settings.

Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. What you typed and your settings are kept in this browser so the tool opens the way you left it, except passwords, keys and tokens, which are never saved. Privacy