How to use the CSS Gradient Generator
- Choose linear or radial.
- Set the angle and colors.
- Drag each color's position.
- Copy the CSS.
What does this tool do?
The generated CSS includes a solid background color first as a fallback, then the gradient. All modern browsers support CSS gradients without prefixes.
Why use it?
- Hero sections and buttons.
- No image files needed.
- Up to six color stops.
Example
background: linear-gradient(135deg, #2c48d6 0%, #b02a6b 100%);
Privacy
Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.
Last reviewed by the M2Toolkit team.