CSS Gradient Generator

Create linear or radial CSS gradients with a live preview and copy the ready-to-use background code.

How to use CSS Gradient Generator

  1. Choose linear or radial.
  2. Pick two colours, their stops and the angle.
  3. Copy the CSS.

Supported features and limitations

Generates standard gradients supported by all modern browsers, without vendor prefixes.

Privacy

Everything you type is processed locally in your browser and is not sent to our servers. No account is needed and there is no watermark.

Frequently asked questions

How do I make a diagonal gradient?

Set the angle to 45° or 135° in a linear gradient.

Can I use three colours?

This tool creates two-colour gradients; add more stops to the copied CSS by hand.

Related tools

More Developer & Webmaster Tools · All free tools