CSS Gradient Generator
Build linear and radial gradients visually and copy the CSS.
Angle90°
Color stops
#6366F10%
#EC4899100%
CSS
background: linear-gradient(90deg, #6366f1 0%, #ec4899 100%);
What is a CSS gradient?
CSS gradients let you display smooth transitions between two or more colors without using an image file. They render at any resolution and are defined entirely in CSS, making them ideal for backgrounds, buttons, headers, and decorative elements.
Linear vs radial gradients
- Linear | color transitions along a straight line at a given angle (0° is bottom-to-top, 90° is left-to-right).
- Radial | color transitions outward from a central point in a circle or ellipse.
Frequently asked questions
Can I add more than two color stops?
Yes | click Add Stop to add as many color stops as you need, and drag them to reposition.
Is the output valid CSS?
Yes. The copied code uses standard background shorthand that works in all modern browsers without vendor prefixes.
