JavaScript fingerprinting is a tracking method that leverages scripts operating in a web browser to acquire information about the computer and its browser. These data points create a profile that identifies the machine every time it is used and doesn’t need to save anything on the user’s device. There are no cookies imposed, and nothing needs to be logged, so no pop-ups appear. The data is transmitted automatically by regular web APIs.
How the Fingerprint Is Used
Once the script has collected enough attributes, it typically hashes the values together into a single string. That hash is sent to a server and stored. On the next visit, the same script runs again, the same hash is generated and compared to stored records, and the device is recognized without any identifier having been stored on the device itself.
This makes JavaScript fingerprinting persistent in a way that cookies are not. A user can clear cookies, switch to incognito mode, or change their IP address without affecting the fingerprint, because the fingerprint is reconstructed from live device signals each time rather than read from local storage.
Here is What JavaScript Reads
The Navigator Object
The navigator object is a frequently used source of information in JavaScript fingerprinting. It is a built-in browser interface that provides various types of data about the browser and the device. Properties such as the user agent string, language settings, platform, number of CPU cores, device memory, maximum touch points, and whether cookies are enabled are all accessible through navigator without any user interaction. Most fingerprinting methods utilize the window. navigator object because it exposes a broad set of attributes in a single place.
Canvas Fingerprinting
Canvas fingerprinting instructs the browser to render text or shapes using HTML5 Canvas, and then scan the resulting pixel data. Even if the input is the same, the output would be different from one device to another because GPU hardware, graphics drivers, and operating systems differ in how they process rendering. A hash of that pixel data produces a stable identifier specific to that device’s rendering stack.
WebGL Fingerprinting
WebGL fingerprinting is another technique that goes further by querying the GPU directly through the WebGL API, which handles 3D graphics rendering. It gathers the GPU vendor name, the renderer string, and the way the device renders 3D scenes. Where Canvas captures 2D rendering differences, WebGL works at a hardware level and reveals the graphics card, driver version, and manufacturer.
Audio Fingerprinting
Audio fingerprinting uses the Web Audio API to generate a signal, which is processed through the audio stack, and measures the output. The small error in floating-point calculations performed by the CPU and audio engine leads to a difference in the results. The results remain constant for a specific device but change considerably in different hardware and software setups. As noted in research published on arXiv, the audio fingerprinting process is similar to canvas fingerprinting in that the processed signal presents differences due to the software and hardware stack of the device.
Timezone, Screen and Language
Alongside the more technical active signals, scripts read a range of declared browser attributes. Timezone is exposed through the Intl.DateTimeFormat API and the Date.getTimezoneOffset method. Screen resolution, color depth, and pixel ratio are available through the window. screen object. Language and locale settings are readable through navigator. language and navigator. languages. These signals individually carry low entropy but contribute meaningfully when combined with higher-entropy signals like canvas and WebGL.
How JavaScript Fingerprinting Works
When a page loads, it may include a script that queries the browser for a range of technical details. Each individual detail on its own is not particularly identifying. A screen resolution of 1920x1080 is shared by millions of devices, as are the America/New_York timezone and the en-US language setting. But when a script collects thirty to a hundred of these values together and runs them through a hash function, the resulting identifier is specific enough to recognize a returning device reliably across sessions, browser clears, and IP changes.
As documented in peer-reviewed research published on arXiv, JavaScript fingerprinting falls into two categories: passive and active. Passive fingerprinting reads attributes the browser already exposes by default through HTTP headers and basic API properties. Active fingerprinting goes further by running code that probes how the device actually processes graphics or audio, producing highly device-specific outputs.
Common Uses
Fraud detection: Financial organizations and e-commerce websites apply JavaScript fingerprinting technology to identify devices associated with fraudulent transactions, even if the device connects to the Internet using a new IP address and clears cookies.
Bot detection: Automated browsers and scripts often present fingerprints that are inconsistent with real user sessions. Missing hardware concurrency values, unusual navigator properties, or canvas outputs that match known headless browser profiles are signals that fraud detection systems check.
Ad tracking and analytics: Advertising networks use JavaScript fingerprinting techniques to track users while they browse websites for behavioral targeting, particularly as third-party cookie support has narrowed across major browsers.
Account security: Some platforms use fingerprinting as one input into login risk scoring. If a certain device identified using fingerprinting methods does not correspond to the account’s history, it might lead to the raising of additional verification steps.
Limitations
Browser Security: Some browsers like Brave have various functions like Canvas and Audio that combat the effectiveness of fingerprinting. For example, the Firefox browser has a new mode to protect users from fingerprinting by providing values for certain characteristics. However, these new measures have made individual signals less reliable, since even random results can be considered a detectable signal.
Instability over time: Fingerprint properties may vary as a result of different browser updates, new font installations, and attachment of new displays or device reconfigurations. A fingerprint that is accurate today may require some modifications or be matched against a range of similar fingerprints to stay effective.