What Is a User Agent? Browser Strings Decoded

Every time your browser loads a page, it introduces itself to the server with a line of text. That line helps sites serve the right version of a page, appears in analytics reports and identifies search engine bots. So what is a user agent, how do you read one, and why does almost every browser claim to be "Mozilla"? Here is a clear guide.

Screenshot of the User Agent Parser on Assen Tools
The User Agent Parser in use. Open the User Agent Parser – free, no sign-up.

The definition

A user agent is the software acting on your behalf when you use the web – usually your browser. It identifies itself through the User-Agent header, a user agent string sent with every request.

A typical Chrome on Windows string looks like this:

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

Reading the string

  • Mozilla/5.0 – a historical token almost every browser includes for compatibility.
  • (Windows NT 10.0; Win64; x64) – the operating system and architecture. Windows 10 and 11 both report NT 10.0.
  • AppleWebKit/537.36 (KHTML, like Gecko) – the rendering engine family and more compatibility tokens.
  • Chrome/130.0.0.0 – the actual browser and major version.
  • Safari/537.36 – another compatibility token.

On an iPhone you would see "iPhone; CPU iPhone OS…" and "Mobile Safari". On Android, "Linux; Android" plus a device model may appear.

Why every browser says Mozilla

In the 1990s, websites sent advanced pages only to Netscape (codenamed Mozilla). Other browsers started including "Mozilla" so they would get the good version too. Each new browser copied the tokens of the previous ones, which is why today's strings are full of names of browsers that no longer exist.

What user agents are used for

  • Analytics: reports on which browsers, devices and operating systems visitors use.
  • Troubleshooting: support teams ask for your user agent to reproduce bugs.
  • Serving content: some sites show mobile layouts or download links for the right operating system.
  • Identifying bots: each crawler announces itself, such as Googlebot, Bingbot or AI crawlers, so site owners can manage them in robots.txt – see what is robots.txt.

Why you should not rely on it

User agents are easy to fake and increasingly vague. Chrome and other browsers now reduce the detail in the string – freezing minor version numbers and operating system details – to protect privacy and reduce fingerprinting. More precise information is available on request through User-Agent Client Hints.

For developers, the advice is clear: use feature detection (checking whether the browser supports something) and responsive design rather than browser detection wherever possible.

Privacy

Your user agent is one of many details that can help identify a browser. On its own it reveals little, but combined with screen size, fonts and other settings it contributes to fingerprinting. Mainstream browsers keep their strings generic to limit this.

Decode any user agent

The free User Agent Parser shows your own user agent and breaks any string into browser, version, engine, operating system and device type. Paste strings from server logs to understand who is visiting.

Related tools:

Frequently asked questions

Can I change my user agent? Yes. Browser developer tools let you switch it to test mobile layouts, and extensions can change it permanently.

How do I know a visitor is really Googlebot? Do not trust the string alone. Google recommends a reverse DNS lookup to confirm the request came from Google.

Does the user agent show my IP address? No. The IP address is part of the network connection, not the user agent string.

Summary

So, what is a user agent? The browser or bot making a web request, identified by a user agent string in every request header. It helps with analytics, troubleshooting and bot management but is easy to fake and increasingly reduced for privacy. Decode any string with the free User Agent Parser.

Jonathan Nwachukwu, founder of Assen Tools

Written by

Jonathan Nwachukwu · Founder & developer

Jonathan is a freelance web developer and web development teacher who builds Laravel, WordPress and WooCommerce sites for clients. He built AssenTools to put the everyday file, photo and calculation jobs he kept doing for clients and students into one free, private toolbox, and he maintains every tool and guide on the site.