Screen DPI Test
Estimate your screen's pixel density in PPI from its diagonal, and check the browser's nominal inch.
Your screen resolution appears below as soon as the page loads: in CSS pixels, the unit web pages use, and in physical pixels calculated from the pixel ratio. The readings update as you resize the window, zoom or rotate your phone.
—CSS px
≈ — physical px
—CSS px
—
Reading the screen size from your browser
The screen size is the resolution the operating system is using, in CSS pixels after any display scaling. On a scaled display it is smaller than the number of pixels the panel has.
The viewport is the part of the browser window that shows the page, without tabs, toolbars or the window frame. Resizing the window or changing the zoom level changes it. Browsers differ in whether zoom also changes the screen size they report.
The physical size shown here is the screen size multiplied by the device pixel ratio and rounded. It is calculated, not read from the display, so it can differ from the panel's native resolution when scaling and browser zoom are combined.
Runs entirely in your browser. Test results, audio and video never leave your device.
Screen resolution is the number of pixels a display shows across and down, written as width ×height, such as 1920 ×1080. Browsers report it in CSS pixels, after the operating system's display scaling, so a scaled screen reads smaller than its native resolution. The viewport is usually smaller still: only the part of the browser window that shows the page.
Display scaling. To keep text a comfortable size, the operating system scales everything up, so each CSS pixel covers more than one physical pixel, and web pages get the screen size in CSS pixels. Divide the native resolution by the scaling to get the size shown here, or multiply the size shown here by the device pixel ratio to get back to the native resolution. The figures assume browser zoom at 100 percent.
| Native resolution | Scaling | Screen shown here | Device pixel ratio |
|---|---|---|---|
| 1920 ×1080 | 125% | 1536 ×864 | 1.25× |
| 1920 ×1080 | 150% | 1280 ×720 | 1.5× |
| 2560 ×1440 | 125% | 2048 ×1152 | 1.25× |
| 2880 ×1800 | 150% | 1920 ×1200 | 1.5× |
| 3840 ×2160 | 150% | 2560 ×1440 | 1.5× |
| 3840 ×2160 | 200% | 1920 ×1080 | 2× |
The page reads screen.width and screen.height for the screen, window.innerWidth and innerHeight for the viewport, and window.devicePixelRatio, along with the available area, orientation and color depth. The physical figure is the screen size multiplied by the pixel ratio and rounded.
The aspect ratio is reduced from the screen size, longer side first; within 1% of a common shape it reads about 16:9 or similar. A pixel ratio that is not a whole number gives the Looks like N% hint. Values update on resize and rotation, and are read again every second to catch a window moved to another monitor.
Each CSS pixel is drawn 1.25 or 1.5 physical pixels wide. On Windows it usually means display scaling at 125 or 150 percent; in most desktop browsers, page zoom changes it too. Ratios of 2 or more are normal on Retina Macs and phones.
The Aspect ratio row names it. 1920 ×1080 and 2560 ×1440 are 16:9, 1920 ×1200 and 2560 ×1600 are 16:10, some laptops and tablets use 3:2, ultrawide monitors are about 21:9, and many phones are about 19.5:9.
Yes, if the ≈ physical px line under Screen reads 3840 ×2160 with browser zoom at 100 percent. Screen itself is in CSS pixels, so with scaling on, a 4K screen can read like 1440p or 1080p there. The line shows the resolution in use, so a 4K monitor set lower reads lower; on a Mac, check the display's specifications.
Often the resolution is set below the panel's native one, so the display scales the picture up and softens it. Choose the resolution Windows marks Recommended, or Default on a Mac. The grid in the Screen Geometry Test makes this softness easy to see.
Usually a missing or failed graphics driver. Without one, Windows uses a basic display driver that offers only a few resolutions. Install the driver from your PC or graphics card maker, then choose the Recommended resolution. A faulty cable, adapter or KVM switch can also hide the resolutions the monitor supports.
One at your physical resolution: the ≈ physical px line under Screen, read with browser zoom at 100 percent. A larger image with the same aspect ratio also fills the screen sharply.