Runs in your browser ยท nothing uploaded
  1. Home
  2. Guides
  3. What Is a User Agent?
Browser

What Is a User Agent?

A practical guide to understanding user agent strings, including how to read the data, interpret privacy masking, and verify your specific browser signals.

By DeviceInfo Editorial Team October 20, 2026 4 min read

Illustration for the guide: What Is a User Agent?

The user agent is a text string sent by your browser to servers with every HTTP request. It identifies the browser family, operating system, and rendering engine, though modern browsers increasingly mask specific details to protect privacy. Understanding this string is essential for diagnosing compatibility issues and understanding how websites detect your device.

Short answer

A user agent is a compatibility label included in every browser request that describes your software and operating system environment. While it originated as a technical identifier, it now contains layers of legacy code and privacy sanitization. You can view your current string by opening your browserโ€™s developer tools or using a dedicated checker tool.

What the check does

When you run a user agent check, the browser sends a specific request to the server. The server reads the User-Agent header from that request and displays the raw string. This process does not change your browser settings; it simply reveals what data is already being transmitted. The check helps you see exactly which information is exposed to the public internet versus what remains hidden.

How to read the result

Reading a user agent string requires looking past the clutter. Most strings begin with tokens claiming compatibility with older browsers, such as Mozilla, which dates back to the Netscape era. After the compatibility prefix, the string lists the operating system (like Windows, macOS, Linux, or Android). The final sections identify the browser family and version number. In modern browsers, some fields may appear generic or identical across different users because privacy features have stripped unique identifiers from the string.

What the values mean

Each segment of the string serves a specific purpose, ranging from legacy compatibility to current hardware signaling. The table below breaks down the common components found in modern browser requests.

Signal SegmentMeaning
Compatibility PrefixLegacy code ensuring websites built for older browsers still render correctly.
OS TokenIdentifies the operating system, such as Windows 10, macOS, or Android.
Browser FamilyThe specific browser name, like Chrome, Firefox, or Safari.
Version NumberThe major version of the browser, used for feature detection.
Generic TokenA sanitized placeholder used when privacy settings mask specific details.

Common questions

  • Why does my string say "Mozilla" when I use Chrome? This is a legacy artifact from the 1990s to ensure compatibility with old web standards.
  • Does changing my user agent change my IP? No, the user agent is separate from network identity; changing it only alters software identification.
  • Why do two different browsers have similar strings? They are designed to look similar to support the same web technologies.
  • Is a user agent a security vulnerability? It contains no passwords or sensitive data, but it can reveal device information to trackers.

Try it live

Use the User Agent Checker to see your current string and understand which segments are active on your specific device.

Limitations

The user agent string is no longer a reliable source of precise hardware data. Browsers intentionally mask details like specific screen resolution, exact version numbers, and unique extensions to protect user privacy. Additionally, websites cannot always trust the user agent because it is easily spoofed by malicious users. For accurate device detection, websites must use multiple signals, such as canvas rendering, WebRTC, and JavaScript features, rather than relying on this text string alone.

Frequently asked questions

Can I change my user agent?

Yes, some browsers allow extension-based changes or manual configuration in advanced settings. However, changing the string does not hide your IP address or guarantee anonymity, as other signals may still identify your device.

Why is the string so messy and long?

Decades of web development required new features to be added without breaking old ones. The accumulated compatibility flags create a cluttered string that prioritizes backward compatibility over clean design.

Does the user agent reveal my exact hardware model?

Usually, no. Modern browsers report generic device classes, such as "mobile" or "desktop," rather than specific model numbers. WebRTC and WebGL can sometimes reveal more specific data if not blocked.

What is a "generic" user agent?

This is a standard string provided by privacy-focused browsers that strips out unique identifiers. It ensures that users on the same operating system and browser version look identical to servers, preventing fingerprinting based on the UA string alone.

Your device, your values

See this on your own browser right now

Keep reading