CSS Text Gradient Generator

Create gradient text with CSS for free — choose two or three colours, linear or radial gradients and the angle, preview it live on your own text, add an animated shimmer, and copy production-ready CSS and HTML.

100% private — everything runs in your browser. Conversion happens on your device; nothing is uploaded.

100% private — runs in your browser

Presets:

Uses background-clip: text with the -webkit- prefix, supported in all modern browsers. The solid fallback colour is transparent, so check contrast against your background.

How to create gradient text in CSS

  1. Type your text and pick a preset or your own colours.
  2. Choose linear or radial and set the angle.
  3. Adjust size and weight, and tick “Animate” for a moving gradient.
  4. Copy the CSS and HTML.

What you can use it for

  • Gradient headlines for landing pages and hero sections
  • Eye-catching logo text and buttons
  • Animated gradient text for banners
  • On-brand gradient headings in WordPress and Webflow

More free tools

Building for the web?

Format, minify, convert and generate code with our free, private developer tools.

See all free tools →

Frequently asked questions

How do you make gradient text in CSS?

Set a gradient as the background-image, clip the background to the text with background-clip: text (plus -webkit-background-clip), and make the text fill transparent. The generator writes all of this for you.

Is gradient text supported in all browsers?

Yes — every modern browser supports background-clip: text with the -webkit- prefix.

Is gradient text accessible?

It's still real, selectable text for screen readers. Check that every part of the gradient has enough contrast with the background.

How do I add the gradient text to my website?

Click Copy CSS and paste the rules into your stylesheet. Then click Copy HTML for a ready-made heading, such as <h1 class="gradient-text">Made Good Designs</h1>, and paste it where the text should appear. The CSS targets the class gradient-text, so you can add that class to another heading, paragraph or link instead. If Animate is ticked, the @keyframes rule is included in the copied CSS as well.

How do I make animated gradient text?

Tick Animate the gradient. The CSS then makes the background twice as wide (background-size: 200% auto), repeats your first colour at the end of the gradient, and adds a gradient-shift animation that slides the background across the text every 4 seconds at a steady pace, looping endlessly. The @keyframes rule comes with the copied CSS. To change the speed, edit the 4s value in the animation line.

Can I use three colours?

Yes. Tick Use next to Colour 3 to add a third colour after the first two, and untick it to go back to two. Five presets fill in the colours for you: Sunset (#ff512f to #dd2476), Ocean (#00c6ff to #0072ff), Gold (#f7971e to #ffd200), Neon (#7f00ff to #e100ff), which is the starting look, and Aurora, a three-colour blend of #ff0080, #7928ca and #00d4ff.

What's the difference between linear and radial?

Linear blends the colours in a straight line at the angle you set, anywhere from 0° to 360°; the default of 90° runs from left to right. Radial blends them in a circle, starting with Colour 1 at the centre and spreading outwards to the last colour, so the Angle slider is hidden while Radial is selected. Both options use the same colours, and the preview updates as you change them.

Does the CSS set the font?

The CSS sets only the size and weight you choose: a font size from 16 to 120 pixels (56 by default) and Regular (400), Bold (700), Extra bold (800, the default) or Black (900). It doesn't set a font family, so the text uses whatever font your page already applies. Delete the font-size and font-weight lines if you want your existing heading styles to stay in charge.

Can I use the CSS in commercial projects?

Yes. The CSS and HTML are generated by our own code, so you can use them in client sites, products and anything you sell, with no credit needed. There's no sign-up or account: the code is written in your browser as you change the settings. If you pair the gradient with a web font, check that font's licence separately.

How do I make a gradient background instead?

Use our CSS Gradient Generator, which builds linear, radial and conic gradients with a live preview and copy-ready CSS. This tool is set up for text: it clips the gradient to the letters with background-clip: text and makes the text fill transparent. If you remove those clip and transparent lines from the copied CSS, the gradient stays as a plain background on the element.