Skip to content
Jellykit

CSS Triangle Generator

Generate CSS triangles pointing in any of eight directions, with the classic border trick or clip-path. Set width, height and colour, then copy the code.

Runs in your browser. Nothing is uploaded.

About CSS Triangle Generator

Pick a direction, width, height and colour to get a CSS triangle. Choose the border technique, a zero-size element with one coloured border, or clip-path, which cuts a normal box into a triangle.

Border triangles work everywhere and are the usual way to draw tooltip and dropdown arrows. clip-path triangles can have a gradient or image background, which borders can't.

How to use CSS Triangle Generator

  1. Open the tool above and add your file or text.
  2. Adjust the options to suit.
  3. Download or copy the result. Nothing is uploaded at any point.

Frequently asked questions

How does the border trick work?

Borders meet at diagonal corners. With zero width and height, making three borders transparent leaves one triangular border visible.

Which technique should I use?

Borders for small solid arrows, clip-path when you need a gradient or image fill.

Is CSS Triangle Generator free and private?

Yes. CSS Triangle Generator is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all design tools →