User-Agent Parser & Device Inspector

Who's hitting your site? Paste a UA string (or a batch, one per line) and get browser, version, OS, device type and bot detection — locally, no tracking.

—
Embed this tool on your website / blog No code required · Copy and paste
HTML Embed Code (iframe):
<iframe src="https://lucentool.com/user-agent-parser" width="100%" height="650" style="border:1px solid #e5e0d8;border-radius:12px;max-width:850px;width:100%;" frameborder="0"></iframe>
<div style="font-size:12px;color:#78716c;margin-top:6px;font-family:sans-serif;">Powered by <a href="https://lucentool.com/user-agent-parser" target="_blank" style="color:#c85a32;text-decoration:none;">Lucentool - User-Agent Parser & Device Inspector</a></div>

Anatomy of a user agent

A UA string is a semicolon-separated list of product tokens. Mozilla/5.0 is a historical compatibility marker (every modern browser claims it), then come the OS and platform tokens, then the browser product with version: Chrome/126.0.0.0, Firefox/127.0, Version/17.5 Safari/605.1.15. Mobile browsers add Mobile, and iOS UAs include like Mac OS X.

Reading the output

Caveats

UA strings are spoofable and increasingly simplified (Chrome is phasing down its UA). Treat this as a heuristic, not a security boundary — for serious bot detection, combine with IP reputation and behavioral signals. Batch mode is handy for scanning your access logs: paste 50 lines, get a compact table.

Edge cases and hard limits

parseUA() begins with a result object — browser, version, OS, device class, bot flag — then tests the string against ordered patterns: bots first, then browsers in a deliberate order, because Chrome's UA also contains the word Safari and Edge's contains Chrome. Operating system and device type are extracted afterwards. You can paste any UA string to parse it offline, or parse the one your browser sends.

Formats, sizes and other limits

A UA string is a self-declaration and can say anything. Browsers also impersonate each other for compatibility, which is why pattern order decides whether Edge is reported as Chrome. Modern browsers freeze parts of the string — Chrome's reduced UA, Safari's frozen version — so version numbers are increasingly unreliable, and device models are effectively unavailable on iOS. Feature detection, not string parsing, is the correct way to test capabilities.

Privacy: processed in your browser

The UA string either comes from your browser or from text you paste, and both are parsed locally. No fingerprint is built and nothing is transmitted.

Frequently asked questions

Why is the result wrong?

Because the string is self-declared and browsers spoof each other. Use feature detection for capability checks.

Can I get the real device model?

Rarely on iOS, where the UA is frozen. Some Android devices still expose a model, but that is converging too.

Does it detect bots?

It recognises common search-engine and tool crawlers, but a scraper that claims to be Chrome is indistinguishable here.