CSS Gradient Generator
Create linear and radial CSS gradients with a visual editor. Copy the generated CSS code for your projects.
Embed this toolPresets
Live Preview
Generated CSS
background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);Advertisement
About CSS Gradients
CSS gradients let you display smooth transitions between two or more specified colors. Instead of using an image, you can create gradient backgrounds directly in CSS, which reduces HTTP requests and keeps your markup clean.
Linear gradients flow in a straight line and are defined by an angle or direction. Common angles include to right (90deg), to bottom (180deg), and custom degrees.
Radial gradients spread outward from a central point. You can control the shape (circle or ellipse) and size to create spotlight and vignette effects.
Color stops define where each color starts and ends along the gradient line. By adding more stops, you can create multi-color bands, rainbow effects, and complex backgrounds without images.