Skip to content

CSS Triangle Generator

Generate pure CSS triangles in any direction and size.

5.0 (1 rating)
CSS code

Direction
160px
120px

Processing and privacy

Processing varies by tool. Check the instructions for local processing, server requests, external services and any file or request limits before entering sensitive information.

Read the privacy policy

Share this tool

Found it useful? Send it to a friend or teammate.

Rate this tool

5.0

1 rating

  • 5 stars 1
  • 4 stars 0
  • 3 stars 0
  • 2 stars 0
  • 1 star 0

Click a star to rate this tool

Clear instructions

Find steps, examples and limitations below.

Use online

Open the tool in a supported web browser.

Free to use

No sign-up required. Tool-specific limits may apply.

How to use the CSS Triangle Generator

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

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

Example and practical tips

Create a small downward triangle as a menu indicator.

Frequently asked questions

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.

  • 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.

Browse all guides

Report an issue

Something broken or not quite right? Tell us and we will look into it.

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