Available Screen Space

Back to Main

Your Available Screen Space

Loading...

This is your screen size excluding taskbars, docks, and system UI elements.

1. Technical Classification

Display Hardware JavaScript API Screen Object OS Configuration

Available screen space is accessed through screen.availWidth and screen.availHeight, which report the usable screen dimensions excluding operating system UI elements:

2. Background & Purpose

The availWidth and availHeight properties were introduced alongside the basic width and height properties to give developers access to the usable screen space, not just the total resolution.

Why This Distinction Matters

Operating systems reserve screen space for persistent UI elements:

Original Use Cases

Example Calculation

Total Screen: 1920×1080 (screen.width × screen.height)

Windows Taskbar: 40 pixels at bottom

Available Space: 1920×1040 (screen.availWidth × screen.availHeight)

Difference: The available height is 40 pixels less, accounting for the taskbar

3. Platform-Specific Behavior

Windows

Taskbar Configuration Total Resolution Available Space Difference
Taskbar at bottom (default) 1920×1080 1920×1040 -40 height
Taskbar on left side 1920×1080 1880×1080 -40 width
Taskbar hidden (auto-hide) 1920×1080 1920×1080 No difference
Large taskbar icons 1920×1080 1920×1032 -48 height

macOS

Configuration Total Resolution Available Space Difference
Menu bar + Dock (bottom) 2560×1440 2560×1355 -25 top, -60 bottom
Dock hidden (auto-hide) 2560×1440 2560×1415 -25 top only
Dock on left/right side 2560×1440 ~2490×1415 -70 width, -25 top

Mobile Devices

On mobile devices, the distinction between total and available screen space is less consistent:

4. Legitimate Uses

Window Management

// Center a 800×600 popup in available space const left = (screen.availWidth - 800) / 2; const top = (screen.availHeight - 600) / 2; window.open(url, 'popup', `width=800,height=600,left=${left},top=${top}`);

Full-Screen Applications

Responsive Design

5. Browser & OS Differences

Consistency Across Browsers

All major browsers (Chrome, Firefox, Safari, Edge) implement screen.availWidth/Height consistently within the same operating system. The values depend on OS configuration, not the browser.

Multi-Monitor Setups

What Gets Reported?

Traditional Behavior: Reports the available space of the primary monitor only

Modern APIs: The newer Screen Orientation API and Window Management API can access information about multiple displays, but screen.availWidth/Height still refers to the primary screen

Edge Cases

6. Privacy Implications & Tracking Risks

Privacy Risk: MEDIUM

Available screen space provides additional fingerprinting information beyond basic screen resolution, revealing details about your operating system configuration and user preferences.

What Available Screen Space Reveals

1. Operating System UI Configuration

The difference between total resolution and available space can reveal:

  • Taskbar location: Bottom, top, left, or right side
  • Taskbar size: Small icons, large icons, or multiple rows
  • Dock visibility: Whether macOS dock is hidden or visible
  • Desktop environment: On Linux, which DE you're using (GNOME, KDE, etc.)

2. User Preferences & Habits

Certain configurations reveal usage patterns:

  • Power Users: Auto-hide taskbars (no difference between total/available) suggest advanced users
  • Vertical Taskbar: Indicates potential multi-monitor setup or specific workflow preferences
  • Large Icons: May indicate accessibility needs or visual preferences

Combined Fingerprinting

While available screen space alone isn't highly unique, it adds entropy to fingerprinting when combined with:

Fingerprinting Example

User A: 1920×1080 total, 1920×1040 available → Windows with bottom taskbar

User B: 1920×1080 total, 1920×1080 available → Windows with hidden taskbar OR Linux

User C: 1920×1080 total, 1880×1080 available → Windows with side taskbar

These differences, while subtle, contribute 1-2 bits of identifying information.

Low Risk Compared to Other Attributes

Available screen space is less risky than:

But more risky than:

7. Protection & Mitigation

1. Tor Browser Protection

Standardized Reporting

Tor Browser reports fake, standardized values for both screen.width/height and availWidth/availHeight, making all users indistinguishable.

Effectiveness: Complete protection against this specific fingerprinting vector

2. Brave Browser

Fingerprinting Protection

With strict fingerprinting protection enabled, Brave randomizes or rounds screen values to reduce uniqueness.

Effectiveness: Partial protection; reduces precision but doesn't eliminate fingerprinting

3. Adjust Taskbar Settings (Not Recommended)

Changing your taskbar configuration solely for privacy purposes is impractical and provides minimal benefit:

4. Browser Extensions (Limited Effectiveness)

Some anti-fingerprinting extensions attempt to spoof screen values, but this can:

Practical Recommendations

  1. General Browsing: Use Firefox or Brave with tracker blocking; accept that available screen space is exposed
  2. Privacy-Sensitive Activities: Use Tor Browser for complete protection
  3. Multi-Layered Approach: Focus on blocking third-party trackers and cookies rather than individual fingerprint attributes
Important Context

Available screen space is one small piece of the fingerprinting puzzle. Focus your privacy efforts on higher-impact protections like blocking third-party cookies, using tracker blockers, and avoiding suspicious websites.

8. Learn More