Detect Screen Resolution: DPI, Viewport & Pixel Ratio

Understanding screen resolution

Screen resolution refers to the number of pixels your display can show, expressed as width x height (e.g., 1920x1080). Higher resolutions mean more pixels and sharper images. Understanding your screen resolution is important for choosing wallpapers, optimizing images, designing responsive websites, and troubleshooting display issues.

Physical resolution vs CSS pixels

Modern devices use two different pixel measurements:

The ratio between physical and CSS pixels is the device pixel ratio (DPR). A DPR of 2 means each CSS pixel maps to a 2x2 grid of physical pixels.

What is DPI and why does it matter?

DPI (dots per inch) measures pixel density — how many pixels fit in one inch of screen. Higher DPI means sharper, more detailed images:

For responsive design, DPI determines which image resolution to serve: standard images for 96 DPI screens, 2x images for retina displays.

How to check your screen resolution

The fastest way is to use our screen resolution detector, which instantly shows your physical resolution, CSS resolution, device pixel ratio, and viewport size.

You can also check manually:

Viewport size for web design

The viewport is the visible area of a web page in the browser. It's smaller than the screen resolution because of browser chrome (address bar, bookmarks bar, etc.).

Common viewport breakpoints for responsive design:

Common screen resolutions in 2025

The most popular resolutions according to global statistics:

Resolution and responsive web design

For web developers, understanding resolution helps create better responsive designs:

Try our free tools

Frequently Asked Questions

How do I find my screen resolution?
Use our free screen resolution detector tool. It instantly shows your physical resolution, CSS resolution, device pixel ratio, and viewport size directly in your browser.
What is device pixel ratio?
Device pixel ratio (DPR) is the ratio between physical pixels and CSS pixels. A DPR of 2 (common on retina displays) means each CSS pixel is rendered using 4 physical pixels (2x2 grid).
What resolution should I design for?
Start with mobile-first design at 375px width, then add breakpoints at 768px (tablet), 1024px (laptop), and 1440px (desktop). Always use responsive CSS rather than targeting specific resolutions.
What is the difference between resolution and viewport?
Resolution is the total number of pixels on your screen. Viewport is the visible area of the web page in the browser, which is typically smaller due to browser UI elements like the address bar.