Skip to content
Jellykit

CSS Noise Generator

Add film-like grain to any background with one CSS rule: an SVG noise filter packed into a short data URI.

  • Runs on your device
Loading tool

About CSS Noise Generator

Flat color can look harsh on a large screen; a little grain softens it. Adjust the fineness, detail and strength of the noise and see it over your surface color, then copy a rule that needs no image file and no extra request.

The noise is an SVG turbulence filter written into a data URI of a few hundred bytes. The browser draws it, so it stays sharp on high-density screens, and the blend mode decides how it mixes with the color underneath.

How it works

  1. Your settings become an SVG with one feTurbulence filter. Its stitchTiles option makes the noise wrap at the edges, so the tile repeats without a visible seam.
  2. Only the characters a CSS url() cannot hold (such as <, > and #) are percent-encoded, which keeps the data URI much shorter than Base64 would.
  3. background-blend-mode mixes the grain with the background color in the same rule. The settings are kept in the page address, so you can bookmark or share them.

Questions

How do I put grain over a gradient or photo?

Copy the data URI and list it first in background-image, before your gradient or image, separated by a comma. Blend modes then apply between those layers.

Will the same settings look identical everywhere?

Very close. The seed fixes the random pattern, and Chrome, Edge, Safari and Firefox all implement the same turbulence algorithm, but each browser renders filters with its own graphics code, so tiny differences in tone are possible.

Does it slow the page down?

The browser renders the tile once and repeats it, which is cheap. Very many detail layers on a large tile take longer to draw the first time, so keep detail low for big areas.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.