CSS Gradient Generator
Design & copy CSS gradients
FreeNo sign-upNothing uploaded
Field guide
About the CSS Gradient Generator
Create smooth gradient backgrounds for buttons, hero sections and cards. Pick colours and angles, preview the result and copy ready-to-use CSS.
- Choose your colours.
- Set the type and angle.
- Copy the CSS.
Questions
Frequently asked
Do CSS gradients work in all browsers?
Yes, linear-gradient and radial-gradient are supported by every modern browser.
Are gradients better than images?
Usually yes: they are tiny, scale to any size and don't need an extra download.
Can I use more than two colours?
CSS supports any number of colour stops.
Is what I type sent to a server?
No. The tool runs entirely in your browser and there's no server behind it, so what you type never leaves your device and nothing is stored. You can check: it keeps working if you go offline after the page has loaded.
More from the Design & Colour drawer
Other tools kept in this drawer, plus a few favourites from the bench.
Color Picker HEX, RGB, HSL, CMYK & shades Color Converter HEX ⇄ RGB ⇄ HSL Contrast Checker WCAG accessibility contrast Box Shadow Generator Box-shadow & glassmorphism CSS CSS Animation Generator Keyframe animations + CSS SVG Pattern Generator CSS background patterns, seamless Blob & Wave Generator Organic SVG shapes Font Pairing Google Font combinations Favicon Generator Emoji or letter → favicon PDF to Word Exact layout, editable DOCX