🖥️ Window & Viewport Size Detection

Live browser viewport metrics. Resize your browser window to see values update in real time.

0 px
Viewport Width (innerWidth)
0 px
Viewport Height (innerHeight)
0 px
Browser Outer Width
0 px
Browser Outer Height
0 × 0
Physical Screen Resolution
1.0x
Device Pixel Ratio (DPR)
24 bit
Screen Color Depth
Landscape
Screen Orientation

Difference Between innerWidth vs outerWidth

window.innerWidth: Measures the interior width of the browser window's content area (viewport) that displays HTML, excluding browser tabs, address bars, and developer tools. This is what CSS media queries (@media (max-width: ...)) measure.
window.outerWidth: Measures the full outer width of the entire operating system window, including side borders and window frames.