Skip to content
siter.io home

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.

    1. Seed 256

      Type 256 into Seed at 5 color stops and you get this exact gradient back.

    2. Base color

      One background-color sits under everything and shows wherever the layers fade out.

    3. One layer per color

      3 to 6 radial-gradients, each solid at its center and fading to transparent.

    4. First line on top

      CSS paints the list bottom up, so the last line goes down first.

    How to make a mesh gradient.

    1. Pick a start

      Press Randomize, or type a seed to bring a gradient back.

    2. Move the colors

      Drag a handle or nudge it with the arrow keys. Undo steps back.

    3. Take it with you

      Copy the CSS, or download a PNG, WebP, JPEG or SVG.

    CSS or an image file.

    Where it goesUseWhy
    A page in a browserCopy CSSNo file, no request, sharp on any screen
    A site that needs an image fileWebPThe lightest raster file here. A browser that cannot write it saves a PNG and says so
    Email or a slide deckJPEGA fraction of the PNG's weight
    Every pixel keptPNGLossless, and much the heaviest
    A design you will resizeSVGThe same layers as vector gradients, in about 2 KB
    A share card1200 × 630The preview takes that shape, so you can compose for it

    Mesh gradient questions.

    All free tools
    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.

    Start with the design
    you already have.

    Install the Figma plugin, send a frame across, and finish it on the canvas.