正在加载,请稍候…

User-agent parser

Detect and parse Browser, Engine, OS, CPU, and Device type/model from a user-agent string. Useful for analytics and device-specific debugging.

How to Use

  1. Step 1: Your current browser User-Agent string is pre-filled automatically.
  2. Step 2: Or paste any User-Agent string to analyze it.
  3. Step 3: The browser, engine, OS, device, and CPU architecture are extracted.

Frequently Asked Questions

What is a User-Agent string?

A User-Agent string is sent by browsers with every HTTP request to identify the browser, operating system, and device type to the server.

Why do User-Agent strings look so complex?

For historical compatibility reasons modern browsers include multiple older browser identifiers.

How do I get the current User-Agent in JavaScript?

Use navigator.userAgent. Avoid UA-based feature detection — use feature detection instead (e.g. if serviceWorker in navigator). Browsers are progressively freezing UA strings (User-Agent Reduction) to protect privacy, making UA parsing less reliable.

Is User-Agent string parsing still useful in modern web development?

UA string limitations: modern browsers have complex, intentionally obfuscated UA strings (for historical compatibility); the new User-Agent Client Hints API is more structured and reliable; Chrome is progressively freezing UA strings. Still useful for: traffic analytics (distinguishing real users from bots); legacy system compatibility detection; anti-scraping; CDN and WAF bot detection. New projects should prefer the Client Hints API.