Current Screen Resolution
{{ screenWidth }} × {{ screenHeight }}
{{ viewportWidth }} × {{ viewportHeight }} Viewport {{ devicePixelRatio }} DPR {{ orientation }}
MetricValue
Screen width (px) {{ screenWidth }}
Screen height (px) {{ screenHeight }}
Viewport width (px) {{ viewportWidth }}
Viewport height (px){{ viewportHeight }}
Device-pixel ratio {{ devicePixelRatio }}
Color depth (bits) {{ colorDepth }}
Orientation {{ orientation }}
Aspect ratio {{ aspectRatio }}

Introduction:

Screen resolution expresses the total number of physical pixels displayed across the width and height of your monitor. Together with colour depth and device-pixel ratio, these dimensions govern how sharply graphics and text render, shaping everything from typography crispness to high-density image delivery in modern responsive interfaces used across desktops, tablets and phones.

This utility reads the browser’s window and screen objects in real time, then displays full screen size, viewport size, pixel density, colour depth, aspect ratio and orientation in a single card. A reactive engine keeps the figures current while you resize or rotate, and one-click actions let you copy or download the metrics as a CSV snapshot.

Use it to confirm CSS breakpoints, debug retina artefacts, compare multiple monitors, validate game canvas settings, or attach reproducible display specifications when reporting layout issues to engineering. Measurements reflect browser zoom, operating-system scaling and virtual-display drivers; return each to its default to ensure device-level accuracy before capturing a definitive reading.

Technical Details:

Foundational Principles

A browser exposes two complementary coordinate spaces. Screen dimensions describe the hardware pixel matrix reported by the operating system, while viewport dimensions reflect the layout viewport where CSS pixels are rendered. The ratio between them, known as the device-pixel ratio, indicates how many physical pixels map to one CSS pixel and allows high-density screens to render crisp assets without breaking layout logic. Orientation is inferred from the larger viewport axis, enabling consistent breakpoint targeting across devices.

The application queries these properties on load and after every resize event, applying a short debounce to avoid layout-thrashing. Because all calculations are algebraic and deterministic, updates complete in constant time and never block the main thread.

Formula Overview

DPR= physical pixels per axis CSS pixels per axis
AR= max(W,H) min(W,H) :1

Variables & Parameters

SymbolMeaningUnitTypical RangeSensitivity
WScreen widthpx320 – 7680Linear
HScreen heightpx320 – 4320Linear
VWViewport widthpx200 – 7680High
VHViewport heightpx200 – 4320High
DPRDevice-pixel ratioratio1 – 8Quadratic
CDColour depthbits24 – 48Low
ARAspect ratioratio1 – 4Low

Scoring & Categorisation

  • LandscapeVW ≥ VH
  • PortraitVW < VH

Representative Calculations

Example monitor — 1920 × 1080 px at DPR 2:

Given W=1920 and H=1080, the aspect ratio is

1920/1080=1.78

rounded to 1.78 : 1 (marketed as 16:9). The effective CSS viewport becomes 960 × 540 px because DPR=2 doubles pixel density on each axis.

Edge Cases & Assumptions

  • Integer rounding applied to all pixel counts before display.
  • Browser zoom alters viewport metrics without updating screen metrics.
  • Secondary monitors are ignored; metrics always reference the window’s current display context.
  • Legacy engines without devicePixelRatio default to 1, potentially under-reporting density.
  • Virtual machines and remote desktops may provide synthetic resolutions unrelated to physical hardware.

Performance & Stability

The metric refresh executes a constant-time property read (O(1)) and string concatenation. A 40 ms debounce prevents high-frequency resize events from flooding the reactive engine, ensuring smooth interactions even on low-power devices. All computation remains client-side with zero network requests, maintaining privacy and eliminating latency concerns.

Step-by-Step Guide:

Follow these steps to capture display metrics confidently.

  1. Load the tool in the target browser window.
  2. Observe the headline figures and Viewport badge updating in real time.
  3. Resize, maximise or rotate the window to test breakpoint behaviour; the numbers refresh instantly.
  4. Click Copy CSV to place the dataset on the clipboard, or choose Download CSV for a file export.
  5. Share the CSV with teammates or attach it to bug-tracker tickets to reproduce environment-specific issues.

FAQ:

Is my data stored?

All calculations occur in your browser memory; nothing is sent to servers or third parties.

What is the difference between screen and viewport width?

Screen width refers to the full hardware pixel span, whereas viewport width measures the CSS layout area inside the browser window after zoom and scroll-bar deductions.

Why do numbers change while I resize?

The utility listens for resize events and recalculates values on the fly, allowing you to witness breakpoint transitions without refreshing.

Does zoom level affect results?

Yes — zoom increases or decreases CSS pixels, altering viewport dimensions and device-pixel ratio while leaving physical screen size unchanged.

Can I measure multiple monitors?

You can drag the window onto each monitor to capture its metrics; readings always pertain to the display hosting the current browser window.

Glossary:

Screen resolution
Total physical pixels along width and height.
Viewport
Area where CSS layouts render inside the window.
Device-pixel ratio
Multiplier mapping one CSS pixel to multiple hardware pixels.
Aspect ratio
Width divided by height, expressed as ratio : 1.
Colour depth
Bits available per colour channel, indicating tonal richness.
Embed this tool into your website using the following code: