Browser diagnostics

User-Agent String Parser

Paste any User-Agent string, or use your own browser's, and see the browser, rendering engine, operating system and device type parsed out in plain language.

Raw breakdown

CategoryDetected valueMatched pattern / text

Parsing runs entirely in your browser with regular expressions — nothing is sent anywhere.

🌐

Every major browser

Detects Chrome, Edge, Firefox, Safari, Opera and Samsung Internet in an order that avoids common misdetection.

Engine and OS aware

Reports the rendering engine and operating system version alongside the browser itself.

📱

Device type heuristics

Flags mobile, tablet or desktop based on the tokens real browsers actually send.

How to use the User-Agent string parser

Start with your own browser, or paste one you found in a server log or support ticket.

  1. Start from your own browserThe field is pre-filled with your live navigator.userAgent value.
  2. Or paste a different oneReplace it with any User-Agent string from a log file, bug report or API request.
  3. Read the summary and breakdownSee the browser, engine, OS and device type, plus exactly which text matched each rule.

Why User-Agent parsing is messier than it looks

The User-Agent header has accumulated three decades of compatibility tokens, so almost every browser's string contains references to other browsers it is pretending to be compatible with. Chrome's string says Safari. Edge's string says Chrome and Safari. This tool checks the most specific, hardest-to-fake tokens first (like Edg/ or OPR/) and only falls back to a generic Safari match once every Chromium-based browser has been ruled out.

Browser and version

Identified from an ordered list of tokens, checking newer or more specific browsers before generic ones.

Rendering engine

Blink, Gecko, WebKit or Trident, inferred from the same tokens used for browser detection.

Operating system

Windows, macOS, Linux, Android, iOS and iPadOS are each detected from their own distinct substring.

Device type

A best-effort guess from Mobi, iPad and Android tokens, since there is no dedicated device field.

User-Agent parser FAQ

Common questions about accuracy and how detection works.

Why does Safari's user agent string also mention Chrome and Safari tokens?

Many non-Safari browsers include a Safari/ version token for compatibility with sites that only check for it, and Chrome-based browsers keep an AppleWebKit and Safari token from their WebKit origins. Reliable detection has to check for Chrome-specific and other engine-specific tokens before falling back to Safari, which this tool does in order.

Can a User-Agent string be faked?

Yes, completely. Any browser or script can send whatever User-Agent string it wants, and DevTools lets you override it with one click. Treat parsed results as a hint about what a visitor is reporting, never as proof of what software they are actually running.

Why is device type sometimes ambiguous?

Device type is inferred from heuristics such as the presence of Mobi, iPad or Android in the string, since there is no dedicated field. Some tablets identify as desktops and some desktop browsers in responsive mode add mobile-like tokens, so this is always a best guess.

What is a rendering engine?

The rendering engine is the underlying software that parses HTML and CSS and paints the page. Blink powers Chrome, Edge, Opera and most Android browsers; Gecko powers Firefox; WebKit powers Safari; older Internet Explorer used Trident.

Is my User-Agent string sent anywhere?

No. Parsing happens entirely with regular expressions in your browser. Nothing you paste or your own browser's live string is transmitted anywhere.