Boneyard Tools

User Agent Parser

Paste a User-Agent string to see the browser, operating system and device behind it. Handy for debugging analytics, support tickets and server logs. Everything runs in your browser.

How to parse a user agent

  1. Paste a User-Agent string, or click Use my browser to load your own.
  2. Read the browser, OS and device cards filled in instantly.
  3. Copy the value you need into your logs, tests or bug report.

Examples

Chrome on Windows 10

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Browser: Chrome 120.0.0.0, OS: Windows 10, Device: desktop

Safari on iPhone

Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1
Browser: Safari 17.0, OS: iOS 17.0, Device: mobile (Apple)

Frequently asked questions

What is a user agent string?

It is a line of text a browser or app sends with every request to identify itself. It usually names the browser, its version, the operating system and the rendering engine.

Why would I parse a user agent?

To understand traffic in analytics, reproduce a bug a user reported, segment downloads by platform, or branch server logic on browser or device type.

Is user agent detection reliable?

Not fully. User-Agent strings can be spoofed, frozen by the browser, or set to anything by scripts and bots. Treat the result as a strong hint, not proof of the real device.

What about User-Agent Client Hints?

Chromium browsers are freezing the legacy User-Agent string and moving detail into Client Hints (Sec-CH-UA headers). This parser reads the classic string, so very new Chrome builds may report a generic version.

Is my user agent sent to a server?

No. Parsing happens entirely in your browser, so the string you paste never leaves your device.

How does the parser tell a tablet from a phone?

An iPad, or an Android UA without the word Mobile, is treated as a tablet. iPhone and Android with Mobile are treated as phones, and everything else is treated as a desktop.

Related tools