Ctrl + K
HomeCSS ToolsCSS Triangle Generator
Free Developer Tool

CSS Triangle Generator

Create CSS triangles using borders and customize their direction, size and color.

80px

What is CSS Triangle Generator?

Generate pure CSS triangles without images or SVG by configuring direction, size and colors.

How to use

  1. Choose the triangle direction.
  2. Set the triangle dimensions and color.
  3. Preview the generated triangle.
  4. Copy the CSS code.

Features

  • Pure CSS triangles
  • Multiple directions
  • Customizable size
  • Custom colors
  • Live preview

Common Use Cases

  • UI components
  • Dropdown arrows
  • Tooltips
  • CSS decorations
  • Navigation elements

Example

Input
Direction: Up
Size: 40px
Color: #3498db
Output
.triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 40px solid #3498db;
}

FAQ

Does it use only CSS?

Yes.

Can I change the direction?

Yes.

Can I customize the color and size?

Yes.