All toolsDisplay
Viewport size test
Read the browser viewport, screen dimensions and device pixel ratio.
Questions about Viewport size test
Why does the viewport size differ from my monitor resolution?
The viewport is the space the browser makes available to the page, measured in CSS pixels.
The browser’s screen size is also reported in CSS pixels. Window size, display scaling and page zoom can make those numbers differ from the panel’s physical pixel dimensions.
Which viewport number changes when I pinch to zoom?
On a browser that reports the visual viewport, the value labeled Visible at current zoom shows the portion of the page currently in view.
Compare it with Browser viewport, which describes the browser’s layout viewport. The effect can differ between pinch zoom and the browser’s page zoom controls.
What does device pixel ratio mean for a screenshot or layout?
Device pixel ratio describes how device pixels relate to CSS pixels at the current settings.
Use CSS viewport width to check layout breakpoints. The separate pixel density calculator can estimate physical screen density if you know the display’s resolution and diagonal.