CSS Gradient Generator
Design linear and radial CSS gradients visually online, adjust colours, stops and angle, then copy the generated CSS background code.
Runs in your browser · Nothing uploadedFree · No sign-up
Something not working, or missing a feature? Send feedback
About the CSS Gradient Generator
The CSS Gradient Generator lets you design linear, radial and conic gradients visually by moving colour stops and angles, then copy CSS with a solid fallback colour.
Everything is generated in your browser; nothing you enter is uploaded, and anything random comes from a cryptographically secure source.
How to use the CSS Gradient Generator
- Choose linear, radial or conic.
- Add colour stops and drag their positions; set the angle.
- Copy the generated CSS.
Common mistakes
- Banding in subtle gradients. Two similar colours over a large area can show visible stripes. Add a middle stop or a little more contrast between the colours.
- Grey middle tones. Blending complementary colours, such as blue and orange, passes through grey. Add a brighter colour stop in the middle to keep the gradient vivid.
- Text on gradients. Text contrast changes across a gradient. Check the contrast at the lightest and the darkest part behind the text.
Works well with the CSS Gradient Generator
- Color Converter: convert stop colours between HEX, RGB and HSL.
- CSS Formatter: format the stylesheet you paste the gradient into.
- CSS Minifier: minify the final CSS.
Frequently asked questions
Why is there a plain background colour too?
It is a fallback for very old browsers and the colour shown before the gradient renders.
Can gradients be animated?
Browsers cannot transition between gradients directly, but you can animate background-position or use CSS custom properties with @property.
What do linear, radial and conic mean?
Linear blends along a line at an angle, radial blends outward from a centre, and conic sweeps around a centre like a colour wheel.
Do I need vendor prefixes?
No. Unprefixed gradient syntax works in all current browsers.
Guides and tutorials
Related tools
Invoice Generator
Create professional invoices free: GST (CGST, SGST, IGST), VAT, 40+ currencies, logo, signature and UPI QR code. Download a PDF, no sign-up, nothing uploaded.
Email Signature Generator
Create a professional email signature from ready-made templates, or paste your own HTML. Copy it into Gmail, Outlook or Apple Mail, or download the HTML.
Password Generator
Generate strong, random passwords online with your browser's cryptographically secure generator. Choose length and character sets; check the strength meter.
UUID Generator
Generate UUID v4 and time-ordered UUID v7 identifiers (GUIDs) in bulk, with uppercase, hyphen and brace options, using a cryptographically secure generator.
Large CSV Generator
Generate realistic fake test data (names, emails, phones, companies, addresses, IDs and dates) and download it as CSV or Excel (.xlsx). Free, in your browser.
QR Code Generator
Create free QR codes online for websites and text, with custom size, colours and error correction. Live preview, and download as PNG or SVG.