CSS Gradient Generator – Linear & Radial Gradients with Code

Design smooth colour gradients for websites, buttons and backgrounds. Pick 2 to 5 colours, choose linear or radial, set the angle and colour positions, try ready-made presets, then copy the CSS code or download the gradient as an image.

Colours

Presets

How to make a CSS gradient

  1. Choose Linear (straight line) or Radial (circle from the centre).
  2. Set the colours and slide each one to its position. Add up to 5 colours.
  3. Change the angle, or tap a preset to start quickly.
  4. Copy the CSS code into your stylesheet, or download a 1920×1080 PNG for a wallpaper or slide background.
Why two lines of CSS? The first line is a plain colour fallback for very old browsers; modern browsers use the gradient line.

Frequently asked questions

Can I use the gradient in Canva or PowerPoint?

Yes – download the PNG and use it as a background image.

Does it work on all browsers?

CSS gradients work on all modern browsers, including Chrome, Safari, Firefox and Edge.