Skip to content
Web4tools

CSS Gradient Generator

Design gradients visually and copy the CSS.

Runs in your browserNo accountNo watermark

In short

To create a CSS gradient, choose linear, radial or conic, set the angle, and adjust up to six colour stops with the colour pickers and position sliders. The preview updates live, and the background CSS is ready to copy into your stylesheet.

How to use the CSS Gradient Generator

  1. 1Pick a gradient type and angle.
  2. 2Edit, add or remove colour stops.
  3. 3Copy the generated CSS.

Gradient tips

Gradients between colours with similar lightness look smoothest. Transitions through very different hues can create a muddy grey middle. Add a stop in between to steer the blend. Conic gradients are great for pie-chart-like effects and colour wheels.

Frequently asked questions

Do CSS gradients work in all browsers?

Linear and radial gradients work in every modern browser; conic gradients are supported in all current versions of Chrome, Edge, Firefox and Safari.

Are gradients better than background images?

Usually yes: they're resolution-independent and add no download weight.

Is my text or data sent anywhere?

No. This tool runs entirely in your browser using JavaScript. Nothing you type is uploaded, stored or logged.

Last updated