antibot.dev
Sponsored Try LayerSift

Glossary

Canvas fingerprinting

Also called: canvas fingerprint, HTML5 canvas fingerprinting, WebGL fingerprinting

Updated November 14, 2026

Canvas fingerprinting is a browser fingerprinting technique that has the browser draw text and shapes on an invisible HTML <canvas> element, reads the pixels back and hashes them. The same drawing comes out slightly differently depending on the graphics hardware, driver, operating system, installed fonts and anti-aliasing, so the hash helps tell devices apart.

The technique was described in a 2012 research paper, “Pixel Perfect: Fingerprinting Canvas in HTML5”, by Keaton Mowery and Hovav Shacham.

How it works

  1. A script creates a canvas with the Canvas API and draws text in several fonts, emoji, gradients and overlapping shapes.
  2. It reads the result back, for example with toDataURL().
  3. It hashes the pixel data. Machines that differ in GPU, driver or fonts usually produce different hashes.

WebGL fingerprinting works the same way with a 3D scene, and also reads the graphics vendor and renderer the browser reports.

How bot detection uses it

The canvas hash is one input to a device identifier. For bot detection it is more useful as a consistency check. A browser that claims a high-end GPU but renders like a software renderer is probably a server running a headless browser. An anti-detect browser that injects noise can produce a canvas that changes between two identical draws, or a hash that matches no real device of the claimed type.

Privacy protections in some browsers add noise too, so detection has to tell privacy features apart from tampering.

Run the browser fingerprint test to see your own canvas result, or read the device fingerprinting guide.

Questions

Can canvas fingerprinting be blocked?

Partly. Some privacy-focused browsers add small random noise to canvas output or ask before a site reads it. That makes the value less stable for tracking, but a script can sometimes notice the noise itself.

Is a canvas fingerprint unique?

Not on its own. Devices with the same GPU, driver, operating system and browser version often produce identical images. It adds detail to a fingerprint and is most useful combined with other signals.