Gradient Generator
Design stunning CSS gradients with our easy visual editor.
Visual Depth
Add depth to buttons, cards and page backgrounds.
Two colours
Pick a start and an end colour, for example your brand colours.
Logic Presets
Switch between a straight (linear) and a circular (radial) gradient.
CSS Gradient Generator FAQ
Linear or radial?
A linear gradient changes colour along a straight line, which suits backgrounds and buttons. A radial gradient spreads out from the centre, like a spotlight.
How do I use the CSS?
Copy the CSS line and paste it into the style of any element, for example as its background.
How to use the Gradient Generator
- Pick two colours.
- Choose linear or radial, and set the angle.
- Copy the CSS code.
Questions and answers
Is it free?
Yes. The tool is free to use and needs no account or sign-up.
Where do I use the code?
Paste it as the value of the CSS background or background-image property.
More free tools
Live Code Tester
Write HTML, CSS and JavaScript and see the result live in a safe sandbox.
Open toolColor Contrast Checker
Check the contrast ratio of a text and background colour, with pass or fail for WCAG 2.2 AA and AAA.
Open toolAge Calculator
Find your exact age in years, months and days.
Open toolDays Between Dates
Count the days and weeks between two dates.
Open toolNeed a custom tool or app for your business? See our web and software development and AI automation services.