Screen Resolution Tester
See your viewport size, screen resolution, device pixel ratio and current breakpoint, all updating live as you resize the window.
How to use it
- Resize the browser window and watch every figure update.
- Viewport is what your CSS media queries see; screen is the whole display.
- Drag the corner of the test box to check a component at a specific width.
This reads and displays, live, the numbers a browser actually exposes about the screen it is running on: viewport width and height, screen resolution, device pixel ratio and which CSS breakpoint the current width falls into. Resize the browser window and every figure updates immediately, which makes it useful for checking how a layout behaves at a specific width without needing browser dev tools open.
Viewport vs screen resolution
Screen resolution is the full physical display — every pixel the monitor has. Viewport is what CSS media queries actually see: the browser window's content area, with browser chrome, the OS taskbar, and any visible scrollbar already subtracted. The two numbers are rarely the same, which is why the viewport is almost always meaningfully smaller than the screen it is displayed on.
Device pixel ratio
Device pixel ratio is how many physical screen pixels make up a single CSS pixel. A ratio of 1 means they are the same. A ratio of 2, common on modern laptop and phone screens, means a viewport reported as 1440 pixels wide is rendered across 2880 actual physical pixels — which is exactly why images need to be supplied at 2× their CSS display size to look sharp rather than blurry on those screens.
Questions people ask
Why is my viewport smaller than my screen resolution?
The viewport excludes browser chrome, the taskbar and any scrollbar. On a high-DPI display it is also divided by the device pixel ratio.
What is device pixel ratio?
How many physical pixels make up one CSS pixel. A ratio of 2 means a 1440-wide viewport is really 2880 physical pixels, which is why images need to be supplied at 2×.
Is anything uploaded?
No. Everything runs in your browser — no file, image or snippet you use here ever leaves your device.
Last updated 22 August 2026