CSS Gradient Generator
Edit the colors and direction. The preview updates live and the CSS code stays ready to copy.
From
To
135°
CSS
background: linear-gradient(135deg, #3b82f6, #ec4899);
How it works
We assemble a standard CSS linear-gradient or radial-gradient declaration from your color stops and angle. The CSS works in every modern browser without a vendor prefix.
Frequently asked
- Linear or radial?
- Linear for backgrounds, headers, buttons (most common). Radial for vignettes, spotlights, decorative dots. Conic gradients are now supported too but rarer.
- How many color stops should I use?
- Two for clean modern gradients. Three or more for sunset / mesh-style backgrounds, but watch for visual banding on subtle transitions.
- Why does my gradient look banded?
- Banding happens when colors are too similar over a long distance. Add an intermediate stop or use slightly more contrast.
Other generators
- Stopwatch
- Password Generator
- QR Code Generator
- Hex to RGB Converter
- Barcode Generator
- Base64 Encoder & Decoder
- RGB to Hex Converter
- Hash Generator
- Lorem Ipsum Generator
- Random Word Generator
- Random Quote Generator
- Username Generator
- UUID Generator
- URL Encoder & Decoder
- Color Palette Generator
- Roman Numeral Converter
- Slug Generator
- Number to Words Converter
Popular calculators
Share
Popular converters
- Centimeters to incheslength
- Kilograms to poundsmass
- Millimeters to incheslength
- Pounds to kilogramsmass
- Celsius to fahrenheittemperature
- Kilometers to mileslength
- Inches to centimeterslength
- Meters to feetlength
- Fahrenheit to celsiustemperature
- Inches to feetlength
- Inches to millimeterslength
- Liters to US gallonsvolume