How to simulate film grain on an AI image

Film grain comes from silver halide crystals or dye clouds, so it is clumpy, larger in shadows and midtones, and independent of any pixel grid. Digital sensor noise is different. To simulate film, generate grain at a size tied to the image width, blend it in luminance-weighted overlay mode, add it once after all resizing, and keep it light enough to disappear at viewing size.

Last updated: 2026-10-27

Naturalization before and after, full frame on both sides and the most textured region enlarged twice to show the grain structure
Source: ai-sd15-how-to-simulate-film-grain.png, 512×512. After: JPEG, Apple iPhone 14 EXIF, Apple (mesurée) quantization table. SSIM 0.8096, PSNR 23.0 dB. Full image on both sides, then the same detail at 100 % zoom and 200 % zoom.

Know which grain you want

Two different textures hide behind the word grain, and choosing the wrong one is the most common mistake in this task.

Film grain is physical. Light-sensitive crystals in an emulsion develop into tiny specks, and because the crystals are scattered randomly, the pattern has no grid. Faster film uses larger crystals, so higher ISO stock looks coarser. The effect is strongest in midtones and shadows and softer in bright areas where the density saturates.

Digital sensor noise comes from photosites on a regular array, and its character is shaped by the processing that follows. Both can be pleasant. They are not interchangeable, and a keen eye or a statistical test can tell them apart.

If your goal is a deliberate analogue look, film grain is the right call. If your goal is a convincing modern digital photograph, it is not.

Building film grain in GIMP

GIMP gives you the pieces without a dedicated filter.

Zoom out to fit the screen. If you can still see the grain, it is too strong. Real film grain at normal viewing size registers as texture, not as dots.

Building it in Python

With NumPy and Pillow the same idea takes a few lines. Generate a Gaussian noise field the size of the image, filter it with a small Gaussian blur, scale it by a luminance weight so midtones receive the most, and add it to the image in float arithmetic before clipping and converting back to eight bits. Seed the generator if you want repeatable results across a batch.

The weight is where the realism lives. A simple parabola peaking at mid-grey and falling toward black and white mimics the emulsion response reasonably.

Rules that apply to any method

Film grain and provenance

Grain changes the texture, not the story the file tells. A PNG still named after a prompt, still carrying a C2PA manifest, still declaring a digital source type, remains labelled as machine-made. Check and clear those fields as a separate step, for example with exiftool.

PassReal handles that part: it removes C2PA, IPTC digital source type, XMP and PNG text chunks, then applies a sensor model, a frequency filter and a JPEG encode with real-camera EXIF. The grain it adds is camera-like, not film-like, so add a film treatment on your own copy if that is the style you want.

PassReal does not remove SynthID or other pixel-level watermarks, and it does not promise any detector result.

Choosing a stock to imitate

Pick a real film and look at scans of it before you start. A fast black and white stock has coarse, high-contrast grain. A slow colour slide film is almost clean. A mid-speed colour negative sits between, with soft, slightly coloured clumps. Matching grain size to image width matters more than matching the amount: the same grain on a thumbnail and on a large print should scale with the pixel dimensions, not stay fixed in pixels.

Try it

Start with three free images at PassReal, then layer your own film look on the cleaned file.

What is checkedValue
Accepted formatsPNG, JPEG, WebP
Maximum size20 MB
Maximum dimension8192 px on the longest side
Sensor grain intensity0.018
Lateral chromatic aberration1.25 px at the corners, none at the centre
Frequency cutoff0.88 of Nyquist

Questions

Is film grain the same as digital noise?

No. Film grain is made of clumps tied to the emulsion, with a size that does not follow pixels. Digital noise comes from the sensor and is shaped by demosaicing.

Which blend mode works best?

Overlay or soft light on a mid-grey noise layer. They leave mid-grey unchanged and push values either way, which keeps the average tone intact.

Should the grain be monochrome or coloured?

Colour negative film has dye clouds with mild colour variation, while black and white film is purely tonal. Match the stock you are imitating, and keep colour variation subtle.

Will film grain make an image look like a real photograph?

It makes it look like film. A convincing digital photograph needs sensor-style grain instead, and a file that declares a camera rather than a scanner.

Does PassReal add film grain?

It applies a sensor model, not a film emulation. If you want an analogue look, apply that creative treatment yourself afterwards.

Limits

Naturalization operates on the pixels and on the file, not on the content of the image. A subject that is implausible - six fingers, inconsistent reflections, text that does not read - stays implausible after processing, and a human reviewer will notice it. PassReal changes what a statistical classifier measures, not what a person sees.

Results vary by generator, by subject and by detector, and detectors are retrained. No pass rate is published on this page because none has been measured in a way that would still hold next month.

Clean an image in seconds

Three images free, no card. Then $2 an image, or Pro at $19 a month for 100.