Back to guides

User-Agent Parser|Decode access-log UA strings: browser, bot, or in-app WebView

Paste User-Agent strings from Nginx, gateways, or DevTools into WoDeTool’s browser-local parser—see browser, OS, device, and engine without uploading logs.

By WGinit · November 27, 2026 · 6 min read · 12 views

Why access-log UA strings hurt to read

Edge logs often store the full token on one line, for example a Pixel Android Chrome Mobile string with nested parentheses and KHTML, like Gecko compatibility noise. Support tickets that paste half a field, or ELK pipelines that truncate at 256 bytes, make it easy to misread the client.

When routing rules treat “looks like Chrome” as desktop, you can mislabel in-app WebViews, headless crawlers, and embedded enterprise browsers. Split the string first, then decide whether to change compatibility policy, rate limits, or fraud rules.

What WoDeTool User-Agent Parser does

Open User-Agent Parser, paste the full header value, or click the control that fills navigator.userAgent from the current tab. The page applies regular expressions in the browser and shows browser, browserVersion, os, osVersion, device, and engine—no upload to WoDeTool servers. Use redacted staging samples; do not publish customer-identifying log lines.

Detection order matches common desktop Chromium forks: Edg/ → Microsoft Edge, OPR/ → Opera, Chrome/ → Chrome when Edge was not matched, Version/...Safari → Safari, Firefox/ → Firefox. The engine row surfaces WebKit or Gecko version tokens when present.

OS mapping includes Windows NT to friendly Windows labels (10.0 → 10/11), iPhone and iPad tokens, Android with Mobile vs Tablet heuristics, and a coarse Linux label. Unknown means the heuristic missed, not that the header is empty.

Pair with HTTP replay and regex extraction

To reproduce a call, set the same User-Agent on HTTP Request and compare status codes across clients. Follow Replay staging APIs in the browser when you also need JSON formatting on the body.

For bulk logs, validate a capture regex in Regex Tester against a few lines, then paste outliers into the parser—the same split workflow as Extract emails from logs.

When a weird status might be policy-related rather than UA-related, cross-check semantics with HTTP Status Codes before blaming the client string.

End-to-end workflow (diagram)

From log UA to parsed summary and HTTP replay

Order of operations: copy the entire User-Agent from logs or DevTools Network → parse → paste the four summary lines into the ticket → optionally replay headers in HTTP Request. Partial tokens like Chrome/120 alone skew OS and device rows.

I archive both parsed summary and raw UA so a later log rotation does not erase the reasoning for a WebView classification.

Bots, WebViews, and bad guesses (diagram)

Monitors often reuse desktop Chrome UA tokens while traffic patterns look nothing like human clicks; the parser reports Chrome on Desktop, so combine QPS, paths, and robots policy instead of blocking on UA alone.

Mini-program and in-app browsers frequently wrap system WebViews as Mobile Safari or Chrome. If device reads Mobile while the native team insists on a pure SDK client, export the real header from the app and compare with how H5 is opened.

Unknown and in-app WebView triage

Use the branch chart when versions look wrong or fields stay Unknown. Very short strings are often custom HTTP clients; when Safari and Chrome tokens coexist, the tool follows its fixed priority (Edge before Chrome). User-Agent Client Hints (Sec-CH-UA-*) are not parsed here—read those headers directly when your gateway sends them.

Limits and safety

Parsing is regex-heuristic, not a full device database; niche browsers and spoofed strings may land on Unknown. Do not use parsed output as the only fraud signal in production.

UA headers are trivial to forge; treat WoDeTool as a debugger, not an identity provider.

Redact cookies and account identifiers before pasting log lines into any browser tool; avoid shareable URLs that embed full UA via query prefill.

FAQ

QWhy does Edge still contain Chrome/?

AChromium compatibility tokens keep Chrome/ in the string; when Edg/ is present the tool labels the browser as Edge and uses the Edg version.

QWhy Desktop when the user claims phone?

ASome tablet UAs omit Mobile, or traffic passes through a desktop gateway; read the raw token for Mobile, Android, or iPhone.

QDoes this replace a server ua-parser library?

ANo. Use it for on-call readability; persist analytics with your server-side library and tests.

QWhat does “use current browser” read?

Anavigator.userAgent in the active tab, which can differ from a manually set request header in HTTP Request.

Worked example (step by step)

1. Sample Nginx line with iPhone Safari 17.2 Mobile UA (full quoted string from your log).

2. Paste the quoted User-Agent into User-Agent Parser.

3. Expect Safari 17.2, iOS 17.2, device iPhone, engine WebKit 605.1.15.

4. If /api/feed fails only for that UA, replay GET in HTTP Request with the same header.

5. To extract other fields from the log line, prototype a capture regex in Regex Tester.

6. Ticket note: “iOS Safari 17.2, not in-app WebView” so Android compatibility is not investigated by mistake.

7. Close the tool tab after triage to avoid leaking internal UA samples during screen share.

Reference samples you can paste

Desktop Edge on Windows (truncated): contains Edg/120.0.0.0 and Windows NT 10.0; parser should prefer Edge over the embedded Chrome token.

Android Chrome Mobile: Android 14 plus Mobile Safari/537.36—device should read Mobile, os Android 14.

Custom bot with a ten-character UA: expect Unknown browser and short raw string; escalate to application owners rather than guessing Chrome.

Legacy curl/7.68.0: often Unknown browser with Linux os if the Linux token appears—fine for identifying scripted traffic.

When comparing two releases, paste old and new UA strings back-to-back and diff the four summary rows before updating documentation.

When not to trust the summary row

MITM proxies that rewrite headers, old WAF normalization, and copied values from X-Forwarded-User-Agent chains can disagree with what the origin actually saw—reconcile with the edge log field your SRE team treats as canonical.

If your API only logs User-Agent on OPTIONS but not on POST, the parser cannot fix observability gaps; fix logging first.

Internationalized domain or multipart upload issues rarely show up in UA at all; do not spend an hour on this tool when status codes point to payload limits—see HTTP Status Codes and payload guides instead.

Keep a short internal cheat sheet of the five UA families your product officially supports; paste only those templates into QA tickets so contractors do not chase one-off strings that never appear in production.

Copy-paste reference

Paste one log field into User-Agent Parser; split browser bots from mobile WebViews before writing firewall rules.

Mozilla/5.0 (Linux; Android 13) AppleWebKit/537.36 Chrome/120.0.0.0 Mobile Safari/537.36 MyApp/4.2.1

Related tools

Related guides