CSS Gradient Generator
Create linear or radial gradients with up to 4 colors and copy the ready-to-use CSS code.
How to create a CSS gradient online
Choose the gradient type
Select linear or radial, depending on the effect you want to achieve.
Add and adjust the colors
Add up to 4 colors, change their order, and adjust the angle or position of the gradient.
Copy the CSS code
Press the copy button and paste the code directly into your stylesheet.
Frequently asked questions about the gradient generator
Gradients are a simple way to add depth and style to any web design. This tool generates the exact CSS code you need, without having to write it by hand.
What types of gradients can I create?
+
You can create linear gradients (at any angle) and radial gradients.
How many colors can I use?
+
You can combine between 2 and 4 colors in the same gradient.
Does the code work in all browsers?
+
Yes, it's generated with standard CSS syntax, compatible with all modern browsers.
Do I need to install any program?
+
No, there's no need to install anything. It works directly from your browser.
Is it free?
+
Yes, this tool is completely free.
Can I use the gradient as an image background?
+
The generated code is pure CSS; if you need an image, you can take a screenshot of the preview.
Explore colors by family
More than 469 named colors, with their HEX, RGB, HSL and CMYK codes, organized into 12 color families.