Complete User Guide to Screen Resolution, Browser Viewport, DPR & Aspect Ratios

How Viewport Size, Screen Resolution, and Device Pixel Ratio (DPR) Relate

When designing responsive websites, debugging UI scaling, or checking monitor display settings, understanding the difference between CSS viewport dimensions (window.innerWidth × window.innerHeight), screen dimensions (screen.width × screen.height), and Device Pixel Ratio (DPR) (window.devicePixelRatio) prevents layout confusion. On high-DPI ("Retina") displays or when OS display scaling is set to 125% or 150%, a single CSS layout pixel maps to multiple physical or scaled device pixels across each axis—meaning a 1536×864 CSS viewport at 1.25x scaling corresponds to 1920×1080 scaled pixels. Furthermore, browser sidebars, developer tools, or zoomed pages change your active viewport size immediately without altering your monitor's hardware resolution. A browser-based Screen Resolution Tester measures all of these values live 100% locally in your browser—with zero server uploads.

How to Test Your Screen & Viewport in 3 Easy Steps

  1. View Your Live Viewport & DPR Metrics: The studio reads your current viewport width and height, screen size, DPR multiplier, color depth, and orientation automatically on load.
  2. Resize Your Window or Test Fullscreen: Drag your browser window edge, open or close DevTools, or click Toggle Fullscreen to observe real-time dimension and responsive breakpoint updates.
  3. Copy or Export Display Specs: Click Copy Resolution Specs or Download .txt to save a clean summary of your display metrics.

Scaled Pixel & Aspect Ratio Formulas

Using simplified ratio integers (W / gcd, H / gcd) and dpr = window.devicePixelRatio:

Scaled Pixels = round(innerWidth × DPR) × round(innerHeight × DPR)
Aspect Ratio = (Width / gcd(Width, Height)) : (Height / gcd(Width, Height))

Helpful Tips for Responsive Design & Display Checks

Worked Example: A 1920×1080 (Full HD) monitor with Windows display scaling set to 125% (DPR = 1.25) presents a 1536×864 CSS layout space when maximized, maintaining a crisp 16:9 (1.78) widescreen aspect ratio.

Common Screen Resolutions, Aspect Ratios & Breakpoints Table (16 Rows)

Use this reference table to compare standard resolutions, aspect ratios, and responsive width tiers.

Resolution / Tier Dimensions (px) Aspect Ratio Notes
Mobile Compact 360 × 800 / 390 × 844 9:20 / 9:19.5 Portrait smartphone viewport
Tablet Portrait / Small 768 × 1024 3:4 Classic tablet portrait size
HD Ready (720p) 1280 × 720 16:9 (1.78) Standard HD widescreen
WXGA Laptop 1366 × 768 ~16:9 (1.78) Common budget laptop panel
Full HD (1080p) 1920 × 1080 16:9 (1.78) Most common desktop/laptop FHD
WUXGA (16:10 Laptop) 1920 × 1200 16:10 (1.60) Extra vertical productivity space
QHD / 1440p (2K) 2560 × 1440 16:9 (1.78) High-res desktop & gaming
4K UHD (2160p) 3840 × 2160 16:9 (1.78) Ultra-high-definition display
Ultrawide 21:9 2560 × 1080 / 3440 × 1440 21:9 (~2.33–2.39) Wide multi-window workspace
window.innerWidth CSS layout width inside browser Excludes scrollbars/chrome Primary CSS media-query width
window.devicePixelRatio Scaling factor (e.g., 1, 1.25, 2) CSS-to-device pixel ratio Affects sharp canvas/image assets
Copy & Download Specs .txt / Clipboard Exports full display snapshot Local plain-text output
Client-Side Engine Browser JavaScript Viewport, Screen & DPR Inspector — Zero Server Latency
Server Uploads None — Your display metrics stay strictly inside your browser
Privacy Status 100% Local Processing — Zero screen telemetry transmitted
No Sign-Up Required Instant browser display test with zero registration

Checking for dead pixels, inspecting browser fingerprint signals, testing your webcam or keyboard, or formatting JSON? Explore our companion client-side tools:

Frequently Asked Questions

The viewport measures the inner document area inside your browser window in CSS pixels—if OS display scaling is above 100% (e.g., 125% or 150%), browser zoom is above 100%, or the window is not full-screen, the CSS viewport dimensions are smaller than raw hardware pixels.
window.devicePixelRatio is the ratio between physical/scaled device pixels and CSS pixels along one axis—a 2.0x DPR means 2×2 = 4 device pixels represent each CSS pixel square.
Never. All screen, viewport, and DPR readings run 100% client-side inside your browser.
Yes! It is completely free with no sign-up required.