TestMyFPSDisplay Test Suite
Display info

What Is My Resolution? Detect Screen, Viewport & DPR

See exactly what your browser thinks your screen is — viewport size, screen resolution, available space, device pixel ratio, aspect ratio and color depth. Useful for web development, gaming setup, and verifying your monitor is running at full resolution.

Loading…
The basics

The four different 'resolutions' on your screen

There are four different numbers that all get called "resolution" in everyday speech. Knowing which one you mean matters — they describe different things, and they are usually different values on the same monitor. Here is the full breakdown:

TermWhat it meansExample
Native panel resolutionThe actual number of physical pixels on the panel. Set by the manufacturer; cannot be changed.3840 × 2160 on a 4K monitor
Operating system resolutionWhat the OS sends to the monitor. Usually equals native, but can be lower for performance.2560 × 1440 on a 4K monitor (downscaled)
Screen resolution (CSS)What the browser reports as window.screen.width/height. Includes OS scaling.1920 × 1080 at 200% scaling on 4K
Viewport size (CSS)The actual drawable area inside the browser window. What websites care about.1903 × 945 (after browser chrome)
i
Why this matters for gaming
Games usually run at the OS resolution (also called "desktop resolution"), not the native panel resolution. If your OS is set to 1080p on a 4K monitor with 200% scaling, the game will render at 1080p even though your monitor can display 4K. To get the full 4K experience, set scaling to 100% before launching the game, or use the in-game resolution selector if the game supports it.

Understanding device pixel ratio (DPR)

Device pixel ratio exists because physical screens got so dense that interface elements drawn at one-pixel-per-pixel became unreadable. A 4K monitor at 27 inches has about 163 pixels per inch — fine for photos, tiny for text. To keep text readable, the OS pretends the screen has fewer pixels and asks the browser to render at a smaller resolution, then scales the result up to fill the physical panel.

DPR is the ratio between physical pixels and CSS pixels. At DPR 2, one CSS pixel becomes a 2×2 grid of physical pixels. The browser renders at the CSS resolution (fast, sharp enough for text), and the OS upscales to the native resolution (free, no extra GPU work). On phones, DPR is typically 2 or 3 because the physical screen is small but high-density. On desktop monitors, DPR is 1 at 100% scaling and 2 at 200% scaling.

How to check your real screen resolution on each OS

OSWhere to lookNotes
Windows 11Settings → System → Display → Display resolutionLook for the (Recommended) tag — that is the native resolution. Avoid 'Scaled' options.
macOSSystem Settings → Displays → your display → ResolutionmacOS hides the native resolution behind 'Default for display'. Click 'More Space' or 'Scaled' to see options.
Linux (GNOME)Settings → Displays → ResolutionPick the highest option for native. Multi-monitor setups may show 'Join Displays' mode instead.
ChromeOSSettings → Device → Displays → ResolutionUsually matches the panel native. External monitors may default to a lower resolution for battery.
iOS / iPadOSSettings → Display & Brightness → ViewOnly exposes 'Standard' vs 'Zoomed'. True resolution is hidden from the user.
AndroidSettings → Display → Display size / Screen resolution (Samsung only)Most Android phones hide the actual resolution. Use this page to detect it.

Why web developers care about all this

If you build websites, you have probably noticed that the same page can look different on different monitors even at the same viewport size. That is because the browser renders at CSS pixels, but the actual rendered output depends on the DPR. A 12-pixel font at DPR 1 is rendered with 12 physical pixels — small but readable. At DPR 2, the same 12 CSS pixels become 24 physical pixels, which is much sharper on a high-density screen. This is why Apple's Retina displays look so much crisper than non-Retina displays at the same CSS resolution.

Responsive web design uses viewport size (in CSS pixels) to decide layout breakpoints. The viewport is what the window.innerWidth and window.innerHeight properties report — what this page shows in the first card. Screen resolution, by contrast, is what window.screen.width and window.screen.height report — useful for detecting multi-monitor setups but rarely used for layout decisions.

Frequently asked questions

Related tools

More display tests