Screen Resolution Checker
Show your screen size, browser viewport, device pixel ratio and true physical pixels, with what each one is actually for.
Loading tool…
These figures come from your own browser and are displayed here only. Nothing is sent anywhere — which is worth saying, because screen dimensions are one of the values used for browser fingerprinting.
What the Screen Resolution Checker does
This screen resolution checker will show your screen size, browser viewport, device pixel ratio and true physical pixels, with what each one is actually for. Everything runs inside this page, so the work happens on your own device rather than on a server. It is most often used for finding your screen resolution for a support request or a bug report. If you need the other side of this job, there is also a depth of field calculator.
How to use it
- The figures appear immediately — nothing to press.
- Resize the window and watch the viewport figure update live.
- Use the CSS viewport figure when writing media queries, not the screen figure.
- Copy the details if you need them for a bug report.
How it works
Four numbers get conflated constantly and this page separates them. The screen is the display itself. The browser window is that minus whatever is not the browser. The CSS viewport is the area your page actually gets to lay out in — window minus toolbars, tabs and scrollbars — and it is the number CSS media queries compare against. A laptop with a 1920-pixel screen routinely gives a page 1280 CSS pixels or fewer once browser chrome and display scaling are accounted for.
Device pixel ratio is what relates CSS pixels to physical ones. On a conventional display it is 1. On a modern phone or a retina laptop it is 2 or 3, meaning each CSS pixel is drawn with four or nine physical ones. This is why a phone reports a 390-pixel-wide viewport while its panel has 1170 pixels across, and why an image needs to be twice the CSS size to look sharp on such a screen.
The practical consequence for anyone building a site: write breakpoints against the CSS viewport, and supply images at the physical resolution. Testing a layout by setting your monitor to 1920 and assuming visitors with 1920-pixel screens see the same thing is where most "it looks fine on my machine" bugs come from — their browser is not full-screen, or their display scaling is at 150%, and the page has far less width than the screen suggests.
Worth knowing that these values, taken together with your fonts and time zone, make up a large part of a browser fingerprint. This page reads them and shows them to you and nothing else, but a page that collects them silently can identify a returning visitor without any cookie at all.
When to use it
- Finding your screen resolution for a support request or a bug report.
- Checking the real viewport width while testing a responsive layout.
- Working out what pixel dimensions an image needs on a high-density screen.
- Confirming display scaling is doing what you think it is.
Common mistakes to avoid
- Using the screen figure for CSS breakpoints. Media queries compare against the viewport, which is smaller.
- Forgetting device pixel ratio when exporting images, which is why they look soft on phones and retina laptops.
- Assuming the viewport is fixed. It changes when the window resizes, when a mobile browser hides its address bar, and when a keyboard opens.
Frequently asked questions
Why is my screen resolution different from my browser viewport?
Because the browser does not get the whole screen. Tabs, the address bar, bookmarks, scrollbars and the operating system's taskbar all take space, and display scaling shrinks the CSS figure further. On a 1920-pixel display a maximised browser commonly gives a page around 1280 to 1900 CSS pixels.
What is device pixel ratio?
How many physical pixels the display uses for each CSS pixel. 1 on an ordinary monitor, 2 or 3 on phones and high-density laptops. It is why a 390 px wide phone viewport sits on an 1170 px panel, and why images need to be supplied at twice the CSS size to look sharp.
Which number should I use for responsive design?
The CSS viewport. That is what media queries measure and what your layout actually has to work with. The screen figure is almost never the right one to design against.