User agent parser

Paste any user agent string to break it into browser, rendering engine, operating system and device type. Your own user agent is filled in to start, and a shared link opens with its string already parsed. Everything runs in your browser.

What to parse

The result updates as you type. Press Ctrl+Enter (Cmd+Enter on a Mac) or Parse to save the string to recent parses.

Result

Reading your user agent...

Recent parses

No recent parses yet. The last 10 strings you parse are kept here, in this browser only.

Share a result, pick up where you left off, or parse a list

  • Result links. The copied link keeps the user agent in the part after the #, so a support ticket or a chat message can point straight at one parsed string.
  • Recent parses. Your last ten strings stay listed under the parser in this browser. Click one to bring it back, or clear the list in one go.
  • Batch and CSV. Paste a column of user agents from a log or an analytics export and get one row per line, ready to download as a CSV for a spreadsheet.

Anatomy of a user agent string

A modern user agent looks cryptic because it carries decades of compatibility baggage. It almost always begins with Mozilla/5.0, then lists the platform, the rendering engine, and finally the real browser and version. Once you know which token means what, the string reads cleanly. Here are the pieces you will meet most often.

TokenWhat it means
Mozilla/5.0Legacy compatibility prefix, present on nearly all browsers.
Windows NT 10.0Windows 10 or 11 (the version is frozen for privacy).
Macintosh; Intel Mac OS XA Mac running macOS.
X11; Linux x86_64A 64-bit Linux desktop.
iPhone; CPU iPhone OSAn iPhone running iOS.
Linux; AndroidAn Android device.
AppleWebKit/537.36The WebKit-derived engine used by Chromium browsers.
KHTML, like GeckoCompatibility token kept for historical sniffing.
Gecko/20100101Firefox's rendering engine token.
Chrome/120.0.0.0Google Chrome, major version 120.
Edg/120.0.0.0Microsoft Edge, major version 120.
OPR/The Opera browser.
Version/17.1 SafariSafari, with its version in the Version token.
Mobile SafariA mobile build, used by Android Chrome and iOS Safari.

Why parsing is fiddly

The hard part is that browsers impersonate each other. Chrome, Edge and Opera all include Safari and like Gecko in their strings, so a naive check for Safari matches almost everything. The reliable approach, which this parser uses, is to look for the most specific marker first (Edge before Chrome, Chrome before Safari) so you land on the true browser rather than a compatibility alias.

Frequently asked questions

How do I read a user agent string?

A user agent packs platform tokens, an engine marker and a browser and version into one line. This parser splits it into browser, engine, operating system and device so you do not have to decode it by hand, and the token table above explains each piece.

Can I share a parsed user agent with someone?

Yes. Copy link to this result builds a link that ends in #ua= followed by the encoded string. Browsers do not send the part after the # to a server, so our server never receives the string; the parser on the other end reads it from the link and shows the same result. Links that use ?ua= open as well.

Where are my recent parses stored?

Only in this browser's local storage, as a list of the last 10 strings. A string is saved after a second without typing or when you press Parse. Clear recent parses deletes the list, and nothing in it is ever uploaded.

Can I parse many user agents at once and export them?

Yes. Switch to batch mode and paste one user agent per line, up to 1,000 lines. You get a table with browser, version, engine, OS, device and a bot flag for every line, and Download CSV saves the same rows as a standard CSV file that is built on your device.

Is there an API for parsing user agents?

Not a parsing endpoint: this parser runs in your browser, so the strings you paste never leave it. The free static API serves the user agent token reference from the table above as JSON, which you can pair with your own parsing code.

What is my own user agent?

It is filled in above when the page opens, unless you arrived through a shared link, and the what is my user agent page shows it in full with an explanation of what it reveals.