Free Online CSS Gradient Generator, Linear, Radial and Conic
Drag an angle, add colour stops, and read the finished background-image rule. Linear, radial and conic gradients are all here, with stop positions in per cent and a repeating option, and the preview updates on every move so you can see what the rule will actually paint.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Build a CSS Gradient
A few steps, and nothing is uploaded.
What to Know About CSS Gradients
Including the reason background-color will not take one.
background-color only takes a flat colour and will ignore linear-gradient() entirely. If you are using the background shorthand, the gradient goes in the image slot, and a shorthand that also sets a colour will overwrite any colour set earlier in the rule.
linear-gradient() and radial-gradient() have worked in every current browser for years. conic-gradient() is newer but is also unprefixed and widely supported, so a -webkit- copy would only make the rule longer.
Key Features & Capabilities
What this tool does, and what it deliberately does not.
About the CSS Gradient Generator
A CSS gradient is drawn by the browser rather than loaded as a file, which is why it scales cleanly, costs nothing to download and can be changed by editing one line. The syntax is not hard, but it is fiddly: the angle is measured from up rather than from right, the stop positions are optional until they are not, and radial gradients take a shape and an extent keyword before the colours start.
This page puts the controls next to the result. Choose linear, radial or conic, set the angle or the centre, then add as many colour stops as the design needs and drag each one into place. The preview panel is a real element with the real rule applied to it, so what you see is what the browser will paint, not an approximation drawn on a canvas.
The output is a plain declaration. It sets background-image, because that is the property a gradient belongs to, and it includes the units so that nothing is lost when you paste it into a stylesheet. Nothing is uploaded, nothing is minified behind your back, and the rule is the same length and shape as one you would have written by hand.
Frequently Asked Questions
Angles, stops, hard stops and browser support.
background-color accepts a single flat colour and silently ignores a gradient function. Put the value on background-image, or in the image slot of the background shorthand, and it will appear.