UtilToolkits
Request a Tool
Home
AI Tools
Text Tools
Image Tools
CSS Tools
Coding Tools
Color Tools
Calculator Tools
Productivity Tools
Fun Tools
Video Tools
Other Tools
BlogAI Content Detector
CodeCast
Play CodeType CodeCode to Image

Your Favorites

Sign in to view your favorites

Tool Categories

Browse by category
AI (10)Text (14)Image (14)CSS (9)Coding (23)Color (4)Calculator (9)Productivity (8)Fun (4)Video (7)Other (2)All tools →Blog →
UtilToolkits
© 2026 UtilToolkits. All Rights Reserved.
AboutContactPrivacyTerms

More CSS tools

See all CSS tools →
  • CSS Cursor Viewer

    Visual reference for all CSS cursor types.

  • CSS Border Preview

    Visualizer for all CSS border styles.

  • CSS Background Patterns

    Generate pure CSS background patterns.

  • Box Shadow Generator

    Create and customize CSS box-shadow effects with a visual editor.

  • CSS Gradient Generator

    Create beautiful CSS gradients with color pickers and angle controls.

  • Border Radius Generator

    Create custom border radius values with individual corner controls.

Quick Tip: Miscellaneous

Need to calculate your BMI? It's a helpful starting point for understanding your health, but remember it's just one metric of many.

  1. Home
  2. Tools
  3. CSS Triangle Generator

About this Tool

Create pure CSS triangles in seconds. No images, no complex code—just simple, geometric shapes generated instantly. Customize the direction, size, and color, then copy the snippet directly into your stylesheet.

CSS triangles are a classic web design trick. By manipulating the border properties of a zero-width, zero-height element, we can create perfect triangles. This tool automates the math, giving you the exact code you need without the trial and error.

  1. Select the direction (Up, Down, Left, Right).
  2. Adjust the size and color using the visual controls.
  3. Preview the triangle instantly.
  4. Copy the generated CSS code.
  • Building tooltips or speech bubbles.
  • Creating directional arrows for menus or sliders.
  • Adding decorative geometric elements to your design.
  • Pure CSS: Lightweight and fast, no images required.
  • Fully Customizable: Adjust size, color, and direction.
  • Instant Preview: See your changes in real-time.
  • Cross-Browser: Works on all modern browsers.

It works by setting the `width` and `height` of an element to `0` and using transparent borders. If you set the bottom border to a solid color and the left/right borders to transparent, you get an upward-pointing triangle. The size of the borders determines the size of the triangle.

Why use CSS instead of an image?

It's much faster to load, scales infinitely without blurring, and is easier to change color on the fly.

Is this compatible with all browsers?

Yes, this technique relies on basic CSS properties supported by all browsers, even very old ones.

Can I make non-equilateral triangles?

Yes! By adjusting the border widths independently, you can create skewed or elongated triangles.

All calculations and data processing for this tool are performed locally in your browser. UtilToolkits does not send any of your data to an external server, ensuring your information remains private and secure.

Credits:Next.js•React•Tailwind CSS•Lucide Icons

CSS Triangle Generator

100px
100px
width: 0;
height: 0;
border-style: solid;
border-width: 0 50px 100px 50px;
border-color: transparent transparent #3b82f6 transparent;