All Tools

CSS Gradient Text Generator

Create gradient text effects with a live preview. Pick up to 4 colors, choose the direction, and copy the generated CSS background-clip technique in one click. Works in all modern browsers without extra libraries.

Gradient Text

48px

CSS Output

background: linear-gradient(to right, #6366f1, #ec4899);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;

How gradient text works in CSS

Gradient text is achieved with three CSS properties working together: a linear-gradient as the background, -webkit-background-clip: text to clip the gradient to the text shape, and -webkit-text-fill-color: transparent to make the text itself transparent so the gradient shows through.

Browser support

The -webkit-background-clip: text technique is supported in all modern browsers. The background-clip: text (without prefix) is also included for full standard compliance.

Tips for best results

  • High-contrast color pairs produce the most readable gradient text.
  • Bold or heavy font weights make the gradient more visible.
  • Horizontal gradients (left to right) generally work best for single-line headings.
  • Use 3–4 colors for a richer rainbow effect.