What Is a Mesh Gradient Generator?
A mesh gradient blends multiple color stops across a two-dimensional plane, producing smooth, organic transitions that linear and radial gradients cannot achieve. They are a staple of modern UI design, hero sections, and branding materials because they convey depth and warmth without relying on photography or illustration.
This tool lets you define color control points on a canvas and instantly preview the resulting mesh. Adjust hue, saturation, and position in real time, then export the result as CSS or a downloadable image. Everything runs in your browser โ no uploads, no accounts, no watermarks.
How to Use This Tool
- Choose your color stops โ Start from four points or a preset; click + Add for another point. Each point gets its own colour picker and size slider. Three to five points look most natural.
- Adjust positions and colors โ Drag control points to shift the blend zones. Fine-tune each colour with its picker. The preview updates live.
- Refine the gradient feel โ Experiment with spacing โ clustered points create sharper transitions, while spread-out points yield softer washes. Change the background colour to check how the mesh sits on your page.
- Export your gradient โ Copy the generated CSS for use in stylesheets, or download the gradient as a high-resolution PNG for use in design tools like Figma or Canva.
Worked example: what the CSS does, and how to animate it
On October 12, 2026 we copied the tool's CSS and tested gradient animation in Chromium 141.
| Test | Result |
|---|---|
| What the CSS is | 4 radial-gradient() layers (one per point) over a background colour, plus filter: blur(40px) on a layer extended 40 px past each edge |
Transition background-image between two gradients over 2 s | no in-between frames: at 1 s it had already jumped to the end value |
Same move with a registered @property --x (percentage) used in the gradient | animates: --x was 49.99% at the halfway point |
| Clicking the preview | does not add a point; use + Add (points are dragged by their markers) |
- Gradients do not tween on their own. Browsers treat
background-imageas non-animatable, so a transition or keyframes between two meshes swaps them instantly. To animate, register the positions or colours as typed custom properties with@propertyand transition those; MDN's compatibility data shows support in Chrome and Edge 85+, Safari 16.4+ and Firefox 128+. - The blur is what makes it a mesh. Four overlapping radial gradients alone show soft circles; the 40 px blur (adjustable 0โ80 px with the first slider) melts them together. Keep the parent's
overflow: hiddenfrom the copied CSS, or the blurred edge spills outside the box. - Animate opacity or transform for cheap motion. Blur is repainted when anything inside the layer changes; moving the whole layer with
transformkeeps the work on the compositor. - Controls. Each point has a colour picker, a size slider (20โ100%) and a draggable marker; + Add and โ add or remove points, four presets and Randomize start a design, and the PNG export renders 1920 ร 1080.
Sources
Checked on .
Related tools
- If you'd rather start from a palette than drag points, the CSS Mesh from Palette tool takes your 4-6 color set and generates the mesh declaration in one click.
Frequently Asked Questions
๐ Learn More
Related Article The Complete Guide to CSS Gradients โ Related Article 26 Free CSS Generators & Visual Editors โBuilt by Derek Giordano ยท Part of Ultimate Design Tools