About this tool
Design a gradient visually: choose linear, radial or conic, set the angle or center, and add up to ten color stops. The CSS updates live with a solid fallback color included. You can also save the gradient as a PNG at any size for slides or wallpapers.
How to use CSS Gradient Generator
- Choose the gradient type.
- Adjust the angle or center point.
- Edit, add or remove color stops.
- Copy the CSS or download a PNG.
Frequently asked questions
Why does the CSS include two background lines?
The first is a solid color for very old browsers or tools that ignore gradients. Browsers that support gradients use the second line.
How do I make a hard edge between colors?
Put two stops at the same position. The color changes instantly there instead of blending.