Build linear, radial, and mesh gradients with live preview.
background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
💡 Mesh gradients are faked with stacked radial-gradient layers — each color fades to transparent over a base background-color. That works in every modern browser without images, SVG, or JavaScript.
Hand-writing gradient syntax is fiddly — commas, angles, color-stop positions, vendor quirks. This generator gives you a live canvas for linear, radial, and mesh gradients, then emits clean, copy-paste-ready CSS. Everything renders in your browser with plain CSS: no libraries, no accounts, nothing uploaded.
Linear sweeps color along an angle (0° points up, 90° points right) and is the workhorse for buttons and hero banners. Radial radiates from a position — a circle or ellipse — and suits glows and vignettes. Mesh is the trendy soft, multi-color blur seen in modern landing pages; browsers have no native mesh gradient, so this tool stacks four radial-gradient layers that each fade to transparent over a base color. The result looks like a mesh but is pure, widely-supported CSS.
Two stops is a fade; three or more is a design. Keep adjacent stops in the same hue family for smooth blends — jumping straight from, say, blue to yellow passes through muddy gray in RGB interpolation. The Random palette button only picks pastel pairs and triples that blend cleanly, which is a good starting point. Move a stop's position toward its neighbor for a harder edge: two stops at the same percentage create a crisp stripe with zero blending.
Gradients are cheap to render, but huge animated gradients can still tax low-end GPUs — prefer static backgrounds on full-screen sections. For text over a mesh or radial glow, add a subtle overlay or check contrast, since luminance varies across the gradient. And when a design calls for a background image plus a tint, remember you can stack a linear-gradient over url(...) in the same background shorthand instead of editing the image itself.
More tools you might find useful
Tune box-shadow and glassmorphism visually, preview live, copy the CSS.
Turn an image into 16x16, 32x32 favicons and an Apple Touch Icon.
Re-encode JPG/WebP at 0-100 quality, fully offline, with real size stats.
Resize and compress images with live file-size preview.