DEVELOPER TOOL

CSS Gradient Generator

Build a linear gradient visually and copy the ready-to-use CSS.

About this tool

Pick a start color, end color, and angle to build a CSS linear gradient visually, with a live preview. Copy the generated background declaration straight into your stylesheet.

Frequently asked questions

What does the angle mean?
It follows the CSS linear-gradient() convention: 0deg points upward (bottom to top), 90deg points to the right, 180deg points downward, matching how the property behaves in real CSS.
Can I add more than two colors?
This generator focuses on clean two-color gradients, the most common case. For more color stops, add extra comma-separated color/position pairs to the generated CSS by hand.
Does this work in all browsers?
linear-gradient() is supported in all modern browsers without any vendor prefixes needed.