User-Agent Parser
Tests an entered User-Agent string against small regex lists for Edge, Chrome, Firefox, Safari and common operating systems, then prints browser, OS and mobile boolean. Unknown patterns stay Unknown; this is not a full UA parser.
About this user-agent parser
Tests an entered User-Agent string against small regex lists for Edge, Chrome, Firefox, Safari and common operating systems, then prints browser, OS and mobile boolean. Unknown patterns stay Unknown; this is not a full UA parser Transforms and validates developer data structures locally, preventing confidential payload exposure during data wrangling.
Syntax parsing & data transformation logic
Generates, formats, and inspects modern W3C CSS specifications, including CSS Flexible Box Layout (Flexbox), CSS Grid Layout Module Level 2, CSS Custom Properties, and responsive typography clamp() calculations. Parses HTTP User-Agent client strings into rendering engine families, operating systems, and device form factors using deterministic pattern matchers, and formats CSS code with clean selector nesting and property ordering.
Worked conversion & output example
Scenario: Classify a supplied Chrome user-agent string on Linux.
Sample input:
Processing: Apply the ordered browser, operating-system, and mobile regex checks.
Illustrative output:
Syntax constraints & input size limits
This is coarse token classification, not a standards-based User-Agent parser. It does not report versions, device model or architecture and can misclassify spoofed or combined tokens.
Data conversions and formatting in User-Agent Parser reflect standard structured syntax. Verify parsed outputs against your target runtime before deployment.
Local client execution boundary
Data parsing and transformations in User-Agent Parser execute in the local browser tab without remote data transmission.
Data format specifications & language standards
Data interchange formats and language grammar specifications:
User-Agent Parser verification · Audit standards
How to use it
- Enter a User-Agent string or leave input empty to use the browser User-Agent.
- Match fixed browser and OS tokens by regular expression and detect a mobile token.
- Read browser name, OS name and mobile true/false.
Frequently asked questions
Which browser fields does User Agent Parser identify?+
It regex-classifies the supplied string as Edge, Chrome, Firefox, Safari, or Unknown, and Windows, macOS, Android, iOS, Linux, or Unknown; mobile is a Boolean regex result.
What does a supplied Chrome/Linux user agent return?+
The supplied Chrome/Linux user agent returns browser Chrome, os Linux, and mobile false.
What does it not parse?+
This parser uses a small ordered set of case-sensitive substring tests. It identifies Edge, Chrome, Firefox, or Safari; Windows, macOS, Android, iOS, or Linux; and marks mobile when Mobile, Android, iPhone, or iPad occurs. Empty input falls back to the current browser user agent. It does not reject malformed strings, extract versions or device models, distinguish bots, or implement full User-Agent Client Hints parsing.
Does it inspect the actual device?+
With supplied text it parses that text locally. It does not verify the physical device or submit the input payload.
