Pixel Ratio Test

Inspect device pixel ratio alongside screen and viewport dimensions to understand high-density rendering, display scaling and browser zoom.

Check the relationship between CSS pixels and device pixels reported by your browser.

Pixel Ratio Test

Inspect device pixel ratio alongside screen and viewport dimensions to understand high-density rendering, display scaling and browser zoom.

How to use the tool

  1. Note the current zoom level.
  2. Inspect the ratio and dimensions.
  3. Change zoom or move monitors, then inspect again.

Example and interpretation

At ratio 2, a 100 CSS-pixel element commonly uses around 200 device pixels across its raster representation. The ratio is a scaling report, not a measured physical dot pitch.

Limits

The page reads devicePixelRatio and browser dimensions. It does not measure pixels per inch, print resolution or panel quality. Zoom and operating-system scaling can change the ratio.

Troubleshooting

Restore a known zoom before comparing devices. A larger ratio alone does not establish better image quality.

Frequently asked question

Does ratio 2 identify a Retina display?

No. Several hardware and software configurations can produce the same browser ratio.

Technical reference

devicePixelRatio — MDN.

Use Screen Resolution Test when comparing screen and viewport sizes. Neither page measures physical screen size.