Mesh gradient generator
Drag the colors where you want them, then take the CSS or a PNG. It runs in your browser, so nothing is uploaded anywhere.
Drag a handle to move that color. With one focused, the arrow keys nudge it by 1%, and Shift with an arrow key by 10%.
Rich color, no image file.
-
Lighter than any image
Five colors come to about 400 bytes of CSS, with no request. As a PNG, the same gradient can top 2 MB.
-
Fits the shape you pick
Positions are percentages, so the colors stretch with the box. The preview takes the shape of your image size.
-
Grain that stays on export
Slide Grain from Off to 30% for a textured finish. The CSS and every image file keep it.
A mesh is stacked layers.
CSS has no mesh primitive, so each color is its own radial-gradient over a base.
Seed 256
Type 256 into Seed at 5 color stops and you get this exact gradient back.
Base color
One background-color sits under everything and shows wherever the layers fade out.
One layer per color
3 to 6 radial-gradients, each solid at its center and fading to transparent.
First line on top
CSS paints the list bottom up, so the last line goes down first.
How to make a mesh gradient.
-
Pick a start
Press Randomize, or type a seed to bring a gradient back.
-
Move the colors
Drag a handle or nudge it with the arrow keys. Undo steps back.
-
Take it with you
Copy the CSS, or download a PNG, WebP, JPEG or SVG.
CSS or an image file.
| Where it goes | Use | Why |
|---|---|---|
| A page in a browser | Copy CSS | No file, no request, sharp on any screen |
| A site that needs an image file | WebP | The lightest raster file here. A browser that cannot write it saves a PNG and says so |
| Email or a slide deck | JPEG | A fraction of the PNG's weight |
| Every pixel kept | PNG | Lossless, and much the heaviest |
| A design you will resize | SVG | The same layers as vector gradients, in about 2 KB |
| A share card | 1200 × 630 | The preview takes that shape, so you can compose for it |
Mesh gradient questions.
Is a CSS mesh gradient a real mesh?
No: a real gradient mesh, as in Illustrator, is a grid of color control points, and this is a base color under stacked radial-gradient layers. For a plain linear or radial ramp, use the gradient maker.
Which layer paints on top?
The first one in the list, the reverse of canvas, where the last thing drawn wins. To bring a color forward, move its line up.
Can I put text on a mesh gradient?
Yes, if the worst pixel passes: test the darkest and lightest spots with the contrast checker, at 4.5 to 1 for body text and 3 to 1 for large. If one fails, put a solid panel behind the text.
How do I stop banding?
Raise Grain a few percent. The flat bands break up, and the PNG can more than double, so stop at the lowest value that looks smooth.
How do I get a gradient back later?
Keep its seed: typed back at the same stop count, it rebuilds an untouched result. A hand edit clears the seed, so use Copy link, which holds the colors, positions, spread, grain and size.
Is anything uploaded?
No: your browser generates and exports the gradient and the tool makes no request, so an open tab keeps working offline. A shared link holds its colors in the address, though, and the page's analytics record it.
More free tools
- HEX to RGB Paste a hex color, get RGB, HSL and CSS you can copy.
- RGB to HEX The other direction, with the same converter underneath.
- Gradient maker Linear and radial gradients. Take it as a PNG, as hex colors, or as CSS.
- Color contrast checker WCAG ratios for any pair, and the nearest color that passes when it fails.
- Palette from an image Pull the dominant colors out of a photo or a screenshot, in the browser.
- Random color One color or a whole palette, with the ones you like locked.
Start with the design
you already have.
Install the Figma plugin, send a frame across, and finish it on the canvas.