CSS Gradient Generator
Create custom CSS gradients with real-time preview and ready-to-use code
Choose your colors
Gradient direction
Preset gradients
Palette generator
Preview & CSS Code
CSS
๐ 100% private: your data stays on your device
What is a CSS gradient?
A CSS gradient is a smooth transition between two or more colors. CSS gradients allow you to create sophisticated backgrounds without using images, which improves your website's performance. They are supported by all modern browsers and offer unlimited creative flexibility for your designs.
Features
All gradient types
Create linear, radial, or conic gradients with multiple customizable color stops.
Real-time preview
Instantly visualize your changes with different preview modes (square, wide, circle, text).
Ready-to-use CSS code
Copy the generated CSS code with browser prefixes for maximum compatibility.
100% private & secure
All processing happens in your browser. Your data never leaves your device.
CSS gradient types
Linear
Color transition along a straight line, with angle and direction control.
Radial
Circular or elliptical gradient radiating from a central point outward.
Conic
Cone-shaped gradient with colors rotating around a central point.
How to create a CSS gradient?
Choose the type
Select between linear, radial, or conic gradient based on your needs.
Add colors
Add as many colors as you want and adjust their positions.
Customize
Adjust the angle, direction, or center position depending on the gradient type.
Copy the code
Copy the generated CSS code and use it directly in your project.
Frequently asked questions
Is this gradient generator free?
Yes, 100% free and unlimited. No registration required, create as many gradients as you want.
Are CSS gradients compatible with all browsers?
Linear and radial gradients are supported by all modern browsers (Chrome, Firefox, Safari, Edge). Conic gradients have been supported since 2019. For older browsers, use the browser prefixes.
Can I use more than 2 colors?
Yes! You can add as many colors as you want. Click "Add color" to create more complex gradients.
How do I use the generated CSS code?
Simply copy the code and paste it into your CSS element's "background" property. The code includes browser prefixes if the option is enabled.
Can I download the gradient as an image?
Yes, click "Download PNG" to get a high-resolution image (800x800 pixels) of your gradient.