Code · Made a little simpler

Text Gradient Generator

Clip a linear, radial or conic gradient to text. Edit color stops and export CSS with a solid fallback for unsupported browsers and print.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
Color in motion
Gradient stops

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Text Gradient Generator: how to use it

  1. Enter sample text, choose the font and select a gradient type.
  2. Set two to five hex color stops, adjust the angle or center, and choose an opaque fallback color.
  3. Compare the effect over light and dark backgrounds. Copy or download CSS and apply the tm-gradient-text class.

Limits and notes

The preview uses system fonts available on your device. The CSS export contains a class rule and the chosen font settings. It leaves the preview text out of the source file. Gradient stops use sRGB hex with optional alpha and interpolate in sRGB. The preview background and sample text are workspace controls.

How your privacy works →

Text Gradient Generator: common questions

What happens if a browser cannot clip a gradient to text?

The exported class starts with the chosen opaque color. The gradient and transparent lettering are applied only when the browser supports both the clipping and gradient syntax.

Can I add a hard edge between colors?

Yes. Give two stops the same position. Stops are sorted by position and equal positions keep their entry order.

Why is the print result solid?

The stylesheet uses the fallback color in print. Forced-color mode uses the system text color.

Guides