Canvas fingerprint test

The images below are drawn by your browser the moment you open this page. Their pixels, and therefore the canvas fingerprint hash, depend on your fonts, graphics stack and operating system. The verdict shows whether any website can read this hash or whether your browser randomizes or blocks it.

Collecting…

Text rendering test

…

Geometry and blending test

…

Canvas details

Canvas fingerprint (hash)
…
Randomization detected
…
Canvas readout blocked
…
Even-odd winding support
…
Image data size
…
Brave browser
…

What is canvas fingerprinting?

Canvas fingerprinting is a browser fingerprinting technique that uses the HTML5 <canvas> element. A script draws text, emoji and shapes on an invisible canvas, reads the result back as pixels or an image, and hashes it. Different devices produce slightly different pixels for the same drawing commands, so the hash works as an identifier that needs no cookies.

How canvas fingerprinting works

  1. The script creates a canvas element that is never shown on screen.
  2. It draws a test scene: text in specific fonts and sizes, an emoji, overlapping semi-transparent shapes, gradients and blending modes.
  3. It reads the output with toDataURL() or getImageData().
  4. It hashes the data into a short value and sends it, usually together with other signals.

The differences come from everything involved in rendering: the installed fonts and their versions, font hinting and anti-aliasing, subpixel rendering settings, the emoji font, the GPU and its driver when rendering is accelerated, and the browser's own graphics library. Two computers with the same OS, browser and hardware usually produce the same image; changing any layer can change the hash.

This test uses two classic images: a text image with a pangram and an emoji, and a geometry image with blended circles and an even-odd fill. It renders each twice to check whether the output is stable.

How to read your results

  • Canvas fingerprint is readable: the two renders were identical and readable. Any site can compute the same hash and use it as part of your fingerprint.
  • Randomization detected: identical drawing commands produced different images. A browser feature or extension adds noise, so the hash is not stable.
  • Brave randomizes your canvas: Brave's "farbling" keeps the value stable on one site during a session but different across sites and after restarts, which you will not see as a difference within this page.
  • Canvas is blocked: the browser returned an empty or blank image, as Tor Browser and resist-fingerprinting modes do.

The canvas hash is also one of the components of the full browser fingerprint test, where you can see how it combines with your WebGL, fonts and other signals.

History and prevalence

Canvas fingerprinting was first described in 2012 by Keaton Mowery and Hovav Shacham in the paper "Pixel Perfect: Fingerprinting Canvas in HTML5". In 2014, Acar and colleagues ("The Web Never Forgets") found canvas fingerprinting scripts on about 5% of the top 100,000 websites, mostly through the AddThis sharing widget. The 2016 measurement of one million sites by Englehardt and Narayanan found canvas fingerprinting still widespread, alongside newer techniques such as audio and WebRTC fingerprinting. In the AmIUnique study (2016), canvas was among the most discriminating attributes of a fingerprint.

How unique is a canvas fingerprint?

On its own, a canvas hash is shared by everyone with the same hardware and software stack. Popular configurations, for example a given iPhone model on a given iOS version, often share one value. On desktops with custom fonts or less common GPUs it can be much rarer. Its real power comes from combination: canvas plus user agent, screen, timezone and fonts narrows the crowd dramatically, which is why trackers rarely use it alone.

How to block or spoof canvas fingerprinting

  • Tor Browser and Mullvad Browser block canvas readout by default, so every user returns the same blank data.
  • Brave adds deterministic noise per site and session, so trackers on different sites see different values.
  • Safari adds noise to canvas readback with Advanced Tracking and Fingerprinting Protection, which you can enable for all browsing.
  • Firefox randomizes canvas data with Fingerprinting Protection in private windows and Strict mode; privacy.resistFingerprinting blocks readout.
  • Extensions: CanvasBlocker for Firefox can block or fake canvas readout, and canvas-noise extensions such as Canvas Fingerprint Defender for Chrome add random noise. They work against naive scripts, but noise is detectable and the extension itself can make your browser rarer.

Which protection is right for you is covered in how to prevent browser fingerprinting.

How sites detect canvas noise

Anti-fraud scripts check whether canvas output has been tampered with: they render the same scene twice and compare, draw a simple shape whose exact pixels are known and check for deviations, or compare toDataURL() with getImageData(). They also check whether canvas functions are native or patched. A randomized canvas therefore protects you from being linked across sites but can mark you as using a privacy tool or an antidetect browser.

Frequently asked questions

What is a canvas fingerprint?

It is a hash of an image that your browser draws on an invisible HTML5 canvas. Because fonts, graphics drivers and rendering settings differ between devices, the image and its hash differ too, which lets websites recognize a browser without cookies.

Can canvas fingerprinting be blocked?

Yes. Tor Browser and Mullvad Browser block canvas readout, Brave and Safari add noise, and Firefox randomizes it in Strict mode and private windows. Extensions such as CanvasBlocker can block or fake it too.

Does canvas fingerprinting work in incognito mode?

Yes. Private mode does not change fonts, drivers or rendering, so Chrome produces the same canvas hash. Safari and Firefox add canvas protections in private windows, so the value may differ there.

Does Canvas Fingerprint Defender work?

Canvas-noise extensions change your canvas hash, which stops simple fingerprinting. Advanced scripts can detect the noise, and using an uncommon extension can make your overall fingerprint more unique. Built-in browser protections are more reliable.

Is a canvas fingerprint unique?

Not by itself: devices with the same hardware and software often share a hash. It becomes identifying when combined with other signals like the user agent, screen size, fonts and timezone.

Why does my canvas hash change?

Browser or graphics driver updates, new fonts, a different display scaling or a privacy feature that randomizes canvas output can all change it. If it changes on every reload, your browser or an extension is adding noise.

Sources and further reading