Learn / Screen
What is screen and viewport fingerprinting?
A tracking method that identifies browsers by measuring display characteristics, density, and the shape of the visible window.
- Layer
- Display metrics, browser window state, and device class signals
- Inputs
- Screen resolution, available area, devicePixelRatio, color depth, viewport and chrome deltas
- Why it matters
- It narrows the client population and supports or contradicts other identity claims
The basics
Screen and viewport values look ordinary, but together they say a lot about the device in front of the browser.
Every browser exposes a set of display metrics so sites can lay out pages properly. Those same measurements also help identify the kind of machine a person is using. A fingerprinting script can inspect screen dimensions, available desktop area, pixel density, viewport size, and the size of the browser chrome without doing anything unusual or visible.
Individually, many of these values are common. A 1920×1080 display by itself does not identify much. The picture changes when that resolution is paired with a specific devicePixelRatio, a certain browser toolbar height, and a platform profile that suggests a particular desktop or mobile environment.
That is why screen and viewport measurements are rarely used in isolation. They are supporting signals that become more powerful when they line up cleanly with graphics, navigator, locale, and network-level data.
How it works
The browser exposes both the full display and the exact shape of the current window.
-
1. The page reads display metrics
JavaScript can query screen width, height, available dimensions, color depth, window size, and devicePixelRatio immediately after the page loads.
-
2. The values are turned into a display profile
Those measurements describe the monitor class, density, browser chrome size, and sometimes how the operating system has configured its desktop environment.
-
3. The profile is compared against known browser patterns
A common 1920×1080 display is less distinctive than an ultrawide monitor, an unusual pixel ratio, or a viewport pattern that strongly suggests a specific browser or device category.
-
4. The signal is combined with surrounding context
Display metrics become much more useful when they are paired with platform strings, locale, graphics behavior, and timing data that support the same client story.
Why it matters
These measurements help classify the device even when they do not look unique at first glance.
-
Displays narrow populations quickly
A standard laptop resolution is common, but a rarer monitor layout, a specific devicePixelRatio, or a distinct browser chrome delta can shrink the set of matching browsers substantially.
-
It helps identify device class
Screen dimensions and density often reveal whether the client looks like a phone, tablet, Retina laptop, standard desktop monitor, or multi-monitor workstation.
-
Private mode does not change much
Incognito windows and cookie clearing leave the underlying display and windowing environment largely untouched, so these measurements remain useful across sessions.
Screen data is especially useful because it tends to stay stable across sessions unless the user changes monitors, scaling, or windowing behavior.
How 404 addresses it
404 reduces the value of display-based fingerprinting by making the broader browser profile harder to correlate.
Screen and viewport values become most useful when they reinforce other fingerprinting layers. 404 weakens that overall correlation by addressing the surrounding browser and network signals that sites combine with display metrics to recognize a client across sessions.
The practical goal is not to pretend display values do not exist. It is to prevent them from serving as one more stable input in a clean, high-confidence fingerprint.
Further reading
If you want to inspect the display layer in more detail, start here.
-
MDN Screen API
Reference documentation for the display properties available to page scripts.
Open resource -
MDN devicePixelRatio
Background on how browsers expose display density and scaling behavior.
Open resource -
EFF Cover Your Tracks
A practical way to see how your browser appears when multiple signals are combined.
Open resource -
Am I Unique?
Useful for understanding how display metrics contribute to a broader fingerprint.
Open resource