CSSMar 2, 2026 ยท Updated Oct 13, 2026 ยท 6 min read

CSS Noise Textures: Grain, Static & Organic Backgrounds

Create noise textures with CSS and SVG: grain overlays, static effects, organic backgrounds, and performance-friendly techniques for modern web design.

๐ŸŒซ๏ธ
Try the Noise Generator
Free, no signup
โ†’
DG
Derek Giordano
Designer & Developer
In this guide
01What Are Noise Textures?02SVG Filter Technique (Recommended)03CSS Gradient Noise (No SVG)04Worked Example: What Each Technique Puts on Screen05The Grain Overlay Pattern06Performance Considerations07Design Use Cases08Customizing Noise Appearance09Animated Noise Effects

What Are Noise Textures?

Noise textures are subtle, random visual patterns that add organic character to digital interfaces. In the physical world, every surface has texture โ€” paper has grain, concrete has speckle, fabric has weave. Flat digital backgrounds can feel sterile. Adding noise brings them to life.

Noise is used in film photography (grain), print design (halftone), and 3D rendering (Perlin noise). On the web, noise textures break up large solid-color areas, add depth to gradients, and create a premium, tactile feel.

SVG Filter Technique (Recommended)

The most versatile noise method uses an inline SVG filter with the feTurbulence element:

<svg style="position:fixed;width:0;height:0"> <filter id="noise"> <feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch" /> </filter> </svg>

Then apply it with CSS:

.noise-overlay::before { content: ''; position: fixed; inset: 0; filter: url(#noise); opacity: 0.05; pointer-events: none; z-index: 9999; }

baseFrequency controls the grain size โ€” higher values create finer grain. numOctaves adds detail layers โ€” more octaves create more complex patterns. stitchTiles ensures the pattern tiles seamlessly.

CSS Gradient Noise (No SVG)

You can approximate noise using tiny CSS gradients layered on top of each other. This technique doesn't require SVG but produces a coarser pattern:

โš  Warning
Animating width, height, top or left makes the browser redo layout, and usually paint, on every frame. Googleโ€™s web.dev animation guide recommends keeping animations to transform and opacity where you can, so they stay on the compositing stage; check with the Performance panel in your browserโ€™s dev tools.
background-image: repeating-radial-gradient( circle at 17% 32%, rgba(255,255,255,0.04) 0px, transparent 1px ), repeating-radial-gradient( circle at 62% 78%, rgba(255,255,255,0.03) 0px, transparent 1px ); background-size: 3px 3px, 4px 4px;

This creates a fine dot pattern, not noise. Measured in Chromium (below), the result repeats exactly every 12 pixels โ€” the least common multiple of the 3 px and 4 px tiles โ€” so on a large flat area the eye can pick out the grid. Use it only where a regular dot texture is the look you want.

Worked Example: What Each Technique Puts on Screen

We rendered the three techniques from this guide in Chromium 141 over a #0B0D17 background at 390ร—844 and read every pixel back (script and results in our test folder, October 13, 2026). Brightness is luma on a 0โ€“255 scale; the plain background reads 14.

TechniqueMeanPixel spread (SD)Repeats?
Inline SVG filter on a fixed ::before, 5% opacity17.21.31No visible repeat
Same filter as a 256 px data-URI tile, 5% opacity17.31.19Every 256 px (seamless with stitchTiles)
Two repeating radial gradients (3 px + 4 px)23.52.87Every 12 px, exactly
The SVG filter at full opacity (for reference)99.522.3โ€”

Three things follow. First, both SVG routes work and look alike, so the data-URI tile gives you the same grain without an inline <svg> in every page. Second, the full-opacity reading of about 99 shows that feTurbulence is not black-and-white: it fills all four channels (red, green, blue and alpha) with separate noise, as MDN describes it producing an image over the whole filter region, so the raw output is colored speckle. At 3โ€“6% opacity that tint is invisible, but for a strictly grey grain add <feColorMatrix type="saturate" values="0"/> after the turbulence. Third, every overlay lifts the background a little (14 โ†’ 17), so check text contrast with the overlay on, not off.

The Grain Overlay Pattern

The most common implementation pattern is a full-viewport overlay that sits on top of all content:

body::after { content: ''; position: fixed; inset: 0; background: url("data:image/svg+xml,...") repeat; opacity: 0.04; pointer-events: none; z-index: 9999; }

The overlay uses pointer-events: none so it doesn't block clicks, position: fixed so it covers the entire viewport even during scrolling, and a very low opacity (typically 3โ€“6%) so it's felt more than seen.

The Noise Generator tool creates these overlays with customizable grain size, opacity, and blend mode โ€” then gives you copy-ready CSS.

Performance Considerations

SVG filters with feTurbulence can be GPU-intensive, especially on mobile devices. The filter is computed per-pixel, and on high-DPI screens, that's a lot of pixels.

Optimization strategies:

Use a small, pre-rendered noise image (256ร—256 or 512ร—512 PNG with transparency) tiled with background-repeat instead of a live SVG filter. The tile can be the SVG itself as a data URI (about 400 bytes, no extra request), as in the measured example below.

Limit the noise overlay to specific sections rather than the entire viewport. A noise overlay on a hero section has minimal performance impact; a full-viewport overlay on a page with heavy animations can cause jank.

Measure before you optimize: record a scroll in the Performance panel with the overlay on and off. A tiled image is decoded once and then only composited, while a live filter: url(#noise) on a fixed full-screen element has to be produced by the filter, so on low-end phones the image route is the safer default.

Design Use Cases

Gradient enhancement: Noise prevents banding in CSS gradients โ€” the visible stepping between colors that occurs in smooth gradients, especially in dark color ranges.

Hero backgrounds: A solid or gradient hero section with a 3โ€“5% noise overlay feels more polished and intentional than a perfectly clean gradient.

Card surfaces: Very subtle noise on card backgrounds adds a paper-like texture that makes the interface feel tactile and premium.

Dark mode depth: In dark themes, noise adds perceived depth to surfaces that would otherwise look like flat black rectangles.

Vintage and analog aesthetics: Higher noise levels (8โ€“15% opacity) create a film grain or analog feel for retro-themed designs.

Customizing Noise Appearance

Grain size: Controlled by baseFrequency in SVG filters. Values between 0.5โ€“0.8 create fine grain suitable for backgrounds. Values below 0.3 create a cloud-like pattern.

Opacity: 2โ€“4% for subtle, barely-perceptible texture. 5โ€“8% for visible grain. 10โ€“15% for a strong analog feel.

Color: Most noise overlays use white noise (white dots at low opacity) on dark backgrounds and dark noise (black dots) on light backgrounds. You can also use colored noise to tint the surface.

Blend mode: mix-blend-mode: overlay creates a more pronounced effect than normal blending. soft-light produces a gentler result that works well on both light and dark backgrounds.

Animated Noise Effects

Animated noise creates a film grain or TV static effect. The simplest approach shifts the background position of a tiled noise image:

@keyframes grain { 0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-5%, -10%); } 30% { transform: translate(3%, -15%); } 50% { transform: translate(12%, 9%); } 70% { transform: translate(9%, 4%); } 90% { transform: translate(-1%, 7%); } } .grain-animated::after { animation: grain 0.5s steps(6) infinite; }

Keep animated noise at very low opacity (2โ€“3%) to avoid distraction. Use steps() instead of smooth easing to create discrete jumps that feel like real film grain rather than a sliding texture.

Always wrap animated noise in a prefers-reduced-motion check โ€” users who have requested reduced motion should not see animated grain.

Frequently Asked Questions

What is a noise texture in CSS?+
A noise texture is a random, grain-like visual pattern applied as an overlay on web elements. It adds organic character to flat digital surfaces, prevents gradient banding, and creates a premium, tactile feel.
How do I add noise to a CSS gradient?+
Apply an SVG feTurbulence filter as a pseudo-element overlay on top of the gradient, or use a small tiled PNG noise image. Keep the opacity between 3โ€“6% for a subtle effect.
Does CSS noise affect performance?+
SVG feTurbulence filters can be GPU-intensive, especially on mobile. For better performance, use a pre-rendered PNG noise image tiled with background-repeat instead of a live SVG filter.
What is feTurbulence?+
feTurbulence is an SVG filter primitive that generates random noise patterns. The type can be 'fractalNoise' (smooth, cloud-like) or 'turbulence' (more chaotic). baseFrequency controls grain size, and numOctaves controls detail complexity.
Try it yourself

Use the Noise Generator โ€” free, no signup required.

โšก Open Noise Generator
DG
Derek Giordano
Written by the creator of Ultimate Design Tools. BA in Business Marketing.
โšก Try the free Particle Background Generator โ†’