imagegrain

About imagegrain

imagegrain is a free, focused photo tool built and maintained by Maximilian Braun. It exists to make convincing grain easy to add, private to process, and practical to export without installing a full photo editor.

Updated July 17, 2026 · Written and tested by Maximilian Braun

How the grain algorithm works

A basic noise filter chooses a new random value for every pixel. imagegrain instead builds a correlated texture with visible clusters rather than isolated pixel speckles. The default organic model blurs seeded random noise into round, irregular clumps with no underlying grid. The original classic model places random samples on a grid and smoothly interpolates between them; it remains available, and older preset links keep using it so they reproduce exactly. Fine, medium, and coarse modes change the scale of the pattern in both models.

The goal is a useful digital approximation, not a claim to reproduce a named film stock exactly. Actual film grain depends on emulsion, exposure, development, scanning, and enlargement. Kodak describes film as layers containing random patterns of silver-halide crystals and other chemistry; those physical processes are more complex than a browser filter.

How our file-size benchmark is measured

The comparison shown on the homepage uses the built-in sample image at 1600×1000 pixels with fine grain at 40%. The same rendered canvas is exported once as PNG and at 85% quality as JPEG and WebP. In the current test, the files measure 2.45 MB, 0.26 MB, and 0.19 MB respectively.

Those figures demonstrate one controlled example, not a universal saving. Export size changes with image detail, dimensions, grain settings, browser encoder, format, and quality. We state the inputs so the result can be reproduced with the sample-image button in the editor.

Privacy and browser processing

Image decoding, canvas processing, preview generation, and export happen on your device. The editor has no image-upload endpoint, and your selected photos are not sent to imagegrain. Exporting from a browser canvas also creates a new file without copying the original photo's EXIF metadata.

Editorial and testing standards

  • Tool instructions are checked against the current interface.
  • Measurements include their image, settings, format, and quality.
  • Technical claims prefer first-party or standards-based sources.
  • Named film stocks are examples of an aesthetic, not exact presets.
  • Pages show their author and latest substantive review date.

Primary references

Open-source implementation

The repository includes a DOM-free TypeScript grain package and the source used by the browser editor. The public code makes the deterministic settings, tonal response, and stated limitations inspectable instead of asking readers to trust a black box.

The MCP package remains pre-release until its clean-install and end-to-end client tests are complete; the documentation states that status explicitly.

Review the imagegrain source on GitHub

Try the method

Open the sample image, choose a grain scale, and compare the same canvas across PNG, JPEG, and WebP exports.

Open the free grain editor