User Agent Parser

Analyze your browser user-agent or parse custom UA strings. Fast, free, and fully client-side.

How the User Agent Parser Works

Reads a user-agent string, either from your current browser or one you paste in, and reports the browser and operating system it names. Browsers are matched in this order: Firefox, Edge, Opera, Chrome, then Safari. Operating systems are matched as Windows, iOS, macOS, Android, or Linux. Versions are not extracted. Runs in your browser and the string is never uploaded.

Usage Example

Identifies the browser and operating system behind a user-agent string copied from a server access log.

Frequently Asked Questions

Why is Edge checked before Chrome?

Modern Edge user-agent strings also contain the Chrome token, so Edge is matched first using its edg/ token, with the legacy edge/ token accepted too. Opera is checked before Chrome for the same reason.

Does the output include version numbers?

No. Only the browser name and operating system family are reported, such as Windows or iOS. Version numbers in the string are ignored, so use the raw string if you need them.

What is shown when nothing matches?

The browser field reads Unknown Browser and the operating system field reads Unknown OS when no known token is found. This can happen with less common browsers or with clients that send a custom string.

Browse more

See all developer reference guides and interactive utilities.