CSS Noise Generator

Add a subtle film-grain texture to any background with a few lines of CSS. The grain is an SVG turbulence filter embedded in the CSS as a data URL, usually under 1 KB, so there is no image file to load. Set the grain size, detail and strength, choose grey or coloured grain, and copy it as a background or as an overlay that sits on top of gradients and colours you already have.

Larger tiles repeat less visibly

Off gives coloured speckles

Download texture

px
px

To lay over photos or designs in Figma, Canva or Photoshop

Code
.noise {
  background-color: #1E293B;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

About 0.4 KB of CSS, no image request.

Generating runs in your browser. What you type never leaves this device.

Features

  • SVG feTurbulence noise embedded in CSS: no image request

  • Grain size, detail (octaves), strength, tile size and a new-pattern button

  • Grey or coloured grain

  • Two snippets: a background, or a ::after overlay for any existing background

  • PNG and SVG downloads too

Why add grain

Grainy gradients

The popular textured-gradient look for hero sections and cards.

Hiding banding

Grain breaks up the visible steps that smooth gradients show on some screens.

Warmth and texture

A paper-like feel on flat colour backgrounds.

Using the grain

Background or overlay?

  • Background: sets a colour and the grain together. Simple, for flat colour sections.
  • Overlay: a ::after layer with only the grain, behind the element's content but above its background. Use it on top of gradients or images.

Settings

  • Grain size: lower values give larger, softer blotches; higher values give fine film grain.
  • Detail adds finer noise layers on top; 2 to 4 is plenty.
  • Strength 10 to 30% keeps the grain subtle. On dark backgrounds, less is needed.

Related tools

CSS Noise Generator - FAQ