Mesh Gradient Generator

Randomly generate layered radial mesh gradients, preview, and copy the CSS.
Pick a starting point, then customize colors.
6
6–14 layers look natural; try 1–24 to adjust density.
Add saturation and blur for a softer blend.

Why use this Mesh Gradient Generator?

This tool builds organic mesh gradients with pure CSS—no images required. Compared with SVG or Canvas meshes, it offers:

  1. Faster rendering: CSS gradients stay lightweight, even with animation.
  2. Responsive by default: Adapts cleanly to any screen size or DPR.
  3. Easy embedding: Drop the CSS anywhere without extra assets.
  4. Animation-ready: Layered gradients respond well to keyframes or transitions.

How it works

The generator stacks multiple radial gradients and finishes with a linear base layer. Tweak these controls to shape your mesh:

Colors

Choose from curated palettes or dial in custom colors to match your brand.

Layers

Multiple radial layers stack with randomized blend modes to add depth and texture.

Effects

Optional effects soften transitions; scale hides blur edges so the mesh stays clean. Fine-tune everything in the editor.

Randomize

Tap Randomize until you land on a mesh that fits your layout.

Copy CSS or Open in Editor

Copy production-ready CSS instantly, or jump into the editor to refine, export, and share.

References

This Hacker News post introduces a project that generates SVG images. This generator doesn't replicate the original project's algorithm, but achieves a similar effect by manipulating the background properties of a single container.