CSS Gradient Generator
Design a gradient visually and copy the CSS. Linear and radial, unlimited color stops, live full-width preview.
%
Generated CSS
Presets
About the gradient generator
Writing gradient CSS by hand means editing a string and reloading until it looks right. This generator flips that around: you adjust the angle, drag color stops along the bar and watch the preview update in real time, then copy a single line of CSS when you are happy. The output uses standard `linear-gradient` and `radial-gradient` syntax with no vendor prefixes, which every browser released in the last decade supports natively.
How to use the gradient generator
- Choose linear or radial as the gradient type.
- For a linear gradient, set the angle with the dial or type an exact degree value.
- Click the gradient bar to add a color stop, drag a stop to move it, and double-click a stop to remove it.
- Copy the generated CSS and paste it into your stylesheet as a background value.