CSS Gradient Generator
Generate CSS gradient code instantly with a visual editor.
Preview
CSS Code
background: linear-gradient(to bottom right, #6366f1 0%, #ec4899 100%);
What is a CSS Gradient?
CSS gradients are smooth transitions between two or more colors, rendered directly in the browser without images. They are used for backgrounds, borders, and UI effects.
Types of CSS Gradients
Linear Gradient
Transitions colors along a straight line at a specified angle or direction. Defined with linear-gradient().
Radial Gradient
Transitions colors radiating outward from a center point in a circular or elliptical shape. Defined with radial-gradient().
Conic Gradient
Transitions colors rotating around a center point, like a pie chart. Defined with conic-gradient().
How to Use the CSS Gradient Generator
Select a gradient type (Linear, Radial, Conic), adjust the direction or angle, add or remove color stops, and copy the generated CSS code.
CSS Gradient Tips
Use rgba() or hex with alpha (#ff000080) for transparent gradients. Layer multiple gradients using comma-separated backgrounds. Conic gradients are supported in all modern browsers.