Screen resolution (screen.width and screen.height) is the size of the whole display as the browser reports it, in CSS pixels. The viewport (window.innerWidth and innerHeight) is only the area where the page is drawn, so it shrinks with the window, toolbars, sidebars and page zoom. Physical resolution is the real number of pixels on the panel, which this tool estimates as CSS pixels times the devicePixelRatio. On a plain monitor at 100% scaling they match, on phones and scaled laptops they differ a lot.