CSS Gradient Generator
Create linear, radial and conic CSS gradients with multiple colour stops, opacity and angle controls, a live preview and copy-ready background CSS.
Create linear, radial and conic CSS gradients with multiple colour stops, opacity and angle controls, a live preview and copy-ready background CSS.
CSS Gradient Generator builds linear, radial and conic gradients visually. Add up to ten colour stops, set each colour with a picker or HEX code, adjust its opacity and position, and change the angle, shape or centre point while a live preview updates.
The tool writes standard CSS: a solid background colour as a fallback, followed by a background-image declaration with your gradient. Colours with transparency are written as rgba() values. A random button creates a fresh, valid gradient whenever you need inspiration.
Linear, radial and conic gradients — all part of standard CSS and supported by current browsers.
Fully opaque stops use HEX values; stops below 100% opacity are written as rgba() with the alpha you chose.
background: sets a solid fallback colour, then background-image: applies the gradient. Browsers that support gradients show the gradient.
Each position (0–100%) sets where that colour sits along the gradient. Stops are written in the order shown in the list.
Up to 10, and at least 2 are always kept so the gradient stays valid.
Yes. Reset restores the default linear gradient with its two original stops.