Generate CSS gradient code with an instant live preview
This tool generates ready CSS code for a linear or radial gradient, with control over the gradient's angle and two colors, and a live preview of the result before copying the code.
The resulting code is ready to paste directly into the background property inside your CSS file.
Gradient code is generated directly in your browser as you adjust the colors.
Watch the gradient update in real time as you tweak stops and angle.
Create as many CSS gradients as you like without an account.
The tool offers two types: linear gradient (linear-gradient) and radial gradient (radial-gradient).
Yes, a dedicated angle slider from 0 to 360 degrees appears when the linear type is chosen.
The current interface allows choosing only two colors to build the gradient.
No, the code is built entirely within your browser and no data is sent to any external server.
The resulting CSS code is copied by clicking the "Copy CSS Code" button, then pasted inside the background property of any element in your CSS file.