User agent strings: how to read them and what to trust
Reviewed 23 November 2026 · 6 min read · Written and maintained by Toolnexo
A user agent string is the line of text a browser or app sends to say what it is. It fills server logs and analytics reports, and it looks like nonsense at first sight: almost every one begins with Mozilla/5.0 and many name three browsers at once. This guide explains how to read one, why they look this way, which parts browsers now hide, and what a user agent can and cannot tell you. The examples come from the user agent parser on this site, which runs in your browser, so nothing you paste is uploaded.
Where the string comes from
A browser sends its user agent in the User-Agent header of every web request, and a page can read the same text with navigator.userAgent. Servers use it in logs, analytics and, less often, to serve different pages. It is plain text chosen by the client, so it can be changed by an extension, a developer tool or a script.
Reading a real one
Take Chrome on Windows: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36. Mozilla/5.0 is a historical label with no meaning today. The brackets hold the platform: Windows, 64-bit. AppleWebKit/537.36 and the words KHTML, like Gecko are also historical. Chrome/120.0.0.0 is the part that names the browser, and Safari/537.36 is another historical label. The parser reads it as Chrome 120.0.0.0, engine Blink, Windows 10 or 11, a desktop.
Firefox is simpler: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0 gives Firefox 121.0 with the Gecko engine on Ubuntu. Safari on a Mac gives Safari 17.2 with WebKit, and the system shows as macOS 10.15.7, which is discussed below.
Why everything says Mozilla and Chrome and Safari
Early websites sent their best pages only to the browser called Mozilla, so every other browser copied the name to be treated the same, and the habit stuck. Browsers built on one another then kept the older names in their strings. Edge, which is built on the Chrome engine, sends Chrome/120.0.0.0 Safari/537.36 Edg/120.0.2210.91. Opera adds OPR/ and Samsung Internet adds SamsungBrowser/. The result is that the most specific name is last in the string but must be tested first, or every Chromium browser would be reported as Chrome. The parser does this, so that example reads as Edge 120.0.2210.91.
Phones and tablets
On Android, the brackets hold the system and often the model: Linux; Android 14; Pixel 8. The word Mobile later in the string marks a phone, and its absence marks a tablet. An iPhone says CPU iPhone OS 17_1_2, which the parser shows as iOS 17.1.2, with the underscores turned into dots.
Every browser on an iPhone or iPad has to use Apple WebKit, so Chrome for iOS, which says CriOS, is reported with the WebKit engine rather than Blink. Recent iPads can also ask for desktop sites and then send a Mac-style string, so an iPad cannot always be told from a Mac.
Parts that browsers now hide
- Windows 10 and Windows 11 both send Windows NT 10.0, so they cannot be told apart.
- Safari and Chrome on a Mac keep reporting 10_15_7 no matter which macOS is installed.
- Chrome reports only the major version and writes the rest as 0.0.0, so 120.0.0.0 means Chrome 120.
- Reduced Chrome strings on Android show a fixed system version and the letter K in place of the device model, so the real model is not available.
- Chromium browsers offer User-Agent Client Hints, a newer way for a server to ask for details. Other browsers do not, so a site cannot rely on them everywhere.
Crawlers and tools
Search crawlers announce themselves: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) is read as Googlebot 2.1 and marked as a bot, and curl/8.4.0 is read as the tool curl. Anyone can send a fake crawler name, so Google documents a check by reverse DNS lookup of the visiting address, and other search engines offer similar steps.
The same names are used in robots.txt. A rule for Googlebot or GPTBot matches the crawler's name, not the whole string, which is why the robots.txt generator offers a list of crawler names to block. Remember that robots.txt is a request and well-behaved crawlers follow it. It does not enforce anything.
What to trust and what not to
- Use it for broad statistics, such as the share of visits from phones or from one browser family. Small errors do not matter in a total.
- Do not use it for security or access control. It can be faked with one line of code.
- Do not use it to decide which features a browser supports. Test for the feature itself, for example with an if check on whether the API exists, because browsers add and drop features between versions.
- Treat the model and system version as hints. The tool prints a note whenever a part is known to be frozen or hidden.
Using the parser
- Paste a string from a log or a header, press Use my browser to read your own, or try one of the examples.
- Read the browser, system, device and engine, then the notes under them.
- The tool knows the common browsers, systems and crawlers. A rare one shows as Unknown, and an empty box shows nothing.
Put it into practice
User Agent Parser
Paste a user agent string to see the browser, version, operating system, device type and rendering engine, or read the one your own brows…
Runs in your browserRobots.txt Generator
Build a valid robots.txt file with user-agent groups, allow and disallow rules, crawl delay and sitemap lines, with presets for WordPress…
Runs in your browserHTTP Status Codes Reference
Look up any HTTP status code by number or keyword and see what it means, when servers send it and how to fix it, from 200 OK to 503 Servi…
Runs in your browserMeta Tag Generator
Generate the title, description, canonical, robots, Open Graph and X (Twitter) card tags for a page, with length checks and a live search…
Runs in your browserHow this guide is maintained
This page is reviewed when the related tools change. It describes what the published tools actually do: the tools run in your browser tab, so your files stay on your device. If you find something inaccurate, email [email protected] and it will be corrected.
Other guides
- How to merge PDFs without uploading them6 min · 17 November 2026
- OCR a scanned PDF: accuracy, limits and privacy7 min · 17 November 2026
- Compress a PDF without destroying readability6 min · 17 November 2026