Skip to content

How to Use CSS Triangle Generator

Generate pure CSS triangles using borders. Pick the direction, size and color, preview it live and copy the code. Free online CSS triangle generator.

About this tool

Generate a triangle using CSS borders, with direction, size and color controls.

How to use CSS Triangle Generator

  1. Select a Direction.
  2. Set Width, Height and Color while inspecting the preview.
  3. Copy the CSS and apply it to the intended decorative element.

Worked example

Create a small downward triangle as a menu indicator.

Is this a scalable vector file?

No. It is a CSS border technique. Change its CSS dimensions when a different size is needed.

Can I use the triangle as an accessible button alone?

A visual shape does not provide a control name or behavior. Add suitable semantic HTML and an accessible label for interactive use.

Put this guide into practice

Explore CSS Tools · More practical guides

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help