Screen fingerprint: why screen size cannot be spoofed
What a browser's screen fingerprint reads, why a spoofed screen size fails against the real desktop in both directions, and which values must agree.

Davide Valli · Founder, Scalebrowser
Published Nov 22, 2026 · 5 min read
Short answer

Screen size looks like the easiest value in a fingerprint to change. It is a pair of numbers, many automation tools expose a setting for it, and a common resolution seems like a safe choice. We treated it that way ourselves until July 2026, when two measurements on one Windows desktop showed that a claimed screen fails whether it is bigger or smaller than the real one.
What is a screen fingerprint?
A screen fingerprint is the part of a browser fingerprint that describes the display: the values a page reads about the screen, the area the operating system leaves free, the pixel density and the browser window placed on it. The phrase also names the fingerprint sensors built into phone screens; this article is about the browser values.
| Value | What it measures | Who decides it |
|---|---|---|
screen.width, screen.height | the display in CSS pixels | the monitor and the display scale |
screen.availWidth, screen.availHeight | the area left after the taskbar or dock | the operating system |
window.devicePixelRatio | device pixels per CSS pixel | the display scale setting |
window.outerWidth, innerWidth and their heights | the browser window and its viewport | the window manager and the user |
screen.colorDepth | bits per pixel | the display driver |
None of these values is rare on its own, and every one of them is decided by something outside the browser.
Can websites fingerprint your screen resolution?
Yes, any website can read the screen resolution and the related values with one line of JavaScript each, without a permission prompt and without the visitor noticing:
const display = {
screen: [screen.width, screen.height],
avail: [screen.availWidth, screen.availHeight],
ratio: devicePixelRatio,
window: [outerWidth, outerHeight, innerWidth, innerHeight],
}MDN's availHeight reference explains why the available area differs from the screen: on Windows it "accounts for the taskbar and any other interface elements that reserve space", and it "can be no larger than the value of window.screen.height". The taskbar height, the scale setting and the window size together describe one desktop more closely than the resolution alone.
Why does a spoofed screen size get detected?
A spoofed screen size gets detected because the desktop answers back in both directions: the window cannot grow past the real monitor, and fullscreen always fills it. The WHATWG Fullscreen standard, last updated 17 July 2026, lets a fullscreen request resize the viewport to the "full dimensions of the screen of the output device". A page that goes fullscreen once on a user gesture and compares its viewport with screen.height has measured the real monitor against the claimed one. We ran both directions on one Windows desktop of 1920 by 1080 pixels with a work area of 1920 by 1032.
| Claimed screen | State | Measured by the page | Claimed value | Gap |
|---|---|---|---|---|
| 1920 by 1200 | maximised | outerHeight 1032 | availHeight 1152 | 120 pixels |
| 1920 by 1200 | fullscreen | innerHeight 1080 | screen.height 1200 | 120 pixels |
| 1280 by 720 | fullscreen | window of 1293 by 727 | a real browser fills 1920 by 1080 | the whole rest of the monitor |
The second row is a state no real browser produces: a fullscreen viewport smaller than the screen it claims to fill. The third row is the other direction, a claim small enough that fullscreen could not reach the monitor Windows sized it for, and three times, with claimed screens of 1280 by 720, 1366 by 768 and 1536 by 864, the fullscreen request did not return for minutes. Neither a larger nor a smaller value survived, which leaves exactly one value without a contradiction: the real desktop. We switched to it on 30 July 2026.
What does the pixel ratio add?
The pixel ratio adds the divisor between CSS pixels and device pixels, so a wrong ratio breaks every other screen value at once. The browser draws the page at the ratio the display scale sets, and media queries such as resolution report the same ratio. A ratio that is only claimed, while the page is drawn at another one, contradicts the drawing itself, which is why our coherence page lists the display scale among the three values taken from the machine.
Which screen values must agree with each other?
Four relations between the screen values hold on every real desktop, and each takes a checker one comparison:
- The available area lies within the screen.
availWidthandavailHeightcan equal the screen, for a hidden taskbar, but never exceed it. - A maximised window fits the available area. Its outer size matches the work area the operating system leaves free.
- A fullscreen viewport equals the screen.
innerWidthandinnerHeightreachscreen.widthandscreen.height. - The pixel ratio matches the media queries and the drawing.
devicePixelRatio, theresolutionmedia feature and the size of the rendered page all report one scale.
This is the geometry a checker compares, and none of the four relations needs to know which screen is common. A claimed value fails the first comparison that involves the real desktop, whatever the value is.
Why do all profiles on one machine share a screen?
All profiles on one machine share a screen because the host's own desktop is the only value that nothing on the machine contradicts. Scalebrowser reads the monitor size, the work area and the display scale from the host and adopts them as 1 whole cluster when a profile is created and again at every launch, so a profile moved to another machine takes that machine's desktop at its next start. The cost is deliberate: two profiles on the same computer report the same screen, just as two browsers on the same computer do, and so does every other machine with the same monitor and scale setting.
To check your own setup, run the snippet above in the browser your agent uses and in your everyday Chrome on the same machine, then go fullscreen in both. The numbers should match, and in fullscreen the viewport should equal the screen. The coherence page describes the other values a profile takes from the host. How a site reads the way a tab was opened is covered in Referer header and Sec-Fetch-Site.