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
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.
- Duplicate the image layer, or add a new layer filled with mid-grey.
- Add noise to the grey layer with the HSV or RGB noise filters, or fill with a solid and use the noise option.
- Blur it very slightly, with a radius below one pixel on a large image, so the specks clump a little. Perfectly independent noise has a harsh, electronic feel.
- Convert it to monochrome for a black and white stock, or leave a faint hue variation for colour negative.
- Set the layer mode to overlay or soft light and lower the opacity.
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
- Apply grain after the final resize and never scale a grain layer afterwards.
- Apply it once. Stacking a second pass on top of an earlier noise filter makes clumps of clumps.
- Apply it before the final export so the compressor treats it as part of the picture.
- Do not use it to hide other problems. Grain over a plastic-looking face gives you a plastic-looking face with specks.
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 checked | Value |
|---|---|
| Accepted formats | PNG, JPEG, WebP |
| Maximum size | 20 MB |
| Maximum dimension | 8192 px on the longest side |
| Sensor grain intensity | 0.018 |
| Lateral chromatic aberration | 1.25 px at the corners, none at the centre |
| Frequency cutoff | 0.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.