User-Agent Parser
Decode a User-Agent into browser, OS and device.
How to use
- 1 Paste a User-Agent string, or click “Use mine”.
- 2 Read the detected browser and version.
- 3 Read the operating system and version.
- 4 Check the device class: mobile, tablet or desktop.
About User-Agent Parser
The User-Agent Parser turns a raw User-Agent string into something readable: the browser and its version, the operating system and its version, and whether the request came from a mobile, tablet or desktop device.
Paste a string from your server logs or analytics, or use the button to parse your own browser’s User-Agent, and the breakdown appears instantly.
User-Agent strings are deliberately messy.
Chrome pretends to be Safari, Edge pretends to be Chrome, and every browser still carries the “Mozilla/5.0” fossil from the 1990s.
This parser applies ordered heuristics — checking for the more specific tokens first — so Edge is not mistaken for Chrome and Safari is not mistaken for the Chrome it impersonates. iOS versions written with underscores are normalised to dots, and Android devices without a “Mobile” token are correctly treated as tablets.
It is useful for debugging device-specific issues, sanity-checking analytics, or understanding a log line at a glance without reaching for a heavyweight library.
Because User-Agents are unreliable by nature, fields that cannot be determined are reported as “Unknown” rather than guessed.
The parsing is pure client-side JavaScript: the string you paste never leaves your browser.
FAQ
How accurate is the detection?
It uses regex heuristics that cover modern Chrome, Firefox, Safari, Edge and Opera across Windows, macOS, iOS, Android and Linux. Unusual or spoofed strings may report “Unknown”.
Is my User-Agent sent anywhere?
No. Parsing happens entirely in your browser; nothing is uploaded or logged.