User Agent Parser

Break a user agent string into browser, engine, OS and device.

User Agent Parser tool

Your own browser's string is loaded for you. Replace it with any other to parse that instead.

—
Browser
—
Engine
—
Operating system
—
Device type

Breakdown

Client hints from your browser

About the User Agent Parser

Every browser sends a long, historically tangled user agent string with each request, mentioning Mozilla, Safari and Gecko even when it is none of those. This user agent parser reads the string and tells you what it really describes: the browser and version, the rendering engine, the operating system and whether the device is a desktop, phone, tablet or bot. It is useful for reading server logs, debugging browser-specific bugs and checking what a crawler claims to be. Your own browser's string is loaded automatically, and you can paste any other from a log file. Remember that user agents are easy to fake, so do not rely on them for security decisions. For decoding other technical strings, see the URL Parser and the JWT Decoder.

These strings are notorious for saying more than they mean. For compatibility reasons going back to the 1990s, almost every browser still announces itself as Mozilla, Chrome mentions Safari, and Edge mentions Chrome and Safari as well. The parser peels those layers off in the correct order, so a Chrome string is reported as Chrome and not as one of the other names it quotes.

At the top of the page you see the string your own browser sends, along with the newer client hints it exposes when it supports them. Client hints report details such as the platform and brand as separate, structured values instead of one long sentence, which is why they are replacing user agent sniffing.

How to use the User Agent Parser

  1. Check your own browserIts string is read and explained as soon as the page opens.
  2. Paste a different stringTake one from a server log, an analytics export or a bug report.
  3. Read the resultsSee the browser, engine, operating system, device type and whether it is a bot.
  4. Copy any detailEach field has its own copy button.

User Agent Parser features

  • Browser name with its version number
  • Rendering engine with its version
  • Operating system and its version
  • Device class, from desktop to phone, tablet or bot
  • Your current browser's string analysed automatically
  • Client hints listed when your browser offers them
  • Recognition of the common crawlers and bots

Common uses

  • Tracking down a bug that only one browser shows
  • Decoding the user agent column in server logs
  • Seeing exactly what your own browser announces
  • Working out which search engine bot visited a page
  • Understanding how analytics tools group devices

User agent strings in practice: reading a mobile string, verifying search bots, in-app browsers, support tickets and caching

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Every browser request carries a user agent string describing the software that sent it. Reading these strings helps with analytics, debugging and spotting bots, but they are full of historical baggage and easy to fake. This guide reads a typical mobile string piece by piece, then covers verifying search engine crawlers, recognising in-app browsers, using user agents in support tickets and the caching cost of serving different pages to different browsers.

A worked example: a mobile Chrome string

A typical Chrome string from an Android phone looks like this:

  • Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Mobile Safari/537.36

The part in the first brackets describes the platform. Chrome/130 identifies the browser and its major version, and the word Mobile marks a phone rather than a tablet. The Android version shown as 10 and the device model shown as K are fixed placeholders, because modern Chrome reduces the detail it shares to protect privacy. Real model and version details are available only through client hints, and only when a site requests them.

Knowing your audience

Server logs and analytics use user agents to show which browsers and devices visitors use. For most sites in Pakistan, the majority of visits come from Android phones running Chrome, so testing on a mid-range Android phone over a mobile connection matters far more than testing on the latest desktop browser. Checking the actual breakdown for your own site guides where testing time is best spent.

Verifying search engine bots

Anyone can send a user agent claiming to be Googlebot, and scrapers often do to avoid being blocked. Google recommends verifying a crawler by looking up the visiting IP address with a reverse DNS lookup, checking the name ends in googlebot.com or google.com, and then confirming with a forward lookup that the name points back to the same address. Blocking or allowing bots by user agent alone is unreliable in both directions.

In-app browsers

Links opened inside Facebook, Instagram and similar apps load in a built-in browser whose user agent includes extra tokens, such as FBAN or Instagram. These browsers sometimes handle logins, downloads and payment pages differently from the phone's main browser. Detecting them lets a site show a gentle suggestion to open the page in the regular browser when a feature is known not to work.

Support tickets

When a user reports that a page looks broken, asking them to copy their user agent from this tool gives the developer the browser, version and operating system in one message. That is much more reliable than asking a non-technical user which browser they use. Combined with a screenshot, it is often enough to reproduce the problem on the first attempt.

Serving different pages and caching

Some sites send different HTML to phones and computers based on the user agent. This forces the server to send a Vary: User-Agent header, and caches such as Varnish or a CDN must then store separate copies for countless different strings, which ruins cache efficiency. Responsive design, with one page that adapts using CSS, avoids the problem and is the approach search engines recommend.

Privacy and fingerprinting

User agent strings, combined with screen size, language and other details, help trackers identify individual browsers without cookies. That is one reason browsers now share less detail. Sites that store user agents in logs should keep them only as long as needed and treat them as personal data where privacy laws require.

Common mistakes

  • Trusting a user agent that claims to be a search engine without verification.
  • Expecting device model and full version details from modern Chrome strings.
  • Serving different HTML by user agent without considering caching.
  • Keeping full logs indefinitely.

Related tools

To understand the responses your server sends, see HTTP Status Codes. To add protective headers, use Security Headers Generator, and to control which bots may crawl, Robots.txt Generator.

Bots that look like browsers

Plenty of automated traffic uses ordinary browser user agents. Such bots are better identified by behaviour: very high request rates, requests for unusual paths, no loading of images or scripts, or many requests from one address in a short time. Rate limiting and analytics filters based on behaviour catch far more of them than a list of user agent strings.

Data-saving browsers

Some visitors use browsers designed to save data, such as Opera Mini, which has been popular in markets with expensive mobile data. In its extreme data-saving mode, pages are processed on the browser maker's servers and complex scripts may not work. Its user agent identifies it, so a site can check how many visitors use it and keep important pages usable without heavy scripts.

Identify your own scripts

Scripts and apps that call other websites or APIs should send a descriptive user agent containing the app's name, version and a contact address or URL. Some services, including the Wikipedia API, ask for this in their usage policies. A clear user agent lets a site owner contact you about a problem instead of simply blocking your traffic.

Privacy

Your user agent is read and parsed in your browser. It is not sent to a server or stored by this page.

Frequently asked questions

Why do all browsers mention Mozilla?

In the early web, servers looked for Mozilla before serving their richer pages, and each new browser copied the word to avoid being sent the plain version. The word has meant nothing for decades but stays, because removing it would break old websites.

Can I trust what a user agent says?

No. Any client can set it to whatever it likes, and many tools, privacy extensions and bots do exactly that. Use it as a rough hint for statistics, never as a security check or a way to control access.

Is the user agent a good way to detect browsers?

Only when nothing else works. Feature detection, which tests whether the ability you need is really present, is more dependable and keeps working when new browsers arrive. Sniffing strings is how sites break in browsers released after they were built.

What exactly are client hints?

They are HTTP headers and JavaScript values that report the browser brand, platform and device features as separate fields instead of one long sentence. They are the planned successor to reading the user agent and appear here when your browser supplies them.

Why does my browser report a rounded version number?

Browsers now deliberately reduce the detail in the user agent to protect privacy, often showing only the major version and a generic platform. Client hints are the official way for a site to request more detail.

Is my user agent stored or sent anywhere?

No. The analysis runs in your browser and nothing is recorded, so neither your own string nor any string you paste from a log is kept by this site.