ZapKit

User agent parser

Make sense of the user-agent strings in server logs and analytics: which browser, which device, and which visitors were really bots.

What is a user agent?

A user agent string is a line of text every browser, app and bot sends with each web request to identify itself. It appears in server logs and analytics, and developers read it to debug browser-specific problems, estimate device mix and separate human traffic from crawlers.

Paste one or more user-agent strings, one per line. Each is broken down into browser and version, rendering engine, operating system and device type, with bots named when recognised. Totals count bots and phones, and the result can be copied as text or CSV.

How to use the User agent parser

  1. 1.Paste user agents

    One per line, from logs or analytics.

  2. 2.Read the results

    Browser, engine, OS, device and bot.

  3. 3.Export

    As readable blocks or CSV for a spreadsheet.

Example: four lines from an access log

Desktop Chrome, an iPhone, a Samsung phone and a crawler:

#1
Chrome 131, Blink, Windows 10 or 11, desktop
#2
Safari 18.1, WebKit, iOS 18.1, phone
#3
Samsung Internet 26.0, Android 14, phone
#4
Googlebot

Three real visitors and one search crawler, identified at a glance.

Why user agents are confusing

For historical reasons almost every browser claims to be "Mozilla/5.0", Chrome mentions Safari, and Edge mentions Chrome. The parser checks for the most specific markers first, such as Edg, OPR and SamsungBrowser, before falling back to Chrome or Safari.

Modern browsers also freeze parts of the string for privacy: Windows 11 still reports Windows NT 10.0, and recent macOS versions report 10_15_7. Treat versions as approximate. Search crawlers, link previewers, AI crawlers and tools like curl are recognised as bots.

Frequently asked questions

Why does it say Windows 10 or 11?

Both send the same string. Only client hints can tell them apart.

Can user agents be faked?

Yes. Any client can send any string, so don't rely on it for security.

How do I see my own user agent?

The browser info tool shows yours.

Is my data uploaded?

No. Parsing is local.

More Developer tools