Account

Articles and comparisons

Canvas, WebGL and audio fingerprints: how they work

A rendering fingerprint comes from asking your device to draw an image or process a sound and then looking at the result. Most other fingerprint signals are values the browser reports directly. Small differences in hardware and software make the rendered result surprisingly specific.

Check your browser right now

Checking your browser…

Canvas fingerprint

A script draws text, shapes and gradients on a hidden canvas element, reads the pixels back and hashes them. The exact pixels depend on fonts, anti-aliasing, the graphics driver and the operating system. The hash stays the same on one device and differs across many others, so a single call carries a lot of identifying information.

WebGL fingerprint

WebGL exposes two kinds of data. The first is parameters: the GPU vendor and model from the unmasked renderer string, supported extensions, maximum texture sizes and precision formats. The second is rendering: the page draws a 3D scene and hashes the pixels, as with canvas, but through the GPU pipeline.

The GPU name is also a strong consistency signal. Apple GPUs appear only on Apple devices, and renderer names that mention Direct3D appear only on Windows. A real browser does not report a Windows User-Agent together with an Apple GPU.

WebGPU

The newer WebGPU API also describes the graphics adapter. If WebGL and WebGPU name different GPUs, the device may be a laptop with two graphics cards, or a spoofing tool may have changed only one of them.

Audio fingerprint

The site generates a tone with an oscillator and runs it through an audio chain, such as a compressor, entirely offline and without sound, then sums the resulting samples. Audio processing and floating-point math differ between browsers and platforms, and those differences change the last digits of the result.

How protection works

Privacy tools take one of three approaches:

How noise is noticed

Noise has a weak spot: a real device draws the same image the same way every time. If a page draws one picture twice and gets two different results, something has added noise. Other methods compare the result with known values for the claimed GPU, or check whether a script has replaced the canvas functions.

That is why the SpoofLens check draws canvas, audio and its own WebGL scene twice. Steady noise that stays the same for the whole session does not show up this way, so the check also reads an area filled with a single colour: an unmodified browser returns that colour exactly. In Brave, Safari, Firefox with resistFingerprinting, Tor Browser and a few other browsers (Chrome on iOS, which runs on Safari's engine, the DuckDuckGo browser and Samsung Internet on Android), noise is marked as privacy protection, because these browsers add or change such data on purpose. In other browsers, canvas or WebGL noise that differs between the two drawings counts as a contradiction. Audio noise counts as a suspicious sign, and so does noise found only in the single-colour area, except in Firefox, where it is treated as protection.

Are these fingerprints unique?

Less than people think. Devices of the same model with the same system and browser version often share canvas and WebGL hashes, which is why iPhones are hard to tell apart. Rendering fingerprints are most useful combined with other signals and for spotting spoofing; on their own they make a poor ID.

Frequently asked questions

Can I block canvas fingerprinting?
Yes. Tor Browser, Firefox with resistFingerprinting and Brave each protect against it in their own way. Extensions can do it too, but a poorly made extension can make your browser easier to spot, because the way it replaces functions can be detected.
Why does my canvas hash change?
Common causes are a browser or graphics driver update, a change in display scaling, or a privacy feature that adds noise. If the hash changes on every reload, noise is being added.
Does SpoofLens store my canvas hash?
Not unless you save the check to your account or share it as a report. Otherwise it is computed in your browser, sent once for the cross-check and then discarded.

Read next