CSS Gradient Generator

Build a linear or radial CSS gradient with two or three colors, set the angle, preview it live and copy the ready-made CSS. Free, no sign-up, in your browser.

Generated CSS

        

Linear vs radial gradients

A gradient is a smooth blend between two or more colors, rendered natively by CSS – no image required, so it stays razor-sharp and weighs nothing.

Adding a third color stop creates richer, multi-tone blends. Pick colors that sit near each other on the wheel for a subtle look, or opposite for bold contrast – our color tools can help you choose.

How to use the CSS

Copy the generated rule and apply it as an element's background:

background: linear-gradient(135deg, #3b5bdb, #e64980);

Gradients work on any element that accepts a background, including buttons, cards and hero sections, and are supported by all modern browsers. Everything here is generated locally in your browser.

FAQ

Linear or radial – which should I use?

Linear for directional blends (backgrounds, buttons); radial for spotlight or centre-out effects. The tool lets you switch instantly and preview both.

Do gradients work in all browsers?

Yes – linear-gradient() and radial-gradient() are supported by all current browsers without prefixes.

Is it free?

Completely free, no sign-up, and it runs entirely in your browser.