CSS triangle and arrow generator
Turn a direction, size and color into a CSS rule that draws a triangle or arrow — no image needed.
CSS triangle and arrow generator
Pick a direction, a width and height, and a color, and this tool writes the CSS rule that draws the shape — a triangle pointing up, down, left or right, or a corner triangle for a ribbon-style badge. There is no image file to export and no extra markup to add: the shape is pure CSS, so it scales cleanly at any size and stays crisp on high-density screens. It is the building block behind dropdown carets, accordion indicators, ribbon badges, and the little pointer on a tooltip or a chat bubble.
Two techniques are supported. The border trick sets a zero-size box's opposite borders to transparent and colors the rest — the classic recipe, with the widest browser support. clip-path instead draws the shape on a sized box using a polygon, which is easier to read in dev tools and to animate. Switch between them with the technique option.
Turn on "Use as ::after pseudo-element" for a rule scoped to ::after, absolutely positioned flush against whichever side or corner you picked, ready to drop onto an element that already has relative positioning — exactly what a dropdown caret or a tooltip's pointer needs, with no extra HTML. Turn on "Speech bubble with attached arrow" instead and the tool generates two rules together: a bordered, rounded callout box and an arrow tail attached to its edge, pointing the way you chose — the shape behind a chat bubble or a help-text popover.
Everything runs in your browser: nothing you configure is ever sent anywhere. Copy the generated CSS, download it as a .txt file, or send it to another tool's input — the border-radius or clip-path generators, for instance — to keep refining the shape.