Browser and Device Diagnostics

Detect your device's userAgent, devicePixelRatio, viewport, and breakdown the anatomy of a URL. This page will help you to diagnose the values provided through standard JavaScript APIs about your device and browser.

URL Breakdown.

window.location

Type your own URL to test.
Invalid URL. Keep typing.
{
  • hash: "",
  • host: "",
  • hostname: "",
  • href: "",
  • origin: "",
  • pathname: "",
  • port: "",
  • protocol: "",
  • search: ""
}

Your device's userAgent

window.navigator.userAgent

Your device's devicePixelRatio

window.devicePixelRatio

devicePixelRatio:

Your browser's viewport

window.visualViewport

{
  • width: "",
  • height: "",
  • scale: "",
}