Screen Resolution Checker

Free screen resolution checker that detects viewport size, device pixel ratio, color depth, and orientation. Live-updating with breakpoint references.

This tool detects your screen resolution, browser viewport size, device pixel ratio, colour depth, and orientation in real time using standard browser APIs. Values update instantly as you resize the browser, and a CSS breakpoints reference highlights which Tailwind and Bootstrap breakpoints are currently active. Everything runs in your browser - nothing is uploaded or tracked.

Ad
Ad

About Screen Resolution Checker

Screen Resolution vs Viewport Size

Screen resolution is the total pixel grid of the physical display; viewport size is the area inside the browser window where HTML renders. The viewport is always smaller because it excludes browser chrome (tabs, address bar, bookmarks bar) and operating system elements (taskbar, dock, menu bar).

MeasurementWhat It RepresentsBrowser APITypical 1080p Value
Screen resolutionTotal display pixels availablescreen.width / screen.height1920 x 1080
Viewport sizeContent area inside the browserwindow.innerWidth / innerHeight1920 x 937 (Chrome maximised)
Available screenScreen minus OS taskbar/dockscreen.availWidth / availHeight1920 x 1032
Document sizeFull scrollable page areadocument.documentElement.scrollWidthVaries with content

CSS media queries target the viewport, not the screen. A rule like @media (max-width: 768px) fires when the browser window is 768 CSS pixels wide, regardless of whether the display is 4K or 1080p. That distinction matters because a 4K monitor running a window at 700px wide still triggers the mobile breakpoint.

Worked example: A 27-inch 4K monitor has a screen resolution of 3840 x 2160 physical pixels. At 200% OS scaling (common on Windows and macOS), the browser reports screen.width = 1920 and a viewport of around 1920 x 1032 when maximised. Media queries see the same 1920px width a 1080p display would, which is why responsive design is based on CSS pixels rather than hardware pixels.

Device Pixel Ratio Explained

Device pixel ratio (DPR) is the number of physical pixels packed into each CSS pixel, and it determines how sharp text and images look on high-density displays. Per the W3C CSS Values and Units specification, window.devicePixelRatio returns this value as a decimal. A DPR of 2 means each CSS pixel is rendered using a 2x2 grid of hardware pixels (4 total); a DPR of 3 means a 3x3 grid (9 total).

Display TypeDPRPhysical Pixels per CSS PixelCommon Devices
Standard11 (1x1)Most external monitors, older laptops
Retina / HiDPI24 (2x2)MacBook Pro, iPhone SE, iPad, Pixel 9
Super Retina / 3x39 (3x3)iPhone 15 Pro, Samsung Galaxy S24 Ultra
Fractional1.25, 1.5, 1.75VariesWindows laptops at 125%/150%/175% scaling
Browser zoomAny decimalChanges dynamicallyCtrl/Cmd + and - shifts DPR up or down

DPR directly affects image delivery. On a 2x display, a 100x100 CSS pixel image needs 200x200 physical pixels of source data to look sharp; anything smaller appears blurry. The MDN Web Docs recommend serving DPR-aware images using the HTML srcset attribute or the CSS image-set() function. A typical srcset might look like srcset="image.jpg 1x, image@2x.jpg 2x, image@3x.jpg 3x", which lets the browser pick the right asset based on the current DPR.

Common Screen Resolutions

Full HD (1920 x 1080) remains the most common desktop resolution worldwide. According to the StatCounter Global Stats dashboard, around 20% of desktop traffic in March 2026 came from 1920x1080 screens, followed by 1366x768 and 2560x1440. Mobile is dominated by 390x844 (iPhone 13/14/15 base model) and 360x800 (mid-range Android).

NameResolutionAspect RatioTypical Use
HD (720p)1280 x 72016:9Budget laptops, older monitors
Full HD (1080p)1920 x 108016:9Most common desktop/laptop resolution
WUXGA1920 x 120016:10Productivity laptops, design work
QHD (1440p)2560 x 144016:9High-end monitors, gaming
4K UHD3840 x 216016:9Professional monitors, 4K TVs
5K5120 x 288016:9Apple Studio Display, 27-inch iMac
Ultrawide3440 x 144021:9LG, Dell, and Samsung ultrawides
Super Ultrawide5120 x 144032:9Samsung Odyssey G9 and similar
MacBook Air 13" (M2/M3)2560 x 1664~3:2Reported as 1470 x 956 at 2x DPR
iPad Pro 12.9" (M4)2048 x 27323:4Reported as 1024 x 1366 at 2x DPR

macOS and iOS report CSS pixel dimensions, not hardware pixels. A MacBook Pro 14" with a 3024 x 1964 display at 2x DPR reports screen.width = 1512. Windows behaves similarly at fractional scaling: a 4K laptop at 150% reports a CSS width of around 2560.

CSS Breakpoints Reference

Responsive design uses CSS media queries to apply different styles at different viewport widths. The two most widely used conventions come from Tailwind CSS (mobile-first, min-width) and Bootstrap (mobile-first since v4, with a different grid of values). Both are documented in their official specifications.

FrameworkBreakpointWidthTarget Device Class
Tailwind CSSsm640pxSmall phones landscape
Tailwind CSSmd768pxTablets
Tailwind CSSlg1024pxLaptops
Tailwind CSSxl1280pxDesktops
Tailwind CSS2xl1536pxLarge desktops
Bootstrap 5sm576pxLandscape phones
Bootstrap 5md768pxTablets
Bootstrap 5lg992pxDesktops
Bootstrap 5xl1200pxLarge desktops
Bootstrap 5xxl1400pxExtra-large desktops

The live breakpoint bar in this tool lights up as you resize the window, so you can see the exact viewport width at which each breakpoint activates. For translating between units, the PX to REM Converter handles the most common conversion responsive designers need.

How Is Orientation Detected?

Orientation reports whether the screen is in portrait or landscape mode, using the screen.orientation API defined in the W3C Screen Orientation specification. The value is one of four strings: portrait-primary, portrait-secondary, landscape-primary, or landscape-secondary. The "secondary" variants indicate the device has been rotated 180 degrees from its default position.

Portrait is defined as a viewport where height is greater than width; landscape is the opposite. CSS media queries like @media (orientation: portrait) and @media (orientation: landscape) target this directly and are reliable across Chromium, Firefox, and Safari.

What Is Colour Depth?

Colour depth is the number of bits used per pixel to store colour information, reported by screen.colorDepth. Most consumer displays report 24-bit (True Color), which allocates 8 bits per channel for red, green, and blue. Newer HDR displays support 30-bit Deep Color (10 bits per channel) for smoother gradients and wider dynamic range.

DepthTotal ColoursDescription
24-bit16.7 millionStandard True Color, 8 bits per channel
30-bit1.07 billionDeep Color, 10 bits per channel, used in HDR10
36-bit68.7 billion12 bits per channel, Dolby Vision HDR
48-bit281 trillion16 bits per channel, professional imaging

Browsers historically reported 24-bit even on HDR-capable hardware, but Chromium-based browsers began exposing 30-bit for HDR content in late 2024 via the CSS Color Level 4 specification. Wide-gamut colour spaces like Display P3 and Rec. 2020 rely on this, and the Colour Contrast Checker can help verify that text remains WCAG-compliant at these wider gamuts.

Common Pitfalls

Several traps catch developers testing responsive sites:

  • Scrollbar width: On Windows, a permanent vertical scrollbar reduces viewport width by 15-17px. Use 100vw carefully - it includes scrollbar width, which causes horizontal overflow.
  • Mobile browser chrome: iOS Safari and Android Chrome shrink the URL bar on scroll, changing the viewport height. The 100vh unit can be larger than the visible area on first paint. Use 100dvh (dynamic viewport height) for reliable full-height layouts.
  • Zoom and DPR: Browser zoom changes devicePixelRatio. A user at 125% zoom on a 1x display reports DPR 1.25, same as a Windows laptop at 125% scaling.
  • Orientation on desktop: Desktop monitors always report landscape unless physically rotated via OS settings. Relying on orientation media queries for phone-vs-desktop logic is unreliable - use a width breakpoint instead.

For layout work, pairing this tool with the Aspect Ratio Calculator helps when designing around specific display shapes. All detection happens locally in your browser using the documented web APIs listed below.

Sources

Frequently Asked Questions

What is the difference between screen resolution and viewport size?

Screen resolution is the total number of physical pixels your display has (e.g., 1920x1080), while viewport size is the area inside the browser window where web content is rendered. The viewport is typically smaller because it excludes browser chrome like the address bar, tabs, and scrollbars.

What is device pixel ratio (DPR)?

Device pixel ratio is the ratio between physical pixels and CSS pixels on your display. A DPR of 2 (common on Retina displays) means each CSS pixel is rendered using 4 physical pixels (2x2). Higher DPR values result in sharper text and images but require higher-resolution assets for web content.

Why does my viewport size change when I resize the browser?

The viewport represents the visible content area of the browser window, so it changes whenever you resize, maximize, minimize, or change the browser window in any way. This tool updates the viewport dimensions in real time so you can see the exact values at any window size.

How is this tool useful for web developers?

Web developers need to know exact screen and viewport dimensions to test responsive designs, set CSS media query breakpoints, ensure proper rendering on different devices, and verify that assets are appropriately sized for various device pixel ratios. This tool provides all that information in one place.

Link to this tool

Copy this HTML to link to this tool from your website or blog.

<a href="https://toolboxkit.io/tools/screen-resolution-checker/" title="Screen Resolution Checker - Free Online Tool">Try Screen Resolution Checker on ToolboxKit.io</a>