CSS Gradient Generator
Create linear, radial and conic CSS gradients visually with multiple color stops, then copy the CSS code.
Tool
Was this tool useful?
About this tool
About CSS Gradient Generator
Design smooth backgrounds without guessing code. Add color stops, change the angle and see the result live.
How it works
Output: background: linear-gradient(angle, color stop%, …). Modern browsers need no prefixes.
Example
linear-gradient(135deg, #6d28d9 0%, #22c55e 100%) gives a purple-to-green diagonal.
How to use this tool
- Pick the gradient type and angle.
- Add, move or remove color stops.
- Copy the CSS background code.
Frequently asked questions
Can I use transparent colors?
Yes, set a color’s opacity below 100% to create fades.
Do I need -webkit- prefixes?
No, all modern browsers support unprefixed gradients.
Does the CSS Gradient Generator send my data to a server?
No. The CSS Gradient Generator runs entirely in your browser using JavaScript, so tokens, code and data you paste stay on your device. You can even use it offline once the page has loaded.