CSS Triangle Generator
Create pure CSS triangles pointing in 8 directions, equilateral or custom size, using borders or clip-path, and ready-made tooltip arrows.
Create pure CSS triangles pointing in 8 directions, equilateral or custom size, using borders or clip-path, and ready-made tooltip arrows.
Used CSS Triangle Generator? Share how it went to help others.
About this tool
CSS Triangle Generator makes triangles and arrows with CSS alone, without images or SVG. Choose one of eight directions: up, down, left, right, or one of the four corners for right-angled triangles. Set the width and height with sliders, or keep Equilateral on so all three sides are equal: the tool then calculates the height from the base using the √3 ÷ 2 ratio, so an 80-pixel base gives a 69-pixel height. Pick a colour and a method. The border method is the classic trick: an element with no width or height gets thick borders, one of them coloured and its neighbours transparent, and the coloured border appears as a triangle. It works in every browser ever made. The clip-path method draws a normal box and cuts it into a triangle with polygon(), so the triangle can use gradients, images, hover effects and transitions, and its size is simply its width and height. For speech bubbles and tooltips, tick “As a tooltip arrow”: the tool writes a .tooltip rule and a ::after pseudo-element with content, absolute positioning and the right offsets, so the arrow sits on the edge of the box and points away from it. The preview shows the triangle or the tooltip exactly as the CSS will draw it, and the code can be copied in one click. Everything runs in your browser.

Eight directions, including corners.
Width and height, or equilateral.
Borders for any browser, clip-path for gradients.
As a shape or as a tooltip arrow.
Including right-angled corner triangles.
Height calculated for you.
Border trick or clip-path.
Positioned ::after code included.
Small shapes, big polish
An arrow pointing at what the tip describes.
ExampleA downward arrow under a “Copied!” tooltip.
Small carets beside menu labels.
ExampleA 10px down triangle next to “Tools”.
Corner triangles for angled section edges.
ExampleA bottom-right triangle across the width of a banner.
Notches on labels and corner ribbons.
ExampleA top-left triangle with “NEW” on a product card.
Choose the right method
Tiny, solid-colour arrows work best with borders.
Gradients and hover transitions need clip-path.
The arrow must be the same colour as its tooltip.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed CSS Triangle Generator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 24 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.