CSS TEXT GRADIENT GENERATOR

Fill a headline with a color gradient and copy the CSS.

Gradient Text
.gradient-text {
  font-size: 56px;
  font-weight: 700;
  background: linear-gradient(90deg, #ff6a35, #ffb347, #ffe17d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

How to build CSS gradient text

  1. 1

    Type your headline text.

  2. 2

    Pick a color preset or edit each gradient stop's color.

  3. 3

    Drag the angle slider to rotate the gradient direction.

  4. 4

    Adjust the font size to match your design.

  5. 5

    Copy the CSS — it uses background-clip: text to fill the letters with the gradient.

Questions

How does gradient text actually work in CSS?
The gradient is applied as a background-image on the text element, then background-clip: text clips that background to the exact shape of the rendered glyphs, and -webkit-text-fill-color: transparent (plus color: transparent as the standard fallback) hides the normal text color so the gradient shows through instead.
Why does the CSS include a -webkit- prefixed property?
background-clip: text is still vendor-prefixed as -webkit-background-clip in some browsers even though it's part of the standard property today, so both are included for the widest compatibility. Safari in particular still relies on the -webkit- versions.
Will gradient text work if someone's browser doesn't support background-clip: text?
The generated CSS sets a transparent text color as a fallback, so in a non-supporting browser the text would render invisible against most backgrounds rather than falling back to a solid color. This effect is best reserved for large decorative headlines rather than text that must always be legible, and support is strong across current Chrome, Firefox, Safari, and Edge.
Can I use more than three gradient colors?
Yes — the generated linear-gradient() accepts any number of comma-separated color stops. Copy the CSS and add another color inside the gradient() function if you want a more elaborate blend than the presets shown here.
Does this tool save or upload my headline text?
No — the text and colors you choose only exist in your browser to render the live preview. Nothing is sent to a server.