CSS Gradient Generator

Build CSS gradient backgrounds visually. Pick linear, radial or conic, set the angle or centre, and drag colour stops along the bar or edit them numerically — click the bar to add a stop at that point. The preview updates instantly and the generated CSS includes a solid fallback colour.

How to use the CSS Gradient Generator

  1. Choose linear, radial or conic.
  2. Set the angle, shape or centre position.
  3. Drag stops, click the bar to add one, or edit colours and positions below.
  4. Start from a preset if you like.
  5. Copy the CSS value or the full rule.

Features

Benefits

Frequently asked questions

Do these gradients work in all browsers?

Linear and radial gradients work in every modern browser. Conic gradients are supported in all current major browsers but not in very old versions.

Why is there a background-color line in the CSS?

It is a fallback so that very old browsers, or failed image layers, still show a reasonable solid colour.

How do I make hard stripes?

Place two stops at the same position with different colours, and enable Repeating — the Stripes preset shows how.

Related tools