🌈 Text Gradient Generator

Create beautiful gradient text effects – linear or radial, custom colors, angle, shape & position

Version 1.0.0 – Updated April 2025
?
Choose two colors for your gradient. Use the swap button to exchange them.
?
Direction of the linear gradient in degrees. 0° = top to bottom, 90° = left to right.
?
Size of the preview text.

👁️ Live Preview

Gradient Text

📋 CSS Code

.gradient-text { background: linear-gradient(45deg, #667eea, #764ba2); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 48px; }

Embed This Tool

Want to embed this text gradient generator on your website? Use this code:

<iframe src="https://yoursite.com/text-gradient-generator" width="100%" height="600" frameborder="0"></iframe>

📘 Gradient Text Examples

🌈 Sunset

background: linear-gradient(135deg, #ff6b6b, #feca57); -webkit-background-clip: text; background-clip: text; color: transparent;

🌊 Ocean

background: linear-gradient(to right, #48c6ef, #6f86d6); -webkit-background-clip: text; background-clip: text; color: transparent;

🌿 Forest

background: linear-gradient(45deg, #11998e, #38ef7d); -webkit-background-clip: text; background-clip: text; color: transparent;

🔴 Radial Glow

background: radial-gradient(circle at center, #ff9a9e, #fad0c4); -webkit-background-clip: text; background-clip: text; color: transparent;

📖 Gradient Text Tutorials

🎨

How to create gradient text in CSS

The background-clip trick explained step by step.

Read Tutorial →
🔄

Linear vs Radial gradients for text

When to use each and how to control them.

Read Tutorial →

Advanced gradient text effects

Multiple color stops, repeating gradients, and animation.

Read Tutorial →

⚖️ Text Gradient Tool Comparison

Feature Our Tool Tool A Tool B
Free & unlimited ❌ (limit)
Live preview
Linear & radial
Custom angle (0-360)
Radial shape & position
Swap colors
Font size control
Custom sample text
Download CSS file
Client-side / private

❓ Frequently Asked Questions

How does gradient text work in CSS?

We set a gradient as the background, then use background-clip: text to make the background only show through the text characters. Combined with color: transparent, the text appears as the gradient.

Why do I need -webkit-background-clip?

Many browsers (especially older versions of Chrome, Safari, Edge) still require the -webkit- prefix for background-clip: text. Our generated CSS includes both for maximum compatibility.

Can I use more than two colors?

This generator uses two colors for simplicity. You can easily add more color stops by editing the CSS: linear-gradient(45deg, #667eea, #764ba2, #ff6b6b).

Does this work on all browsers?

All modern browsers support background-clip: text with the -webkit- prefix. Internet Explorer does not support it, but it will gracefully fall back to a solid color (transparent may hide the text, so consider adding a fallback).

📝 Version History

Version 1.0.0 – Initial release

April 11, 2025
  • 🚀 Full text gradient generator
  • 🎨 Two color pickers + swap button
  • 🔄 Linear & radial gradient support
  • 📐 Linear: angle slider (0-360°)
  • ⚪ Radial: shape (circle/ellipse) + 5 position options
  • 📏 Font size slider (16-120px)
  • 📝 Custom sample text
  • 👁️ Live preview
  • 📋 Copy CSS & download .css file

🧠 Why use Gradient Text?

Gradient text adds a modern, eye‑catching touch to headings, logos, and call‑to‑actions. It's a simple way to make your typography pop without using images.

🎯 Brand colors

Combine your primary and secondary colors for a cohesive look.

⚡ Performance

Pure CSS – no images, no extra HTTP requests.

🔄 Versatile

Works on any text element: h1, h2, p, a, etc.

🛠️ Recommended Design Resources

Tools to take your typography further