Skip to content
UniKit

Device and screen information

Read the current browser screen resolution, device pixel ratio, viewport, touch points, languages, time zone and parsed user agent; values the browser withholds stay unknown.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Reading browser information… (shown after the island mounts, so server and client render identically)

Device and screen information

Every row comes from real navigator / window.screen / devicePixelRatio / matchMedia reads; values the browser withholds stay unknown.

Reading browser information… (shown after the island mounts, so server and client render identically)

What this tool does

  • Debug how a page looks on a given device: check its CSS resolution, device pixel ratio and viewport first to tell "not enough pixels" apart from "wrong logical resolution".
  • Confirm the browser, rendering engine and OS version behind a bug report (Chrome / Safari / Edge, Blink / WebKit / Gecko, Windows / macOS / iOS / Android).
  • Copy the plain-text readings (the `screen: 2560×1440` shape) into a ticket, which is easier to diff than a screenshot.

Example

Input

Opening this page on a 2560×1440 macOS screen in Chrome

Output

screen: 2560×1440
ratio: 16:9
viewport: 1280×720
dpr: 2
physical: 5120×2880
colorDepth: 30 bit
browser: Chrome 140.0.0.0
engine: Blink (AppleWebKit in UA)
os: macOS 10.15.7
device: desktop
timeZone: Asia/Shanghai
physicalSize: unknown
ppi: unknown
model: unknown

These are the real readings of that machine (abridged); physical size, PPI and device model are not exposed by browsers, hence unknown.

Frequently asked questions

Where does the data come from, and is anything uploaded?

Entirely from browser APIs: navigator (userAgent, language, platform, maxTouchPoints, hardwareConcurrency, onLine, cookieEnabled), window.screen (width/height/availWidth/availHeight/colorDepth/orientation), window.devicePixelRatio, matchMedia (colour scheme, reduced motion, contrast) and the Intl time zone. Readings happen after the island mounts (onMounted), so the server-rendered HTML matches the first client render with no hydration mismatch. Nothing goes to the network.

Why are some fields unknown?

Because the browser simply does not expose them: physical screen size, PPI and device model are vendor data that no web API returns. deviceMemory only exists in some Chromium browsers, platform is deprecated but still implemented, and PWAs or embedded WebViews may expose only some fields. The tool never guesses a model from the UA; what it cannot read stays unknown.

What is the difference between resolution and viewport?

Resolution (screen) is the screen size in CSS pixels, equal to physical pixels divided by the device pixel ratio, while the viewport (innerWidth/innerHeight) is the area available to the page and changes with the window, toolbars and scrollbars. The tool also reports physical pixels (resolution × pixel ratio) and the available area (availWidth/availHeight, excluding taskbars or notches).

How accurate is the UA parsing?

It uses the public UA string rules and covers Chrome, Safari, Firefox, Edge, Opera, Samsung Internet and IE, distinguishes Blink, WebKit, Gecko and Trident, and recognises Windows, macOS, iOS/iPadOS, Android, ChromeOS and Linux. A UA can be spoofed or reduced (many browsers now freeze version numbers), so the device class is a UA verdict, not trustworthy hardware identification.

Can it identify a specific model or detect virtual machines?

No. The tool generates no fingerprint, reads no GPU details and tracks nothing; it only lists parameters the browser exposes explicitly. Detecting virtual machines needs many more signals, and this tool deliberately does none of that.

Keywords:device info

Related tools