◉ DPR Detection

Pixel Ratio Test

Test your screen's device pixel ratio (DPR). Detect Retina, HiDPI, and standard displays in one click.

Advertisement
—
Device Pixel Ratio (DPR)
Physical Resolution
—
CSS Resolution
—
Display Type
—
Color Depth
—

What is device pixel ratio?

Device Pixel Ratio (DPR) is the ratio of physical pixels to CSS (logical) pixels on your screen. A DPR of 2 means there are 4 physical pixels (2×2) for every CSS pixel, resulting in a sharper display — known as Retina on Apple devices.

Standard monitors have a DPR of 1. Most modern smartphones have DPR of 2-4. This matters for web developers who need to serve higher-resolution images for HiDPI displays.

Advertisement

DPR and web development

On DPR 2 screens, a 200x200 CSS image renders at 400x400 physical pixels. Standard resolution images appear blurry on Retina displays. Web developers use srcset to serve 2x images for DPR 2 and 3x for DPR 3 screens, and the CSS media query for min-device-pixel-ratio targets Retina displays.

DPR by device

Standard desktop monitors: DPR 1.0-1.5. MacBook Pro Retina: DPR 2.0. iPhone 14 and later: DPR 3.0. Most Android flagships: DPR 2.5-4.0. Budget Android phones: DPR 1.5-2.0. Higher DPR means sharper images at the same physical size.

What is device pixel ratio? +
DPR is the ratio of physical to CSS pixels. DPR 2 means 4 physical pixels per CSS pixel, producing sharper images on Retina displays.
What is a Retina display? +
Apple term for DPR 2 or higher, where individual pixels are too small to distinguish at normal viewing distance. Also called HiDPI on other platforms.
Does DPR affect web performance? +
High-DPR displays need larger image files for sharp rendering. Sites not serving 2x or 3x images appear slightly blurry on Retina screens.
What DPR does my phone have? +
iPhone 14 and later: DPR 3. Samsung Galaxy S series: DPR 3-4. Google Pixel 8: DPR 2.6. Budget Androids: DPR 1.5-2. Use this tool to check your specific device.