🔒 No upload — builds CSS in your browser

CSS Gradient Generator

Build a linear or radial CSS gradient with two or three colour stops, set colours and positions, watch the live preview and copy the finished CSS code.

Stop 1 position %
Stop 2 position %
Background preview
The code block contains three lines: a solid fallback colour, the -webkit- prefixed gradient and the standard gradient. Positions are clamped to 0-100% and written with at most one decimal; stops are sorted by position before output. Radial gradients are written as circle at 50% 50%, so the angle only applies to linear gradients.

How to Build a CSS Gradient

This generator writes the CSS you would otherwise type by hand. Choose linear or radial, set the angle for linear gradients, and give each colour stop a colour and a position between 0 and 100 percent. The preview box repaints on every change, so you see the result before you copy anything. The code block contains three lines: a solid fallback colour for browsers that ignore gradients, the -webkit- prefixed gradient for older WebKit engines, and the standard gradient property. Stops are sorted by position before they are written out, so the output is always valid CSS even if you enter the stops in a different order; positions are clamped to the 0-100% range and rounded to one decimal. The tool writes plain CSS declarations only — it does not generate Tailwind classes, handles, or SVG gradients.

More free tools

Free online utility tools. No signup. No tracking.

Impressum · Sitemap · Some links contain affiliate advertising