Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk5 min

What Is a User Agent in a Browser?

A browser user agent is the software making a web request; its User-Agent string is an advertised identifier, not a trustworthy browser or feature check.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A browser user agent is the software that makes a request to a website. The term also commonly refers to the identifying text a browser sends in the HTTP User-Agent header, or exposes to JavaScript as navigator.userAgent. That text can describe a browser, operating system, or platform, but it is not a reliable proof of identity or a dependable way to determine which features the browser supports.

What “user agent” means

In the broad sense, a user agent is the client software requesting a web resource. A browser is one kind of user agent; a crawler or command-line HTTP library can be one too. In everyday web development, people also use “user agent” to mean the browser’s identifying string specifically.

For an HTTP request, that string is carried in the User-Agent header. In browser JavaScript, the corresponding value is available as navigator.userAgent:

console.log(navigator.userAgent);

A server can inspect the request header; code running in the page can inspect the browser property. Both are advertised values supplied by the client, not cryptographic identity statements.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Amazon Basics Wired QWERTY Keyboard, Works with Windows, Plug and Play, Easy to Use with Media Control, Full-Sized, Black
  • KEYBOARD: The keyboard works for Windows with hot keys that enable easy access to Media, My Computer, Mute, Volume up/down, and Calculator
  • EASY SETUP: Experience simple installation with the USB wired connection
  • VERSATILE COMPATIBILITY: This keyboard is designed to work with multiple Windows versions, including Vista, 7, 8, 10 offering broad compatibility across devices.
  • SLEEK DESIGN: The elegant black color of the wired keyboard complements your tech and decor, adding a stylish and cohesive look to any setup without sacrificing function.
  • FULL-SIZED CONVENIENCE: The standard QWERTY layout of this keyboard set offers a familiar typing experience, ideal for both professional tasks and personal use.

What a user-agent string tells a website

A string conventionally contains a product identifier and version, and may include comments identifying a system or platform. Many real strings also contain compatibility tokens and other historical details, so they are not a clean inventory of every component involved in rendering a page.

For example, a string may combine a Mozilla/5.0 token, rendering-engine information, platform text, and browser names or versions. Such a mixture reflects compatibility conventions; it does not mean every named component is the browser actually being used. There is no one universal string that applies to all browsers and devices.

Use the value as a clue for diagnostics or coarse logging, not as proof that a request came from a particular browser, operating system, or person. Browsers and other clients can change the value, and the same browser can expose different values in different circumstances.

Rank #2
Sale
Logitech MK270 Full Size Wireless Keyboard and Mouse Combo - Black
  • Reliable Plug and Play: The USB receiver provides a reliable wireless connection up to 33 ft (1), so you can forget about drop-outs and delays and you can take it wherever you use your computer
  • Type in Comfort: The design of this keyboard creates a comfortable typing experience thanks to the low-profile, quiet keys and standard layout with full-size F-keys, number pad, and arrow keys
  • Durable and Resilient: This full-size wireless keyboard features a spill-resistant design (2), durable keys and sturdy tilt legs with adjustable height
  • Long Battery Life: MK270 combo features a 36-month keyboard and 12-month mouse battery life (3), along with on/off switches allowing you to go months without the hassle of changing batteries
  • Easy to Use: This wireless keyboard and mouse combo features 8 multimedia hotkeys for instant access to the Internet, email, play/pause, and volume so you can easily check out your favorite sites

How to find your browser’s user agent

In the browser

  1. Open a page in the browser you want to inspect.
  2. Open its developer tools and select the Console.
  3. Enter console.log(navigator.userAgent) and run it.
  4. Read the resulting string. It is the value exposed to page JavaScript in that browser context.

The exact steps for opening developer tools vary by browser and operating system. The command reads a browser-provided value; it does not validate the browser’s identity.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In a server request

Inspect the incoming request’s User-Agent header in your server logs or request-handling code. This is the value the client sent with that request. A non-browser client may send a user-agent string too, and a client may omit or modify it.

Why browser detection by user-agent string is unreliable

A browser name or version in the string does not establish feature support. One browser may include a token associated with another for compatibility; a version-based rule can become stale as browser capabilities change; and the advertised value itself can be altered. Checking for a browser name before using a JavaScript feature can therefore reject a browser that supports it or accept one that does not.

Rank #3
Sale
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
  • All-day Comfort: The design of this standard keyboard creates a comfortable typing experience thanks to the deep-profile keys and full-size standard layout with F-keys and number pad
  • Easy to Set-up and Use: Set-up couldn't be easier, you simply plug in this corded keyboard via USB on your desktop or laptop and start using right away without any software installation
  • Compatibility: This full-size keyboard is compatible with Windows 7, 8, 10 or later, plus it's a reliable and durable partner for your desk at home, or at work
  • Spill-proof: This durable keyboard features a spill-resistant design (1), anti-fade keys and sturdy tilt legs with adjustable height, meaning this keyboard is built to last
  • Plastic parts in K120 include 51% certified post-consumer recycled plastic*

When the real question is whether a capability exists, test that capability directly and provide a fallback where needed. This is feature detection and progressive enhancement: the code responds to what the browser can do rather than guessing from its label.

if ('geolocation' in navigator) {
  // Offer the feature when it is available.
} else {
  // Provide an alternative or explain the limitation.
}

If a browser-specific workaround is genuinely necessary, keep it narrowly tied to the known bug, document why it exists, and avoid treating the user-agent string as a capability contract.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

User-agent strings, privacy, and Client Hints

Detailed browser and platform information can contribute to fingerprinting when combined with other signals. To reduce some of that detail, supporting browsers may remove or normalize information in the legacy string, including exact platform or operating-system version, device model, and minor browser version. Reduction of those fields does not make a user untrackable, nor does every browser necessarily emit the same reduced form.

Rank #4
Sale
Redragon K521 Upgrade Rainbow LED Gaming Keyboard, 104 Keys Wired Mechanical Feeling Keyboard with Multimedia Keys, One-Touch Backlit, Anti-Ghosting, Compatible with PC, Mac, PS4/5, Xbox
  • 【Dreamy Rainbow Gaming Keyboard】K521 Gaming Keyboard Adopts a Different LED Backlight Design, Upgraded on the Traditional LED Backlight Effect, Making the Light More Penetrating, Giving You a More Dazzling Visual Effect, Making Your Gaming Process More Enjoyable
  • 【One Touch Opens & Visual Feast】The K521 Red Dragon Keyboard has a One-Touch on/off Lighting Button for Added Convenience. It also has a Three-Position Adjustable Breathing Mode and a Four-Position Adjustable Brightness Lighting Mode
  • 【Mechanical Feeling & Fast Tapping】The PC Keyboard Keys are Designed for Mechanical Feeling, Giving You a Better Feel During Use and the Ability to Trigger Keys Quickly, Allowing You to Win All Your Games
  • 【19 Keys Anti-Ghosting Keyboard】Anti-Ghosting Ensures Every Button Can Be Triggered. This Allows You to Trigger Key Combinations In The Game Accurately, And Each Skill Can Be Accurately Released to Increase Your Winning Rate. Redragon K521 Will Be Your Perfect Partner
  • 【12 Multimedia Combination Keys】The K521 Wired Gaming Keyboard is Equipped with 12 Multimedia Keys That Can Greatly Enhance Your Gaming/Office Efficiency and Make It More Convenient to Use

For example, an illustrative Android Chrome string might replace detailed device and version information such as Android 16; Pixel 9 and 143.0.12.45 with a reduced form such as Android 10; K and 143.0.0.0. These values illustrate a reduction scheme; they are not a promise about what every current device reports.

User-Agent Client Hints provide a separate, more selective way for a server to request certain browser or platform details. A server can advertise accepted hints using Accept-CH; subsequent requests may then include headers such as Sec-CH-UA-*. In JavaScript, supporting implementations expose lower-entropy information through navigator.userAgentData and can request selected higher-entropy values with getHighEntropyValues().

Client Hints are not a universal replacement: support varies, and some values require an explicit request. The navigator.userAgentData property has limited availability and may require a secure context in supporting browsers. Check compatibility before depending on it, and avoid collecting details that your application does not need.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
Logitech K270 Full Size Wireless Keyboard for Windows - Black
  • All-day Comfort: This USB keyboard creates a comfortable and familiar typing experience thanks to the deep-profile keys and standard full-size layout with all F-keys, number pad and arrow keys
  • Built to Last: The spill-proof (2) design and durable print characters keep you on track for years to come despite any on-the-job mishaps; it’s a reliable partner for your desk at home, or at work
  • Long-lasting Battery Life: A 24-month battery life (4) means you can go for 2 years without the hassle of changing batteries of your wireless full-size keyboard
  • Simply plug the USB receiver into a USB port on your desktop, laptop or netbook computer and start using the keyboard right away without any software installation
  • Simply Wireless: Forget about drop-outs and delays thanks to a strong, reliable wireless connection with up to 33 ft range (5); K270 is compatible with Windows 7, 8, 10 or later
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Which approach should you use?

Approach Best suited to Trade-off
Legacy User-Agent string Diagnostics and coarse request logging May be misleading and can expose identifying details.
User-Agent Client Hints Requesting selected browser or platform information when there is a legitimate need Availability varies, and some values require an explicit request.
Feature detection Deciding whether a specific capability can be used Tests the needed behavior directly instead of identifying the browser.

Or skip the browser setup

If your practical goal is to capture a page rather than inspect its identity string, ScreenshotNeo provides a website screenshot API and MCP server. A single GET request can return an image or PDF; its custom user-agent option can set the request’s user-agent value. See the ScreenshotNeo site and API documentation for setup and parameters.

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

ScreenshotNeo accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each of those steps can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and the response includes X-Page-Verdict and X-Billed headers. Its MCP server offers take_screenshot, get_page_info, and capture_pdf for AI agents and MCP clients. The free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 screenshots.

Sign up for ScreenshotNeo’s free plan to get 1,000 screenshots a month without a card.

Quick Recap

SaleBestseller No. 1
SaleBestseller No. 3
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Plastic parts in K120 include 51% certified post-consumer recycled plastic*; Product carbon footprint: 4.02 kg CO2e
$12.39
SaleBestseller No. 5
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Logitech K270 Full Size Wireless Keyboard for Windows - Black
Plastic parts in K270 include 38% certified post-consumer recycled plastic; Eight hot keys: For instant access to the Internet, e-mail, music volume and more
$21.48

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.