Design tools

CSS Noise Generator

CSS Noise Generator

Grainy noise backgrounds in pure CSS with an inline SVG filter.

About this tool

About CSS Noise Generator

Grainy gradients and noisy textures are everywhere in current web design, and you don't need an image file to make them. This generator writes CSS that embeds an SVG feTurbulence filter as a data URI, usually only a few hundred bytes, so the grain is drawn by the browser itself and scales cleanly to any screen. Adjust the base frequency for coarse or fine grain, the number of octaves for more detail, the fractal or turbulence algorithm, opacity, tile size and seed, and choose monochrome or coloured noise. Add a background colour to get a finished surface, or leave it off and layer the noise over your own gradient by adding it as the first background-image. The live preview repeats the tile exactly as your CSS will. If you prefer a fixed bitmap, switch to film grain and download a PNG tile instead. All of it runs in your browser with nothing uploaded.

Built and maintained by Abhi JainUpdated

How to Add Noise with CSS

  1. 1

    Tune the noise

    Adjust Frequency, Octaves, Algorithm and Opacity until the grain looks right.

  2. 2

    Choose the background

    Keep a background colour, or untick it to layer the noise over your own gradient.

  3. 3

    Copy the CSS

    Copy the CSS tab into your stylesheet, or download the SVG tile.

CSS Noise Generator: questions and answers

How do I make a grainy gradient in CSS?

Stack the noise on top of a gradient: background: url("data:image/svg+xml,…"), linear-gradient(135deg, #5b3df5, #ff9ccf); Keep the noise opacity low, around 10–30%.

Does feTurbulence slow pages down?

Small repeating tiles are cheap. Very large tiles or animating the filter can cost performance on low-end devices, so keep the tile around 100–300 px.

Why use a data URI instead of a file?

It saves a network request and keeps the texture in your CSS. The SVG is tiny, so inlining it costs almost nothing.

Can I make coloured noise?

Yes. Untick Monochrome to keep the colour channels of the turbulence, which gives a rainbow-speckled grain.

More Noise Texture Generator presets