Skip to content
OddsockLocal
Local
Grain frequency0.65
Seed7
Opacity (%)20
Grain frequency0.65
Seed7
Opacity (%)20
ReadyRuns in this browser. Nothing is uploaded.

How to use

  1. Set the grain frequency. Higher is finer.
  2. Change the seed if the tile repeat is visible.
  3. Set opacity. Stay low when text sits on the same element.
  4. Copy the declaration into background-image.

What is CSS noise?

A flat panel looks cheaper than it should, and a photographic noise PNG is a second request the page does not need. CSS noise writes a background-image whose URL is a small SVG, 160 by 160, with a fractal-noise filter and a grayscale color matrix. Frequency, seed, and opacity are baked into that URL. The opening values are frequency 0.65, seed 7, and opacity 20%, which reads as fine grit rather than a storm.

Read more

Because the SVG tiles, you will see a repeat if the frequency is very low or the panel is huge and the seed pattern is obvious. Change the seed to get a different draw of the same settings. Opacity is the amount of grit over whatever sits under background-image, so a 100% layer can muddy type that is painted on the same element. Put the noise on a pseudo-element if the text must stay crisp.

This is not the noise-texture page. That one exports a PNG at a pixel size you choose. This one is a CSS declaration you paste, and it stays sharp because the filter is redrawn with the element.

Use cases

  • A hero panel gets a little grit so a flat color is less plastic.
  • A design system documents one noise declaration instead of shipping a PNG.
  • A print-like card uses a low opacity so body text still clears contrast.
  • Two sections share a frequency but different seeds so the grain does not line up.
  • A prototype tries a high frequency for fine film grain versus a low one for clouds.

Fine grit at the opening settings

Frequency 0.65, seed 7, opacity 20%.

A background-image URL containing an SVG filter with fractalNoise, baseFrequency 0.65, three octaves, seed 7, and a rect at opacity 0.2.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

The filter is a 160 pixel tile. Lower the frequency or change the seed. A very large empty panel shows the repeat more than a small card does.