CSS Triangle Generator

Create CSS triangles using the border trick, in any direction.

πŸ”’ Runs in your browser⚑ Instant resultsπŸ†“ Free, no sign-up

How to use CSS Triangle Generator

  1. Move the sliders and change the colours on the left. The preview updates live.
  2. When it looks right, press Copy under the preview to take the CSS.
  3. Paste it into your stylesheet and rename the class to suit your project.

What is it good for?

Create CSS triangles using the border trick, in any direction.

Hand-tuning CSS values is slow because you have to switch between your editor and the browser. A live preview shortens that loop to seconds. People most often reach for it when reducing file sizes before deploying a website, checking what a token or encoded value really contains and moving data between JSON, CSV, XML and YAML.

Good to know. Great for tooltips and dropdown arrows without extra images.

Using it day to day

The layout adjusts to phones and tablets, so you can use it on whichever device is handy.

Everything runs in your browser, so the tool keeps working even on a slow connection once the page has loaded.

Privacy

The preview and the code are generated locally, so you can experiment as much as you like.

Frequently asked questions

Is CSS Triangle Generator free to use?

Yes, completely free. There is no sign-up, no watermark and no limit on how many times you use it.

Is my data safe when I use CSS Triangle Generator?

Everything runs locally in your browser.

Does CSS Triangle Generator work on my phone?

Yes. The layout adapts to small screens, and the tool works in current versions of Chrome, Edge, Firefox and Safari.

Any tips for using CSS Triangle Generator?

Great for tooltips and dropdown arrows without extra images.