Screen width and height
The monitor or phone screen size in CSS pixels, plus the usable area.
In one line
Can see your screen width and height, and the usable area, in page units
The monitor or phone screen size in CSS pixels, plus the usable area.
Identifies device model families (iPhone 390x844) and monitor setups (1920x1080, 2560x1440, 3440x1440). Safari 26 and Firefox protections spoof or round it for known scripts; Firefox RFP returns the window size.
What it can and can't do
What the user does: Nothing. It happens when the page loads.
It can
- Check the screen's width and height
- Check the usable area, without the taskbar
- Choose a layout that fits
It cannot
- Learn the true pixel count on scaled or Retina screens
- See your other monitors
- Tell your monitor model
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 1 | 2008-12-11 | None |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 1 | 2004-11-09 | None |
| Safari | Supported | 1 | 2003-06-23 | None |
| Safari on iPhone | Supported | 1 | 2007-06-29 | None |
| Chrome on Android | Supported | 18 | 2012-06-27 | None |
| Samsung Internet | Supported | 1.0 | 2013-04-27 | None |
How a site asks for it
| API | screen.width, screen.height, screen.availWidth, screen.availHeight |
| Browser compat keys | api.Screen.widthapi.Screen.heightapi.Screen.availWidth |
| How access is granted | none |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | read fresh on every page load; nothing stored |
| How to take it back | none needed (no grant) |
| Inside an iframe | Readable from cross-origin iframes too (same values) |
Typical flow
- Page script reads the value
- No prompt is shown
Data you get
Shape: object
How often: static per session
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
width, height | integer | CSS px | 320 to 7680; typical 1920x1080, 1440x900, 390x844, 360x800 | exact, except under RFP or AFP |
availWidth, availHeight | integer | CSS px | less than width, height by taskbar size | exact |
Technical limits
- Does not give physical size or PPI
- iOS reports points, not pixels, so many iPhones share values
The story
What it is
The size of your monitor or phone screen in page units, plus its usable area.
For you
You never see it read. It is why a site can fit a big monitor or a small phone, and send the right layout from the start.
For makers
It is one of the oldest and most common signals. Makers use it for layout and analytics. Trackers combine it with other facts to tell your device apart from similar ones.
Where you see it
| Type | Example | Apps |
|---|---|---|
| games | A browser game sets its canvas to fit the screen and chooses touch or mouse controls. | None named |
| analytics | A site team sees that 55 percent of visitors use 1920 by 1080 and designs for it. | Google Analytics |
| ads | An ad server picks a banner size that fits the screen, and also keeps the size in a device profile. | None named |
| security | A fraud service sees a screen size that no real device has and flags the visit as an emulator. | None named |
| shopping | A store picks a layout and image sizes for phone, tablet or wide monitor. | None named |
| video | A streaming site picks its first video quality from the screen size. | YouTube |
Risks
- Fingerprint clue
- Reveals device model
What the platform says
- MDN: Screen. Documents the object a page reads to learn the width and height of the user screen.
Good uses and abuse
Legitimate uses
- Responsive layout
- Choose image size
Known abuse
- Device identification
- Monitor setup profiling
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 1 of 5 | How revealing the data is |
| Utility | 5 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 4.8 | Rough identifying entropy, when known |
A real example: LinkedIn
Collector key(s): screenResolution, availableScreenResolution. BleepingComputer confirms screen resolution.
History
- 2016-06, paper: AmIUnique: screen resolution 4.83 bits
- 2025-09, Safari 26: Advanced Fingerprinting Protection stops known fingerprinting scripts reading screen dimensions reliably
- 2025-11, Firefox 145: Taskbar and dock size hidden from screen APIs in all modes; wider protections in Private Browsing and ETP Strict
Related capabilities
Related
- Window inner and outer size. Can see your browser window and visible page size, as they change
Sources
- fingerprintjs source: screen_resolution
- AmIUnique: Beauty and the Beast, Laperdrix et al. 2016 (attribute entropy)
- WebKit features in Safari 26.0 (fingerprinting protection)
- Mozilla Security Blog 2026-11-10: harder to fingerprint
- MDN Screen
- BleepingComputer: LinkedIn scans for 6,000+ Chrome extensions
- mdp/linkedin-extension-fingerprinting (LinkedIn script snapshot and ID list)
How well checked: Checked against real behavior.