Screen & Display · Browser Tests

Screen Resolution Test

See your screen resolution, viewport, pixel ratio, colour depth and orientation, live as you resize.

Live display metrics
—
Screen resolution
—
Browser viewport
—
Pixel ratio

Full display details

These values update live. Resize the window or rotate your device and the viewport, orientation and pixel ratio change with it. Nothing is uploaded.

On this page
  1. Screen size versus viewport
  2. What the pixel ratio means
  3. Zoom and fractional ratios
  4. Every value explained
  5. When you need these numbers
  6. Screen size and tracking

Screen size versus viewport

People say "screen resolution" to mean one thing, but a browser sees several. There is the whole display, the part of it your browser window occupies, and the part of that window where the page can actually draw. The numbers above separate them so you can see exactly how much room a website really has to work with.

The two figures that matter day to day are screen resolution, the full size of your display, and the viewport, the live drawing area inside the browser. Responsive websites almost always design against the viewport, because that is the space they control. Watch the viewport figure change as you drag the window edge; the screen resolution above it will not move.

Try it now

Resize this window and the viewport, orientation and pixel-ratio values update instantly. It is the quickest way to see the difference between your display and the space a page is given.

What the pixel ratio means

The device pixel ratio is the bridge between the pixels a web page talks about and the physical pixels on your screen. On a classic display the two are the same and the ratio is 1. On a high-density screen, a phone, a Retina laptop, a 4K monitor at a scaled setting, several physical pixels are packed into every CSS pixel, giving a ratio of 2, 3 or a fractional value in between.

This is why your reported resolution can look smaller than the specification you bought. A "3840 × 2160" panel running at a 2× ratio reports 1920 × 1080 to web pages, because that is the layout size, while still drawing with the full four-times pixel count for crisp text. The tool multiplies the two out for you on the physical-pixels row, which is the figure to quote when you are checking a wallpaper size or a capture resolution. The device pixel ratio test isolates this value on its own.

Browser zoom and fractional ratios

Zoom is folded into the pixel ratio, which surprises people. Press Ctrl and plus a few times and window.devicePixelRatio moves with the zoom level: on an ordinary 1× display, 110 percent zoom reports about 1.1, and 150 percent reports 1.5. At the same time the viewport in CSS pixels shrinks, which is why a zoomed page lays out as though the window were narrower.

Operating-system scaling does the same thing from the other direction. Windows at 125 percent scaling on a standard monitor reports a ratio of 1.25, and the browser then lays out at four-fifths of the physical width. Pinch-zoom on a touch screen is different again: it scales the visual viewport without changing the layout viewport or the pixel ratio, so the numbers above will sit still while the page appears to grow.

Every value explained

Value What it is
Screen resolution The full width and height of your display in CSS pixels
Available screen The display minus space taken by the OS taskbar or dock
Browser viewport The live area inside the window where the page renders
Physical pixels Resolution multiplied by the pixel ratio, the real dot count
Device pixel ratio How many physical pixels make up one CSS pixel
Colour & pixel depth How many bits describe the colour of each pixel, usually 24
Orientation Whether the display is currently portrait or landscape

When you actually need these numbers

Designers and developers reach for this test constantly, to reproduce a layout bug at a specific viewport, to confirm a media query is firing, or to check how a mockup maps onto real hardware. If you are filing a bug report, the viewport size, the pixel ratio and the exact browser version are the three details that let someone else reproduce what you saw.

It is just as handy outside development. Setting up a second monitor, choosing a wallpaper at the right resolution, checking why a video will not play at full quality, or confirming that a scaling change actually took effect, all come down to the numbers on this page. When a screen looks blurry or unusually large, the pixel ratio row usually explains it: a display running at the wrong scaling setting reports a ratio that does not match its hardware.

Screen size and tracking

Your screen dimensions are freely readable by any website, no prompt required, and they are among the first values a fingerprinting script reads. For most people that is harmless, since plenty of visitors share the same common resolutions. But an unusual size, a fractional pixel ratio, or a multi-monitor setup that produces odd available-screen values can make your browser stand out, and standing out is exactly what fingerprinting relies on.

The safest position is the common one: a standard resolution at a whole-number ratio with the browser near its defaults. Resizing the window before a capture or running an unusual zoom does not protect you, it only changes one value while the rest of your profile stays put.

See how much it adds up

Screen metrics are one input among many. To see how much they contribute to how identifiable you are, run the browser fingerprint test, which combines them with your fonts, GPU, timezone and more.

Frequently Asked Questions

What is the difference between screen resolution and viewport?
Screen resolution is the full size of your monitor or device display in CSS pixels, reported by screen.width and screen.height. The viewport is the smaller area inside the browser window where the page actually renders, after toolbars, scrollbars and window borders are taken out. Resize the browser and the viewport changes while the screen resolution stays exactly where it was.
Why is my resolution lower than the number on the box?
Because browsers report resolution in CSS pixels, not physical pixels. A display marketed as 4K or Retina packs several physical pixels into each CSS pixel, and that multiplier is the device pixel ratio. Multiply the reported resolution by the ratio and you get the physical pixel count, which this tool shows on its own row. A 3840 by 2160 panel at a 2x ratio therefore reports 1920 by 1080.
What is a good device pixel ratio?
There is no good or bad, it simply describes your display. A ratio of 1 is a standard-density screen, 2 is common on modern phones and high-resolution laptops, and 3 appears on some flagship phones. Higher ratios mean sharper text and images because more physical pixels are used to draw each point. A fractional value such as 1.25 usually comes from an operating-system scaling setting.
Do these values update if I resize the window?
Yes. The viewport, orientation and pixel ratio are read live, so they change the moment you resize the window or rotate your device. Screen resolution and colour depth stay fixed, because they are properties of the display itself rather than of the window. The page listens for both the resize and orientationchange events, so the read-out follows you as you drag a window edge.
Can a website see my screen size?
Yes, and it does not need permission. Screen resolution, viewport and pixel ratio are all readable by any page in JavaScript, which is why they form part of your browser fingerprint. An unusual resolution or a fractional scaling factor can make you easier to single out, though a common one blends into a very large crowd.