# Canvas noise that stays consistent across reads

> Canvas noise consistent across reads has to key on colour: keyed on position, one drawing at two offsets differed by 76 bytes. Keyed on colour, 8 of 8 passed.

Source: https://mosaicbrowser.com/blog/canvas-noise-by-colour

## Canvas noise is a function of colour, not place

Canvas noise consistent across reads has to key on colour: keyed on position, one drawing at two offsets differed by 76 bytes. Keyed on colour, 8 of 8 passed.

![76: One drawing at two offsets, 76 bytes apart](https://mosaicbrowser.com/covers/canvas-noise-by-colour.webp)

Canvas noise stays consistent across reads only if it is keyed on what was drawn, not where it landed. Our first version keyed each change on the pixel's coordinates: every read of a canvas agreed with every other read, and the same drawing placed twice on one canvas still came back different. Real browsers never do that. Keyed on the pixel's colour instead, and kept sparse, it passed.

## The four-line test position-keyed noise fails

Canvas noise exists so each profile's [canvas fingerprint](https://mosaicbrowser.com/glossary/canvas-fingerprinting) differs from the real machine's and from every other profile's. The obvious way to keep it stable is to make the change a function of the pixel, so reading the canvas twice returns the same bytes. We did that, keyed on the pixel's position, and the obvious checks passed:

```
same region read twice      0 bytes different
toDataURL stable            true

```

Then we drew the same text and rectangle twice on one canvas, at y=0 and y=60, and compared the two regions:

```
identical regions differ    76 bytes      (a real browser: 0)

```

A GPU renders identical input to identical pixels, wherever it sits. With position-keyed noise, the two copies sit at different coordinates, so they get different stamps. A page can find that in four lines of script.

## Why Pixelscan looked random

This was what Pixelscan's fingerprint card was reading, and it explained a verdict that had seemed arbitrary. The check fires only when a stamped pixel happens to land inside a compared region. Four fresh profiles came back consistent, inconsistent, consistent, inconsistent. One profile, bisected field by field, passed twice with canvas noise off and failed six times with it on. Audio, client rects and everything else made no difference.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Fingerprints set inside the browser](https://mosaicbrowser.com/features/engine)

## Canvas noise consistent across reads: keyed on colour, and sparse

So the stamp now depends on the colour. Every fully opaque pixel of a given colour gets the same low bits, chosen once per profile from its seed. The same content is identical wherever it is drawn, through `toDataURL`, `getImageData`, a sub-rectangle or a second canvas, and still different from what the bare machine would produce.

The first colour-keyed version changed every opaque pixel. It fixed the contradiction and then failed Pixelscan five times out of five, worse than the position-keyed noise, which had failed about half the time. Touching every pixel does not look like a rounding difference between two GPUs; it looks like a filter laid over the image. Now only about one distinct colour in 32 is touched. Eight fresh profiles afterwards:

```
8/8 pass    8 distinct canvas hashes    8 distinct audio hashes

```

More noise is not safer. The amount has to stay inside what the same hardware could plausibly produce, because the goal is a canvas a detector cannot tell from a real one, not one it cannot recognise.

Three older rules made the colour-keyed version safe to write. We never write to the page's own canvas; we draw a copy and encode from that. We stamp bits rather than flipping them, because a flip applied twice cancels out when a page decodes its own data URL onto a second canvas, and a stamp applied twice changes nothing. And only fully opaque pixels are touched, because transparent colour channels do not survive PNG encoding.

## Every route out of the canvas

A canvas has four ways out: `getImageData`, `toDataURL`, `toBlob` and `OffscreenCanvas.convertToBlob`. MDN describes `toBlob` as producing a PNG by default, the same format `toDataURL` gives, so a page can hash both and expect one answer. We compared our engine against a stock Chrome on the same machine, hashing the encoded files:

```
route                                stock      ours
canvas.toDataURL()                   eff69e17   ef122151
canvas.toBlob()                      eff69e17   eff69e17
convertToBlob()  page                eff69e17   eff69e17
convertToBlob()  worker              eff69e17   ef122151

```

Two of our routes were byte-identical to stock Chrome. On the main thread Chromium encodes PNG through a path that reads the raw pixels and never passes where our stamp lived. Our engine now stamps once, where the pixels are first acquired, into a buffer the engine owns, so every route encodes the same file. That is the actual requirement: not that each route is noised, but that all four agree, as they do in a stock browser.

## When one seed fails

One more finding, to save someone an afternoon. A single profile failed Pixelscan every time while fresh ones passed, and the cause turned out to be its seed: put that seed on a passing profile and it failed; give it a new seed and it passed. With the profile's canvas noise turned off, it passed. Yet its noise had every property above, 0 bytes between offsets and re-reads, and it touched 0.30% of opaque pixels, mid-range for the six seeds we sampled.

Fourteen freshly drawn seeds on one profile came back 14 passes and no failures. So a lone Pixelscan failure is a question about that profile's seed, not the engine; checking a fresh profile settles which. Turning canvas noise off for that one profile works, at the cost of its canvas entropy. We did not soften the noise for everyone on that evidence. The last two changes to its amount made on a theory were both wrong. More on what Pixelscan reads is in [Pixelscan's inconsistent fingerprint verdict](https://mosaicbrowser.com/guides/pixelscan-inconsistent-fingerprint).

![A Mosaic profile fingerprint showing which surfaces are noised](https://mosaicbrowser.com/shots/fingerprint-detail.png)
*Canvas, WebGL, audio and client rects, noised from one seed*

All of this happens inside the engine, which is the point of [changing fingerprints in the engine, not in JavaScript](https://mosaicbrowser.com/blog/cpp-not-javascript): a page script overriding `toDataURL` cannot reach the worker's `convertToBlob`, and a change in the engine can. Our changes to Chromium are described on [the engine page](https://mosaicbrowser.com/features/engine).

## Sources

1. [MDN: HTMLCanvasElement.toBlob()](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob), read November 2, 2026

## Questions

### Why does canvas noise need to be consistent across reads?

A real browser renders identical input to identical pixels every time. If a second read, a sub-rectangle or a second route out of the canvas gives a different answer, the page has found noise rather than a different machine.

### What is wrong with noise keyed on pixel coordinates?

Each read agrees with itself, but the same drawing placed at two positions gets two different stamps. In our measurement two identical regions on one canvas differed by 76 bytes, where a real browser gives 0.

### Is more canvas noise safer?

No. Our first colour-keyed version changed every opaque pixel and failed Pixelscan five times out of five. Touching about one colour in 32 passed eight fresh profiles out of eight.

### Which canvas methods have to agree?

getImageData, toDataURL, toBlob and OffscreenCanvas.convertToBlob, in the page and in workers. Two of them were left unnoised in our engine until we compared the files against a stock Chrome.

## Related

[Canvas fingerprinting: how a drawing identifies your computer](https://mosaicbrowser.com/glossary/canvas-fingerprinting): Canvas fingerprinting draws hidden text and shapes, reads the pixels back and hashes them. Small rendering differences make the hash a mark of your machine.

[Pixelscan says inconsistent fingerprint: what it means](https://mosaicbrowser.com/guides/pixelscan-inconsistent-fingerprint): A Pixelscan inconsistent fingerprint means two values your browser reports cannot both be true of one machine. Five causes we found, each dated.

[An anti-detect browser with its own Chromium engine](https://mosaicbrowser.com/features/engine): Mosaic is an anti-detect browser with its own Chromium engine, Tesseract Chrome: stock Chromium source, with fingerprint values changed inside the engine.

[Why we change fingerprints in the engine, not in JavaScript](https://mosaicbrowser.com/blog/cpp-not-javascript): A JavaScript spoof is one realm deep. An iframe read the real source of 33 of our replaced functions; the same values set inside the engine agree everywhere.









[Same fonts, different measurements: per-profile glyph advances](https://mosaicbrowser.com/blog/glyph-advances-per-profile): Font fingerprint randomization can hide fonts or change how wide glyphs measure. Hiding read as masking; per-profile glyph advances did not.

[Every profile on one Mac drew the same WebGL image](https://mosaicbrowser.com/blog/webgl-hash-same-every-profile): A WebGL fingerprint is the same in every browser profile on one machine because the GPU draws it. Ours was too, until per-profile noise moved the hash.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
