CSS Gradient Generator
Free CSS gradient generator for linear and radial gradients with live preview and copy-ready code.
135°
Presets
CSS code
Create Beautiful CSS Gradients
Design a smooth colour gradient for website backgrounds, buttons and banners without writing code by hand. Choose linear or radial, set the angle, pick up to four colours and adjust where each one starts. The preview updates instantly, and the CSS includes a solid fallback colour for very old browsers.
Linear vs Radial
- Linear gradients blend colours along a straight line at any angle — great for headers and buttons.
- Radial gradients spread from the centre outwards — good for spotlights and soft backgrounds.
Convert colour values with the HEX to RGB Converter and minify your stylesheet with the CSS Minifier.
Frequently Asked Questions
Do CSS gradients work in all browsers?
Yes. linear-gradient and radial-gradient are supported by all modern browsers without prefixes.
Are gradients better than background images?
Usually yes for simple colour blends: they load instantly, scale to any size and keep pages lighter.
