ToolNimba Browse

🕵️ User Agent Parser

By ToolNimba Web Dev Team · Updated 2026-06-19

Reading your browser's user agent...

A user agent (UA) is the short identifier string your browser sends with every request, telling a server what software and platform you are running. This tool shows your own user agent the moment the page loads, then breaks it (or any string you paste) into the browser name and version, operating system, device type, and rendering engine. Everything runs in your browser, so the string is never sent anywhere.

What is the User Agent Parser?

The user agent string is a single header value, User-Agent, that a browser includes on every HTTP request. A typical desktop Chrome string looks like Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36. It packs several facts into one line: the platform (Windows NT 10.0), the rendering engine (AppleWebKit), and the browser and version (Chrome/124). Servers and analytics tools read this to tailor responses, gather statistics, or block bots.

Parsing a UA reliably is harder than it looks because the format is a tangle of historical compatibility tokens. Almost every browser still begins with Mozilla/5.0 for legacy reasons, Chrome includes the word Safari, and Microsoft Edge includes both Chrome and Safari. That is why a parser must check the most specific tokens first: look for Edg before Chrome, and Chrome before Safari, otherwise everything would be misread as Safari. This tool uses ordered regular expression heuristics that follow that priority.

Because the string is self-reported, it can be spoofed, abbreviated, or frozen. Modern browsers are intentionally reducing UA detail (so-called user agent reduction) and offering structured User-Agent Client Hints instead, which expose the same facts in a cleaner, privacy-aware way. Treat any parsed result as a best-effort guess rather than proof: it is great for debugging and analytics, but never use it alone for security decisions.

When to use it

  • Quickly checking your own browser, version, and OS to report a bug or confirm an update installed.
  • Debugging why a site behaves differently for one visitor by inspecting the exact UA string from their support ticket.
  • Testing how server-side or analytics code classifies different devices by pasting sample UA strings.
  • Spotting whether a request likely came from a bot, crawler, or automated client rather than a real browser.

How to use the User Agent Parser

  1. Your own user agent is shown automatically when the page loads.
  2. To inspect a different string, paste it into the text box (or press "Use my browser" to restore your own).
  3. Press Parse, or just edit the box, to read the breakdown.
  4. Review the browser, version, operating system, device type, and rendering engine cards.

Formula & method

There is no arithmetic formula. The parser applies ordered regex heuristics: test specific tokens first (Edg, then OPR, then Chrome, then Safari) so generic substrings like Safari or Mozilla/5.0 do not cause a misread.

Worked examples

Parsing Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

  1. Check for Edg: not present, skip Edge.
  2. Check for OPR or Opera: not present, skip Opera.
  3. Check for Chrome: present, so browser = Google Chrome, version 124.0.0.0.
  4. Read Windows NT 10.0, which maps to Windows 10 or 11.
  5. No Mobi or tablet token, so device = Desktop.
  6. AppleWebKit plus Chrome means the engine is Blink.

Result: Google Chrome 124, Windows 10 or 11, Desktop, Blink engine.

Parsing Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Mobile/15E148 Safari/604.1

  1. No Edg, OPR, Firefox, or CriOS or Chrome tokens.
  2. Version/17.4 with Safari present, so browser = Apple Safari, version 17.4.
  3. iPhone with OS 17_4 maps to iOS / iPadOS 17.4 (underscores become dots).
  4. The Mobile and iPhone tokens mean device = Mobile.
  5. AppleWebKit without Chrome means the engine is WebKit.

Result: Apple Safari 17.4, iOS / iPadOS 17.4, Mobile, WebKit engine.

Common UA tokens and what they indicate

Token in stringMeans
Chrome/124Google Chrome (or a Chromium browser) version 124
Edg/124Microsoft Edge version 124
Firefox/125Mozilla Firefox version 125
Version/17.4 ... SafariApple Safari version 17.4
Windows NT 10.0Windows 10 or 11
Mac OS X 10_15_7macOS 10.15.7 (underscores are version dots)
iPhone; CPU iPhone OS 17_4iOS / iPadOS 17.4 on an iPhone
MobiA mobile device hint

Common mistakes to avoid

  • Trusting the user agent as proof of identity. The UA is self-reported and trivially changed in browser dev tools or scripts. Use it for analytics and debugging, never as the sole basis for a security or access decision.
  • Matching Safari before Chrome or Edge. Chrome strings contain the word Safari, and Edge strings contain both Chrome and Safari. Test the most specific tokens (Edg, OPR) first, or you will label everything as Safari.
  • Reading Windows NT 10.0 as exactly Windows 10. Windows 11 still reports Windows NT 10.0 in the UA, so the string alone cannot tell 10 and 11 apart. This tool shows "10 or 11" to reflect that ambiguity.
  • Expecting full detail from reduced user agents. Browsers are freezing and trimming UA strings for privacy. Minor versions and some platform details may be missing, which is why Client Hints exist as a structured alternative.

Glossary

User agent (UA)
The identifier string a browser sends in the User-Agent header to describe its software, version, and platform.
Rendering engine
The component that turns HTML and CSS into pixels, for example Blink (Chrome, Edge), WebKit (Safari), or Gecko (Firefox).
Token
A labelled fragment inside the UA string, such as Chrome/124 or Windows NT 10.0, that a parser matches with a pattern.
Client Hints
A newer, structured alternative to the UA string that lets servers request specific browser facts on demand.
Spoofing
Deliberately sending a fake or altered user agent to disguise the real browser, device, or bot.

Frequently asked questions

What is my user agent?

Your user agent is the string your browser sends to identify itself. This tool reads it automatically with the navigator.userAgent property the moment the page loads and shows it in the text box, along with a parsed breakdown of your browser, OS, and device.

Is my user agent data sent anywhere?

No. The parsing runs entirely in your browser with JavaScript. Your user agent string and anything you paste stay on your device and are never uploaded to a server.

Why does my UA say Safari when I use Chrome?

For historical compatibility, Chrome and most Chromium browsers keep the word Safari (and the AppleWebKit token) in their string. A good parser checks for the Chrome or Edg token first, which is why this tool reports the correct browser.

Can I rely on the user agent to detect the browser?

It is useful for analytics and debugging, but it is self-reported and easy to fake, and browsers are reducing the detail they include. For critical logic, prefer feature detection or structured User-Agent Client Hints instead.

Why does Windows show "10 or 11"?

Windows 11 still reports Windows NT 10.0 in its user agent, identical to Windows 10. The string alone cannot distinguish them, so the tool shows both possibilities rather than guessing wrongly.

Can I parse any user agent string, not just my own?

Yes. Paste any UA string into the box, for example one from a server log or a support ticket, and press Parse. The tool applies the same heuristics to break it into browser, OS, device type, and engine.