What Is My Screen Resolution?

Your screen size, viewport, pixel ratio and aspect ratio.

Runs entirely in your browser

Advertisement

Loading the tool…

  • Browser viewport
  • Pixel ratio
  • Aspect ratio
  • Megapixels
Screen resolution
Available screen area
Browser viewport
Physical pixels
Orientation
Device class
Colour depth
Touch points
Prefers dark mode
Prefers reduced motion

Resize the window and these figures update live.

Advertisement

Two numbers matter and people mix them up. Screen resolution is the whole display. Viewport size is the part your browser can draw in. It is smaller, because of browser chrome, and it is the one your CSS media queries respond to. Both are shown below, live, as you resize.

The device pixel ratio explains the rest: a "2×" phone reports a 390-pixel-wide viewport while physically having 1170 pixels across, which is why images need to be larger than their CSS size to look sharp.

How to use it

  1. Read your screen resolution and viewport size below. Nothing to press.
  2. Resize the window to watch the viewport figures update live.
  3. Use the physical pixel figures when exporting images for this display.

Questions

Why is my viewport smaller than my screen?

The viewport excludes the browser's tabs, address bar and scrollbars, and on a phone it excludes the system status bar. CSS media queries use the viewport, not the screen.

What is a device pixel ratio?

The number of physical pixels per CSS pixel. 1 is a classic display, 2 or 3 is a Retina-class phone or laptop. Multiply CSS dimensions by it to get the real pixel count.

My screen is 4K but this says 2560×1440. Why?

Operating system display scaling. At 150% scaling a 3840-pixel display reports a 2560-pixel logical resolution, which is what the browser sees and what your layout should target.

Your data stays on your device

Everything above runs inside your browser as WebAssembly compiled from Rust. Nothing you type is uploaded, logged or stored on a server. There is no server. You can load this page once, go offline, and it still works.