Noise and Grain Texture Generator
A noise texture is random speckle laid over a flat colour or gradient so it looks printed rather than digital. In the browser you can make it with no image file at all: the SVG feTurbulence filter generates Perlin noise from a frequency, an octave count and a seed. Tune it below and copy a few hundred bytes of code.
| Attribute | What it does | Default |
|---|---|---|
| baseFrequency | Size of the speckle; higher numbers give finer grain. One number, or separate x and y values | 0 |
| numOctaves | Layers of detail added on top of each other; more is richer and slower | 1 |
| type | fractalNoise (soft, cloudy) or turbulence (sharper, rippled) | turbulence |
| seed | Starting number for the random pattern; change it for a different layout | 0 |
| stitchTiles | stitch smooths the edges so repeated tiles join without seams | noStitch |
Updated
Grain takes the plastic look off big gradients and stops colour banding on wide hero backgrounds. A PNG grain tile adds a download and goes blurry when scaled, while an SVG filter is tiny text that renders sharp at any size. Adjust the sliders and watch the texture over a sample gradient.
Grain studio
Every change re-renders the SVG filter live over the sample gradient. Nothing is uploaded; the texture is drawn by your browser.
Grain on a gradient card
Noise layer with a blend mode
The SVG paints grey noise into a 200 pixel tile. The ::before layer repeats it at low opacity and blends it with the gradient.
<style>
.hero { position: relative; isolation: isolate; height: 160px; border-radius: 16px; overflow: hidden;
display: grid; place-items: center; color: #fff; font: 600 20px system-ui;
background: linear-gradient(120deg, #4F98FB, #a855f7 60%, #ec4899); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; mix-blend-mode: overlay;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
</style>
<div class="hero">Grainy gradient</div>The same texture as a standalone SVG file
Save this as grain.svg and use it with background-image: url(grain.svg). The colour matrix turns the noise grey.
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
<filter id="n">
<feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch" />
<feColorMatrix type="saturate" values="0" />
</filter>
<rect width="100%" height="100%" filter="url(#n)" />
</svg>
How the numbers map to what you see
baseFrequency is measured in noise cycles per pixel of the filter area, so 0.05 gives large blotches and 0.9 gives dust-sized specks. Two numbers stretch the noise, which is useful for brushed metal or wood grain.
Each extra octave adds a finer layer at double the frequency and half the strength. Beyond four or five the change is hard to see, but the work for the renderer keeps growing.
Making grain look good on a site
Grain works best as a quiet layer. Blend it with overlay or soft-light so it lightens bright parts and darkens dark parts, rather than greying everything.
Check your text contrast after adding texture. Speckle behind small type can make it harder to read, so keep busy grain to backgrounds and hero areas.
How it works
- Pick fractal noise for soft film grain or turbulence for a rougher, marbled look.
- Raise the frequency for finer grain and add octaves for more detail. Change the seed for a different random layout.
- Set the strength of the grain over the sample gradient and choose whether it keeps colour or turns grey.
- Copy the SVG file, or the CSS that embeds it as a data URL background.
Tips
- For subtle grain over a gradient, keep the texture opacity between 0.1 and 0.3. Higher values start to look dirty.
- A frequency around 0.6 to 0.9 with fractal noise reads as film grain at normal screen sizes.
- Desaturate the noise to grey unless you want coloured specks; feTurbulence produces colour noise in every channel.
- Large filtered areas cost rendering time. Applying the grain as a background image of a fixed tile is cheaper than filtering a full-screen element live.
Frequently asked questions
What is feTurbulence?
It is an SVG filter primitive that creates an image from the Perlin noise function. It needs no input image, so a single filter element inside an SVG can paint a whole texture. Browsers have supported it widely since 2015, according to MDN.
What is the difference between fractalNoise and turbulence?
fractalNoise blends its octaves smoothly and looks like soft clouds or film grain. turbulence uses absolute values of the noise, which creates sharper ridges, closer to marble, smoke or water ripples.
How do I add grain to a CSS gradient?
Stack two backgrounds: the noise SVG as a data URL on top and the gradient underneath, or put the noise on a ::before layer with low opacity and a blend mode such as overlay or soft-light. The example on this page shows the pseudo-element version.
Will the texture tile without seams?
Set stitchTiles to stitch. The browser then adjusts the frequency slightly so the pattern fits a whole number of tiles, which removes the visible join where copies meet.
Related: CSS gradient generator, SVG pattern generator, CSS filter generator, CSS background generator, Blob generator.
Start for free or see all free tools. We.Inc is free to start, with no card needed. AI building is on paid plans from $20 a month.
More in Free Tools
- OG Image Checker
- OG Image Generator (1200 x 630)
- Open Graph Image Generator and Preview
- Opening Hours Schema Generator
- Order Form Generator: Web and Paper Versions
- Packing Slip Generator: Print What Is in the Box
- Painting Estimate Calculator for Painting Contractors
- Password Reset Email Template
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App