Create stunning gradient text effects with a live preview. Pick start, middle, and end colors, choose a direction, adjust font properties, and copy the generated CSS code -- all client-side in your browser.
Choose start and end colors with an optional middle color stop. Pick any color using the native color picker or use one of the built-in presets for instant gradient text effects.
Set the gradient direction: left-to-right, top-to-bottom, diagonal, or radial. Each direction creates a unique visual effect. Preview updates instantly as you change direction.
Adjust font size from 16px to 120px, font weight from thin to black, and choose from 8 font families. See your actual text rendered with the gradient in the live preview.
One-click copy of the complete CSS code including background gradient, -webkit-background-clip, and -webkit-text-fill-color properties. Paste directly into your stylesheets.
CSS gradient text is achieved by applying a gradient background to a text element and using background-clip: text to clip the background to the text shape. The text color is set to transparent so the gradient shows through. This technique works in all modern browsers and creates visually striking typography effects.
The core CSS for gradient text uses three properties: background (or background-image) for the gradient, -webkit-background-clip: text to clip the background to the text, and -webkit-text-fill-color: transparent (or color: transparent) to make the original text color invisible so the gradient shows through.
Linear gradients transition colors along a straight line, specified with a direction like to right or an angle like 45deg. Radial gradients radiate outward from a center point. Both can be used for gradient text, but linear gradients are more common for horizontal or diagonal text effects.
-webkit-background-clip: text and -webkit-text-fill-color: transparent. The gradient will show through the transparent text. Our generator creates this code automatically.
-webkit-background-clip: text property is widely supported. Our generated code includes both prefixed and standard versions for maximum compatibility.
Check out our other free CSS tools. Generate gradients, box shadows, flexbox layouts, and more -- all from your browser with no sign-up required.
CSS Gradient Generator →