CSS Gradient Generator

Design gradient backgrounds visually and copy the CSS.

Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
background: #4f46e5;
background: linear-gradient(135deg, #4f46e5 0%, #db2777 100%);
Angle: 135°
Colour stops
0%
100%

How to use CSS Gradient Generator

  1. Pick a preset or choose your colours.
  2. Adjust stop positions, angle and type.
  3. Copy the CSS.

Frequently asked questions

Do CSS gradients work in all browsers?

Yes. Linear and radial gradients work everywhere; conic gradients work in all modern browsers.

Why is there a plain background line first?

It is a fallback colour for very old browsers and for when the gradient fails to load.

Related tools

All Developer Tools →