Skip to content

Parse a batch of user-agent strings

Split newline-separated user agents and identify browser, device, engine, operating system, and CPU for each one.

Install in Serialize

What it can do

  • Process multiple user agents at once
  • Identify browser and rendering engine
  • Identify operating system, device class, and CPU
  • Preserve a readable separator between reports

How the recipe works

Fork

Fork once per newline-delimited user agent.

Parse User Agent

Parse each branch into normalized fields.

Merge

Merge reports with a visible separator.

Demonstration

Sample input

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/126.0.0.0 Safari/537.36
Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 Version/17.5 Mobile/15E148 Safari/604.1

Expected result

Separate Chrome/Windows and Mobile Safari/iPhone reports.

When to use it

  • Web-log review
  • Support diagnostics
  • Traffic-segment sanity checks

Adapt it

Change the Fork delimiter when user agents come from a CSV column or another export format.

Source and verification

Adapted from GCHQ CyberChef project and examples. The explanation and sample are written for Serialize, use synthetic or documentation-safe data, and are checked against the current operation catalogue. The workflow runs locally without an external API call.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close