deftools.io Developer Tools

User-Agent Parser

Decode any User-Agent string into browser, engine, OS, device type, CPU architecture, and bot detection. Compare two UAs side-by-side, copy individual fields, deep-link via #ua=.

Try an example
How detection works & caveats

Detection uses a cascade of regex patterns inspired by ua-parser-js and MDN guidance. Browser sniffing is inherently fragile — User-Agents are intentionally misleading (Chrome pretends to be Safari, Safari pretends to be Mozilla, Edge pretends to be Chrome…).

Engine is more reliable than browser name. Device model is only exposed by iOS Safari and some Android browsers. CPU arch is best-effort from x64 / WOW64 / ARM hints.

For new code, prefer feature detection (navigator.userAgentData Client Hints) over UA sniffing.

Copied!
Copied!