CSS Noise Overlay Generator

Copy-paste CSS that adds film grain over any section. No image files needed.

How it works

Gives copy-paste CSS that lays film grain over any section, using an inline SVG so no image file is needed. Pick opacity and a blend mode.

  1. Set grain and blend.
  2. Copy the CSS.
  3. Add the grain class.

Worked example

Add class="grain" to a section. The ::after layer covers it and ignores the mouse, so buttons still work.

Good to know

Common questions

What does frequency do?
Higher gives finer grain. Lower gives bigger blotches.
Why does it look different in another browser?
The texture is drawn by the browser filter, so tiny differences are normal.
Will it repeat with seams?
The tile is made to repeat without visible seams.
Does it slow the page?
A small tile is cheap. A huge tile or many layers can slow old phones.

More in Design.