Blog

What is canvas fingerprinting?

Published December 5, 2026 · Updated December 5, 2026 · Mirage Browser

Canvas fingerprinting is a way to recognize a browser by how it draws a hidden image. A script draws text and shapes on a canvas element, reads the pixels back and turns them into a hash. Graphics hardware, drivers, fonts and the operating system change the pixels, so the hash differs between devices and stays the same on one device.

How does canvas fingerprinting work?

  1. A script creates a canvas element that is never shown on the page.
  2. It draws a line of text, often with unusual characters, and a few coloured shapes.
  3. It reads the picture back as data, usually with the toDataURL method.
  4. It hashes the data. The hash is the canvas fingerprint.

The whole thing takes a few milliseconds and asks for no permission in most browsers.

Why do two devices draw the same picture differently?

The differences are too small to see and large enough to measure.

What differs Why it changes the pixels
Graphics card and driver Smoothing of edges and blending are computed differently
Operating system Each system has its own text rendering
Installed fonts A missing font is replaced with another, and the text changes shape
Browser engine and version Drawing code changes between engines and releases

Devices of the same model with the same software produce the same hash. A canvas hash therefore sorts browsers into groups, and other signals narrow the group down.

Is a canvas hash unique to me?

Not by itself. Many people with the same laptop model and browser version share one hash. It becomes identifying together with the rest of the fingerprint: screen, fonts, time zone, languages, WebGL. More in What is browser fingerprinting?.

Who uses it and why?

Anti-fraud and bot protection services use it to notice a browser that returns after clearing cookies, and to spot automation tools whose drawing differs from a real browser. Advertising scripts have used it to recognize visitors without cookies, which browser vendors and privacy regulators oppose.

How do browsers defend against it?

There are three approaches, and each has a cost.

  • Refuse: return a blank picture or ask the user first. Reading is blocked, and the block itself is visible to the page.
  • Add noise: change a few pixels at random on each read. The hash differs every time, and a script can detect this by drawing twice and comparing.
  • Make everyone equal: draw the same way for all users of that browser. This works only while the group of users is large.

How does an antidetect browser deal with it?

It gives each profile a stable canvas result of its own that fits the device the profile describes. Stable matters: a real device returns the same hash on every visit, so a hash that changes on each read looks less ordinary, not more. The result must also agree with the WebGL graphics card and the operating system in the user agent.

How can I see my canvas hash?

Open our free check at /check/. It draws the test picture in your browser, shows the hash and explains it. Nothing is stored.

Where do these facts come from?