Device Pixel Ratio Checker
Your Device Pixel Ratio
Detecting…
- Retina Display
- Detecting…
- Screen Resolution
- Detecting…
Check your device pixel ratio (DPR) and find out if you have a Retina or HiDPI display. See your screen pixel density scaling factor instantly.
Last updated
Check next
All display toolsHow to use this tool
- Your device pixel ratio (DPR) is shown in the Live Result box when the page loads.
- Check the "Retina Display" value below it for a simple yes or no answer.
- Make sure browser zoom is at 100% (Ctrl/Cmd + 0) before reading the value, because zoom changes the DPR.
What is it?
Device Pixel Ratio (DPR) is the ratio between physical pixels on your hardware screen and logical CSS pixels used by your browser. A DPR of 2 means each CSS pixel actually maps to a 2×2 grid of physical pixels. A display with a DPR of 2 or higher is what Apple calls a Retina display and what Windows and Android call HiDPI — it packs more physical pixels into the same logical space for sharper text and images.
How it works
The tool reads window.devicePixelRatio, which is the number of physical screen pixels used to draw one CSS pixel. The value combines the hardware pixel density, your operating system's display scaling and the browser zoom level. A display is reported as Retina/HiDPI when the ratio is 2 or more. The value updates automatically if you move the window to a different monitor.
Why this matters
DPR affects image sharpness, font rendering, and canvas element resolution. Developers must serve higher resolution assets (like @2x or @3x images) for high-DPR screens, otherwise graphics will appear blurry.
Practical Use Cases
- Web Developers determining if they need to serve higher-resolution WebP/AVIF images to a client.
- Graphic Designers verifying if a monitor supports Retina display scaling for pixel-perfect design work.
- Troubleshooting blurry HTML5 Canvas or WebGL rendering on high-end laptops.
How to check manually
Windows 11 / 10
Open Settings → System → Display → Scale. 100% means a DPR of 1, 125% means 1.25, 150% means 1.5 and 200% means 2.
macOS
All built-in displays on current MacBooks and iMacs are Retina (DPR 2). External monitors usually report a DPR of 1 unless they are 4K or 5K and set to a "looks like" scaled resolution.
Browser console
Open the developer console and type window.devicePixelRatio, then press Enter.
Common values
| Label | Value |
|---|---|
| Standard display (not Retina) | 1 |
| Windows laptop at 125% / 150% scaling | 1.25 / 1.5 |
| Retina / HiDPI | 2 |
| High-end mobile | 3 |
Troubleshooting
- DPR shows 1 on a Retina Mac
- Ensure browser zoom is at 100%. Zoom levels can affect reported DPR in some browsers. Also ensure you are not using an external non-Retina monitor.
- DPR changes when I zoom the page
- Browser zoom multiplies the reported DPR. At 200% zoom on a standard display, the browser reports a DPR of 2. Reset zoom to 100% (Ctrl/Cmd + 0) for the true hardware value.
Frequently asked questions
What is device pixel ratio?
Device pixel ratio is the mathematical ratio between physical pixels on your screen and the logical pixels your operating system uses to draw interfaces.
What DPR is considered Retina?
A DPR of 2 or higher is generally considered a Retina or HiDPI display by modern standards.
Do I have a Retina display?
Check the "Retina Display" value under the main result on this page. If your device pixel ratio is 2 or higher, you have a Retina or HiDPI screen. Most MacBooks, iPhones, iPads and modern Android phones qualify; most standard 1080p desktop monitors do not.
Why does my Windows laptop show a DPR of 1.25 or 1.5?
Windows display scaling (Settings → Display → Scale) sets the DPR directly. 125% scaling gives a DPR of 1.25 and 150% gives 1.5. These are HiDPI-scaled displays, but below the DPR of 2 usually called Retina.
How do I serve sharp images for high-DPR screens?
Use the srcset attribute with 1x, 2x and 3x versions of each image, or width descriptors with a sizes attribute, and let the browser pick. For icons and logos, prefer SVG, which is sharp at any DPR.
Is a higher device pixel ratio always better?
Higher DPR makes text and images sharper, but the GPU has to draw more pixels, which costs battery life and performance. Above about 3 the extra sharpness is hard to see at normal viewing distance.
Explore more diagnostics
Visit the DeviceScope homepage for a complete live dashboard, or browse all display & screen tests.