Every time you visit a website, your browser sends a hidden identifier that tells the server exactly who you are — not by name, but by the software you’re using. That string of text is your user agent, and it reveals more than you might expect: your browser, its version, your operating system, and even your device type. We’ll show you how to find your personal user agent, what it’s used for, and whether you should be concerned about privacy.

RFC Standard: RFC 2616 (HTTP/1.1) ·
Year Introduced: 1996 (HTTP/1.0) ·
Common Format Example: Mozilla/5.0 (platform; rv:version) Gecko/geckotrail Firefox/firefoxversion

Quick snapshot

1Confirmed facts
2What’s unclear
  • How unique a user agent string is across all users (MDN Web Docs)
  • Exact impact of user agent on browser fingerprinting accuracy (MDN Web Docs)
  • Whether user agent reduction will fully prevent fingerprinting (Chrome Status)
3Timeline signal
  • 1993: First user agent string used by Mosaic browser (Wikipedia)
  • 1996: User-Agent header defined in HTTP/1.0 RFC 1945 (MDN Web Docs)
  • 2020: Chrome begins User-Agent reduction to limit fingerprinting (Chrome Status)
4What’s next
  • Client Hints (Sec-CH-UA) are emerging as a more secure alternative (MDN Web Docs)
  • Feature detection is recommended over user agent sniffing (MDN Web Docs)

Four key facts, one pattern: the user agent string has evolved from a simple compatibility marker into a potential privacy concern.

Label Value
Year introduced 1996 (HTTP/1.0)
Standard prefix Mozilla/5.0
Common use Content negotiation
Spoofable? Yes, easily

The catch: that ubiquitous “Mozilla/5.0” prefix is a historical artifact, not a guarantee of browser identity.

What is my user agent?

Definition of a user agent string

  • A User-Agent string is a component of the HTTP header sent by a client (browser or bot) to identify the application, operating system, and device type to the web server (Wikipedia).
  • User-Agent strings follow no strict standard, leading to variations across browsers like Chrome, Firefox, and Edge (DNS Checker).
  • The format often starts with “Mozilla/5.0” for compatibility (Wikipedia).

Components of a user agent

  • Product token: Browser name and version (e.g., Chrome/143.0.0.0)
  • Comment block: Platform details in parentheses (e.g., Macintosh; Intel Mac OS X 10_15_7)
  • Engine identifier: AppleWebKit/537.36 (KHTML, like Gecko) for WebKit-based browsers

How browsers construct the user agent

  • Chrome on macOS example: “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36” (MDN Web Docs)
  • Firefox example: “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/121.0” (WhatIsMyIP.net)
  • Edge includes additional arguments compared to Firefox, starting with “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36” (WhatIsMyIP.net)

Why this matters: the exact string your browser sends can be viewed by any website you visit, forming the baseline of your digital fingerprint.

Your browser’s user agent string is a mix of fixed and dynamic components that websites use to identify your browser and device; understanding its structure helps you control what you share.

How to identify a user agent?

  1. Using online user agent checker tools: Tools like WhatMyUserAgent display your current string instantly. WhatIsMyIP.net parses the string to show browser, OS, and device details. No installation needed — just visit the site and read the result.
  2. Checking browser developer tools: Open DevTools: right‑click anywhere → Inspect (or F12). Go to the Network tab and reload the page. Click any request, look for “User-Agent” under Request Headers (Google Chrome Help).
  3. Using JavaScript (navigator.userAgent): Open the browser console (Ctrl+Shift+J on Windows, Cmd+Option+J on Mac). Type navigator.userAgent and press Enter — the string appears immediately (MDN Web Docs). This method works across all modern browsers.

The takeaway: you have at least three ways to see your own user agent — use the method that fits your comfort level. The JavaScript approach is the most direct, but online tools add interpretation.

Using online tools, developer tools, or JavaScript, you can instantly find your user agent string — a simple step to see what websites know about your browser.

What is the user agent used for?

Server-side content negotiation

  • Websites use the user agent to serve the appropriate formatting — mobile version vs desktop version (MDN Web Docs).
  • Some sites block outdated browser versions by checking the user agent.

Browser analytics and device detection

  • Analytics tools like StatCounter count visits by browser and OS using the user agent field (StatCounter Global Stats).
  • Device detection helps companies optimize content for specific screen sizes and capabilities.

Providing mobile or desktop versions of websites

  • When your user agent says “Android” or “iPhone”, the server switches to a mobile layout.
  • This is why changing your user agent can make a site think you’re on a different device.

The implication: every website you visit silently logs your browser’s identity. This data fuels personalisation — but also enables tracking.

Websites use your user agent to tailor content, collect analytics, and detect devices, but this data also feeds tracking systems.

Is my user agent specific to my device?

Device-specific elements in user agent strings

  • User agent includes OS and sometimes device model (e.g., “Android 12; SM-G998B”).
  • It is not unique to a single user; many users sharing the same browser version and OS get identical strings (MDN Web Docs).

How user agents differ between browsers on the same device

  • Chrome, Firefox, and Safari each send different strings even on the same phone.
  • Each browser includes its own version number and rendering engine name.

Uniqueness and fingerprinting

  • Combined with other HTTP headers (Accept, Accept-Language, etc.), the user agent can contribute to a fingerprint that becomes semi‑unique (MDN Web Docs).
  • Browser initiatives like Chrome’s User-Agent reduction aim to limit these identifying details (Chrome Status).
  • The exact impact of user agent alone on fingerprinting accuracy is still unclear.

The trade-off: your user agent is not a fingerprint by itself, but it’s a key ingredient. That’s why browsers are actively reducing the data it exposes.

Your user agent alone isn’t unique, but combined with other headers it contributes to a semi-unique fingerprint; browser reduction efforts aim to limit this.

Is a user agent a security risk?

User agent and device fingerprinting

  • User agent alone is not a direct security threat — it doesn’t reveal passwords or personal data.
  • But malicious sites can use it as part of a fingerprinting profile to track users across sessions (MDN Web Docs).

Potential privacy concerns

  • Combining user agent with IP address, time zone, and installed fonts can create a nearly unique identifier.
  • User-Agent reduction by browsers like Chrome (starting 2020) addresses this by stripping non‑essential details (Chrome Status).

How to change or mask your user agent

  • Spoofing User-Agents allows attackers to impersonate legitimate browsers, but also lets privacy‑conscious users hide their real identity (MDN Web Docs).
  • Browser extensions like User-Agent Switcher for Chrome and Firefox let you change the string.
  • Some extensions can randomize the user agent on each request for extra privacy.
The paradox

Websites that scrape or block bots already spoof user agents. The same technique that attackers use can also protect your privacy — but it breaks sites that rely on accurate device detection.

Caution

Changing your user agent may cause websites to deliver incorrect content or block access. Use with caution.

What this means: the user agent is a two‑edged tool. For casual browsing, it’s harmless. For anyone concerned about tracking, it’s worth understanding and controlling.

User agents pose a minimal direct threat but enable fingerprinting; you can spoof your user agent for privacy, though it may break site functionality.

Confirmed facts

  • User agent is an HTTP header
  • User agent can be changed or spoofed
  • Websites use user agent for device detection

What’s unclear

  • How unique a user agent string is across all users
  • Exact impact of user agent on browser fingerprinting accuracy
  • Whether user agent reduction will fully prevent fingerprinting

Quotes from experts

A user agent is a software agent acting on behalf of a user, typically a web browser sending a User-Agent header to identify itself to a server.

— Wikipedia (general encyclopedia)

The User-Agent header is used to identify the client software making a request, allowing servers to tailor responses accordingly.

— MDN Web Docs (browser documentation)

For users concerned about privacy online, the choice is clear: either accept the default user agent your browser sends, or use an extension to mask it. But remember — spoofing can break websites that need accurate device information. The safest path is to stay informed and check your own user agent regularly.

Frequently asked questions

What is a user agent string?

A user agent string is a line of text your browser sends to every website you visit, identifying the browser name, version, operating system, and sometimes device model. It’s part of the HTTP header.

How do I change my user agent?

You can change it using browser extensions (e.g., User-Agent Switcher) or by modifying developer tools settings. On mobile, some browsers allow manual override in their settings.

Can I hide my user agent?

You cannot fully hide the user agent — every HTTP request requires one. But you can spoof it to appear as a different browser or device. Some extensions randomize it for privacy.

Does my user agent contain my IP address?

No, the user agent string does not contain your IP address. Your IP is separate header field. However, both are sent together and can be combined for tracking.

Why do websites see different user agents?

Different browsers and devices send unique strings. Even the same browser on the same device may have version updates that change the string. Some sites also see spoofed strings from users or bots.

What is the default user agent for Android?

Android’s Chrome user agent typically includes “Mozilla/5.0 (Linux; Android X.Y; [device model]) AppleWebKit/537.36…”. Exact format varies by Android version and browser.

Is my user agent the same across all browsers?

No, each browser you use (Chrome, Firefox, Safari, Edge) sends its own unique user agent string. They differ in format, version numbers, and platform identifiers.