Generate linear or radial CSS gradients with up to 8 color stops. Adjust angle and stop positions with a live preview, then copy the gradient CSS.
background: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);
CSS gradients create smooth color transitions without image assets. This generator produces standard linear-gradient() and radial-gradient() declarations that work in modern browsers and can be pasted directly into a stylesheet.
Linear gradients travel along an angle from one edge to another. Radial gradients radiate from a center point and are useful for highlights, badges, and backgrounds. Add up to eight stops and place each stop from 0% to 100%.
| Type | CSS function | Typical use |
|---|---|---|
| Linear | linear-gradient() | Hero backgrounds and banners |
| Radial | radial-gradient() | Glows, focus rings, and cards |
.hero {
background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
}
Choose a type, set an angle for linear gradients, tune each color and position, then copy the generated declaration. Stops are sorted by position before CSS is produced, so they can be edited in any order.
<div class="hero">Readable text needs sufficient contrast.</div>
Check text contrast after selecting vivid colors. Gradients are decorative; keep important content accessible with a solid fallback color.
This tool is provided for general informational and utility purposes only. Results may be inaccurate, incomplete, outdated, or contain errors. Always verify results before relying on or using them.
Some tools may use AI, automated processing, third-party services, or server-side processing. Do not rely on these tools as a substitute for professional advice.
Use at your own risk. BestToolOnline makes no guarantees regarding the accuracy, reliability, completeness, availability, or suitability of results, to the maximum extent permitted by applicable law.
See our Terms of Service and Privacy Policy for complete details.