CSS Gradient Generator
Design linear and radial CSS gradients with a live preview. Add color stops, set the angle, and copy clean background CSS — all in your browser.
Angle
90°
Color stops
#f5530c
%
#ffa94d
%
background: linear-gradient(90deg, #f5530c 0%, #ffa94d 100%);
How to use CSS Gradient Generator
- 1
Choose a gradient type
Switch between Linear and Radial. A linear gradient also lets you set the direction with the angle slider, measured in degrees.
- 2
Add and color your stops
Click a swatch to pick each color, and set its position from 0 to 100 percent. Use Add color stop for multi-color blends, or remove a stop to simplify.
- 3
Preview live
The preview panel shows your gradient exactly as it will render in a browser, updating with every change you make.
- 4
Copy the CSS
Copy the generated background line and paste it into your stylesheet. It is standard CSS that works in every modern browser.
Frequently asked questions
How do I create a CSS gradient?
What is the difference between a linear and a radial gradient?
What are color stops?
How do I use the gradient in my project?
Is my data uploaded to a server?
Related tools
Keep going with these handy tools