QuickTools

Home › Craft & Design › CSS Gradient Generator

CSS Gradient Generator

Design linear, radial or conic gradients with up to six colour stops. Use presets, copy the CSS and download a wallpaper PNG.

🔒
Private by design: this tool runs in your browser, not on our server. Your files and text are processed on your own device and are never uploaded. How we keep your data safe
  1. 1 Pick a preset or colours
  2. 2 Adjust type, angle and stops
  3. 3 Copy CSS or download PNG
Gradient


Using the CSS

Copy the line and paste it into a stylesheet, for example .hero { background: linear-gradient(135deg, #6d5dfc 0%, #ec4899 100%); }. It works in every current browser. Add a plain colour before it as a fallback for very old browsers.

Types and angles

Colour stops

Each stop is a colour at a position from 0 to 100 percent. Add up to six, drag the sliders to move them, or press Random for inspiration. Choose neighbouring hues (blue to purple, orange to pink) for smooth results; opposite hues can go muddy in the middle. Check that text on top of the gradient keeps enough contrast everywhere.

The PNG download makes a wallpaper or background at the size you choose, including phone, 4K and banner sizes.