Practical Guide

Screen Size Test - Display Resolution & Device Info — Usage Guide and Technical Principles

Check your screen resolution, pixel density, device type, and viewport dimensions. Perfect for responsive design testing and device diagnostics.

Open tool

Overview

Screen size testing displays device screen resolution, pixel density, viewport dimensions, and display properties. It helps developers verify responsive design breakpoints, test cross-device layouts, and diagnose display issues. Essential for responsive web design, mobile app development, and ensuring optimal user experience across different screen sizes and device types.

Key concepts

Screen Resolution and Display Metrics

Screen resolution represents pixel dimensions of display (width × height). Common resolutions: HD (1280×720), Full HD (1920×1080), QHD (2560×1440), 4K UHD (3840×2160), 8K (7680×4320). Screen object properties: screen.width/height (total screen pixels), screen.availWidth/availHeight (usable area excluding taskbar/dock), screen.colorDepth (bits per pixel for color representation), screen.pixelDepth (bits per pixel including alpha channel).

Viewport and Window Dimensions

Viewport represents visible page area within browser window. Window dimensions (window.innerWidth/innerHeight) include scrollbars and browser UI. Viewport dimensions (document.documentElement.clientWidth/clientHeight) exclude scrollbars. Available screen (screen.availWidth/availHeight) excludes OS UI (taskbar, dock, menu bar). These measurements differ: fullscreen applications use screen dimensions, responsive layouts use viewport dimensions, and

Color Depth and Display Quality

Color depth determines color representation capability. 24-bit color (8 bits per RGB channel) provides 16.7 million colors (True Color). 32-bit includes 8-bit alpha channel for transparency. Pixel depth (screen.pixelDepth) matches colorDepth on modern displays. HDR (High Dynamic Range) displays extend beyond standard color depth with wider color gamuts (DCI-P3, Rec. 2020) and higher bit depths (10-bit, 12-bit) for greater contrast and

Features

Screen Resolution

Display full screen resolution and available dimensions

Pixel Density

Show device pixel ratio and estimated PPI

Device Detection

Automatically detect device type (mobile/tablet/desktop)

Viewport Info

Real-time window and viewport dimension tracking

Use Cases

Daily productivity

Use Screen Size Test to complete common utility tasks faster without installing a dedicated desktop application.

Validation and review

Screen Size Test helps check output, compare values, prepare examples, and reduce manual mistakes in routine work.

Documentation support

Create clearer examples with Screen Size Test for notes, tutorials, support tickets, and internal knowledge base content.

Frequently asked questions

What is Device Pixel Ratio?

Device Pixel Ratio indicates how many physical pixels correspond to one CSS pixel. For example, 2x means one CSS pixel is composed of 2×2=4 physical pixels. High pixel ratio devices (like Retina displays) show sharper content but require higher resolution image assets.

Why are my screen resolution and viewport size different?

Screen resolution is the total pixel dimensions of the entire display, while viewport size is the visible content area within the browser window. Viewport is affected by browser toolbars, address bars, scrollbars, etc., and is typically smaller than screen resolution.

What is PPI (Pixels Per Inch)?

PPI measures screen pixel density - higher values mean sharper displays. Standard monitors have ~96 PPI, laptops ~110-140 PPI, Retina displays reach 200-400 PPI, and smartphones can achieve 300-500 PPI.

How do I use this tool to test responsive design?

1) Open this page on different devices to view their screen information; 2) Resize the browser window to observe viewport changes; 3) Compare whether breakpoints trigger at appropriate sizes; 4) Verify device type detection accuracy.

What's the difference between physical pixels and screen pixels?

Screen pixels are CSS pixels (logical pixels), while physical pixels are the actual hardware pixels of the display. On high-DPI devices, physical pixels = screen pixels × device pixel ratio². For example, a 1920×1080 screen on a 2x device actually has 3840×2160 physical pixels.

Why do dimensions differ between fullscreen and windowed mode?

In windowed mode, the browser displays address bar, toolbars, tab bar and other UI elements that occupy screen space. Fullscreen mode hides these elements, making viewport size close to available screen size. Available screen size also excludes OS taskbar, dock, etc.

Related documentation

Screen Size Test - Display Resolution & Device Info

Open the tool to try these features.

Open tool