Skip to content
QuickTool logoQuickTool

User Agent Parser

Parse browser and OS from a UA string

Start

Enter a user‑agent string to see parsed output.

Description

The User Agent Parser extracts basic browser, OS, and device information from a user‑agent string. Paste any UA or load your current browser’s UA and inspect the parsed result as JSON.

This is handy for debugging server logs, reproducing issues, or understanding how different clients identify themselves.

Key features

  • Detects common browsers (Chrome, Firefox, Safari, Edge)
  • Detects OS signatures (Windows, macOS, iOS, Android)
  • Classifies device type (Desktop vs Mobile)
  • Copy parsed JSON output

Common use cases

  • Inspecting logs to classify clients
  • Reproducing browser‑specific issues
  • Verifying UA spoofing behaviors

Privacy & security: runs locally in your browser; no UA data is uploaded.

How to Use

  1. Paste a UA string or use “Sample” to load a demo value.
  2. Enable “Autofill with current UA” to load your browser’s string.
  3. Review parsed fields: browser, version, OS, and device.
  4. Click “Copy Output” to copy the parsed JSON.

Tips

  • UA formats vary; detection uses best‑effort patterns.
  • For strict parsing, prefer dedicated libraries server‑side.

Troubleshooting

  • Unknown browser → It may be a niche UA; result falls back to nulls.
  • Wrong device classification → Mobile desktop modes can spoof desktop UAs.

Example

Example 1: Chrome on macOS

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Browser: Chrome, OS: macOS, Device: Desktop.

Example 2: Mobile Safari on iPhone

Mozilla/5.0 (iPhone; CPU iPhone OS 17_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Mobile/15E148 Safari/604.1

Browser: Safari, OS: iOS, Device: Mobile.

FAQ

Is this local and safe?

Yes. Parsing runs in your browser; nothing is sent anywhere.

Why is the browser “unknown”?

Some UAs don’t match common patterns. The tool falls back gracefully.

Can I parse server logs?

Yes—paste the UA string from a log line and copy the JSON.

How accurate is device detection?

It’s heuristic and distinguishes desktop vs mobile for typical UAs.

What about rendering engines?

The tool surfaces a basic engine guess when possible.