What is a User Agent Parser?
A User-Agent parser reads the User-Agent request header a browser sends and breaks it into the browser name and version, the rendering engine, the operating system, and the kind of device the request came from. Every HTTP request carries this string, and it is the single most common way a server learns what is on the other end of a connection without asking. The header itself is defined in RFC 9110, the HTTP semantics specification, and its format is an unstructured list of product tokens and comments that has grown historically messy.
That messiness is the reason a parser exists. A modern Chrome string still begins with "Mozilla/5.0" and still contains the word "Safari", because browsers spent two decades copying each other tokens to pass server sniffing tests. Edge carries "Chrome", Opera carries "Chrome", and Safari on an iPhone reports its real version in a separate "Version/" token rather than the "Safari/" one. Reading a User-Agent by eye is therefore error-prone: the tokens that look most obvious are frequently the ones left in for backward compatibility rather than the ones that identify the actual client.
This tool applies the detection order those quirks demand. It tests for the browsers that embed another browser token first, so Edge is not misread as Chrome and a Chrome-on-iOS string is not misread as Safari. It maps the Windows NT kernel number to its marketing name, converts the underscore-separated iOS and macOS versions back to dotted form, and classifies the request as desktop, mobile, tablet, or bot. It also flags known crawler and automation signatures, which is the field most useful when you are reading a web-server access log rather than debugging a single browser.
A worked example shows what the user agent string parser returns. Click the Edge on Windows sample and the Parsed result lists Microsoft Edge 126.0.0.0, Blink 537.36, Windows 10 / 11, Desktop, x86-64 (64-bit) and Bot / crawler No, even though the string also contains Chrome and Safari tokens. Now paste the Googlebot smartphone string, which claims Chrome on Android 6.0.1: the user agent parser still reads the browser and OS, but Device type becomes Bot / Crawler and the bot flag says Yes. That split is what you want when a crawler borrows a phone browser's identity in your logs.
Everything runs in your browser. The string you paste is never uploaded, which matters because a real User-Agent from your own traffic can hint at the exact device and build a visitor is using. There is no signup and parsing makes no network request; only the Copy button records a usage count, without the string. You can paste production log lines without sending them anywhere.
How to use the User Agent Parser
Paste a User-Agent string
Drop in a UA string from your access logs, a browser console (navigator.userAgent), or a request header. Or load one of the built-in samples.
Read the parsed fields
The browser, engine, operating system, device type, CPU architecture and bot flag are detected instantly as you type. There is no button to press.
Check the device classification
See at a glance whether the request came from a desktop, phone, tablet, or a crawler such as Googlebot, with the device model where the string exposes it.
Copy the results
Copy the parsed table as tab-separated text to paste into a spreadsheet, a bug report, or your log-analysis notes.
User Agent Parser features
Correct detection order
Tests Edge, Opera and Samsung before Chrome, and reads Safari from its Version/ token, so embedded compatibility tokens do not cause a misread.
Operating system mapping
Translates Windows NT kernel numbers to names, restores dotted iOS and macOS versions, and recognises Android, Chrome OS and Linux.
Device classification
Labels each string as desktop, mobile, tablet or bot, and surfaces the Android or Apple device model when the User-Agent includes it.
Bot and crawler flag
Matches a broad set of search-engine, social and automation signatures such as Googlebot, Bingbot, curl and headless Chrome, for log analysis.
Frequently Asked Questions
Related Tools
Basic Auth Generator
Turn a username and password into an HTTP Basic Authentication header, base64 token, curl commands and URL form, and decode existing Basic auth tokens back.
IP Subnet Calculator
Calculate the network address, broadcast, usable host range, subnet mask, and host count for any IPv4 address and CIDR prefix.
WHOIS Checker
Look up the registry record for any domain: registrar, registration and expiry dates, status codes, nameservers, DNSSEC and the raw WHOIS record.
WordPress Theme Detector
Find out which WordPress theme a site runs, with the version, the author, the parent theme and the evidence each answer came from.
Comments
0 comments
No comments yet. Be the first to share your thoughts!