Skip to content
toolgrid

No tool found. Try another word.

CSS Gradient Generator

Design linear, radial and conic CSS gradients with up to 10 color stops and copy the background CSS.

Color stops

CSS

Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.

How to use the CSS Gradient Generator

  1. 1 Choose the gradient type and set the angle or shape.
  2. 2 Set the colors and positions of the stops, add or remove stops.
  3. 3 Copy the background CSS and paste it into your stylesheet.

About the CSS Gradient Generator

A CSS gradient is an image the browser draws from colors you specify. linear-gradient() goes in a direction given as an angle (90deg is left to right), radial-gradient() spreads from the center as a circle or ellipse, and conic-gradient() turns around the center like a color wheel.

Color stops say where each color sits, as a percentage of the gradient’s length. Between stops the browser blends the colors smoothly. Colors with transparency, such as rgba(0, 0, 0, 0.5), work too.

Gradients are drawn by the browser, so they stay sharp at any size and add no image download. All current browsers support the three gradient types.

Frequently asked questions

How do I make a gradient go from top to bottom?

Use a linear gradient with an angle of 180°; 0° goes from bottom to top.

Can I use transparency in a gradient?

Yes, use colors with alpha, such as #00000080 or rgba(0, 0, 0, 0.5).

Do gradients work in every browser?

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

How many color stops can I use?

This tool supports up to 10; CSS itself has no fixed limit.