CSS Triangle

Generate CSS border triangles pointing up, down, left, or right. Presets, color picker, live preview, copy or download.

Send feedback

Tell us if this tool is broken, report a bug, or share a suggestion. We read every message.

PrivateIn your browserInstantUnlimited

Approx. Bounding box: 64px × 32px

Classic zero-width, zero-height box with transparent borders and one colored side.

How it works

1

Pick direction

Choose up, down, left, or right. Each direction colors a different border side.

2

Set size and color

Border size controls triangle height or width. Use the picker or hex input for color.

3

Copy CSS

Preview the shape, then copy or download triangle.css for tooltips, carets, and arrows.

Why use CSS border triangles?

Before clip-path was widely supported, border triangles were the lightweight way to add carets and arrows without images. CSS Triangle is part of Easy24’s developer toolbox. Your input stays in this tab for normal use; Easy24 does not upload that content to process it. This tool has no daily free-plan cap; use it as often as you need. Typical flow: Choose direction and size, pick a color, preview the triangle, then copy or download the CSS. Related tools and reverse conversions appear on the page when a follow-up step is common.

Why use this tool

  • Four cardinal directions
  • Live border-triangle preview
  • Five quick presets
  • Hex color input
  • Bounding box dimensions
  • Unlimited use with no daily cap

Questions

What does CSS Triangle do?

It outputs CSS for a triangle using the zero-size element with colored borders technique.

Why width and height zero?

Only border widths render visible area. Transparent borders form the sloped sides.

Can I make rounded triangles?

Not with the border trick. Use clip-path or SVG for rounded or complex shapes.

What does border size mean?

It is the width of each border side in pixels. For an up triangle, bottom border sets height.

If Easy24 helped, buy a coffee

Tools stay free. A one-time tip is optional and helps keep them running.

Buy a coffee

When to use CSS Triangle

Teams and individuals use CSS Triangle for everyday workflows where speed and privacy matter more than a feature-heavy suite. Generate CSS border triangles pointing up, down, left, or right. Developer utilities remove friction from small tasks: formatting, snippets, colors, loaders, and other front-end helpers. Compared with installing a desktop suite only for css triangle, a dedicated page keeps the interface small and the intent obvious. Quota cookies may still track anonymous daily free-plan uses. That is different from receiving your file bytes or pasted text. This page has no daily free-plan cap, so you can run it as often as you need. If a free-plan limit applies, the workspace shows remaining uses before you commit a download, so you are not surprised after a long wait.

Similar Developer tools

See all
CSS Arrow Generator | Triangle CSS Generator Online · Easy24