User agent parser

The user agent parser reads a User-Agent string and identifies the browser, the operating system, the device type, and the bot that sent the request. It also parses many lines from a website access log, with counts by browser and by bot.

Parsing runs in your browser. Please enable JavaScript.

Everything runs in your browser; nothing is sent or stored.

  • The "User-Agent string" field is filled in with your browser's string, and its analysis appears in the "Result" section.
  • Paste a different string or several strings, one per line, and the analysis updates as you type.
  • You can paste lines from your site's access log as they are, and the tool finds the User-Agent in each line.
  • When you parse several lines, the tool shows a table with one row per string, and counts of the browsers, operating systems, and bots.
  • Click "My browser's User-Agent" to put your browser's string back in the field.
  • In Chromium-based browsers, the tool also shows the basic data the browser reports through Client Hints, separately from the User-Agent. The tool does not read more detailed data.
  • A User-Agent is text the browser or program sends about itself, and it can be spoofed. Newer browsers shorten it: Windows 11 shows as Windows 10, and the macOS and Android versions are not always accurate. Bots are detected only by their name in the string.

What a User-Agent string contains

Every browser, bot, or program that sends a request to a website includes the User-Agent header, with text that describes the software that sent the request. A browser's string almost always starts with Mozilla/5.0 for historical reasons, and includes the operating system and the device type in parentheses, followed by the rendering engine and the browser name. Because of how the string is built, the strings of Chrome, Edge, and other Chromium-based browsers also include the name Safari, so the parser identifies the browser by the token unique to each browser, such as Edg/ in the Edge string.

Bot and crawler detection

The tool detects bots by their name in the string and assigns each bot to a group: search engines such as Googlebot and bingbot, AI crawlers such as GPTBot and ClaudeBot, SEO tools, services that create link previews on social networks and in messaging apps, monitoring services, automated browsers, and HTTP tools and libraries. A string that includes a word such as crawler or spider, or the address of an information page about the bot, is marked as an unknown bot. When you parse several lines, bots are counted separately, and the browser and operating system counts include only the lines in which no bot was detected.

Website access log analysis

In an access log in the widely used Combined Log Format, the User-Agent is the last quoted field in each line, and the tool extracts it before parsing. The table shows the browser, the operating system, the device, and the bot for each line, and hovering over a row in the table shows the full string. The counts show the most common values, so you can quickly spot a crawler that visits your site frequently and decide whether to block it in your robots.txt file.

User-Agent strings and Client Hints

Chromium-based browsers shorten the User-Agent string and send more precise details, such as the operating system version and the device model, in separate headers called Client Hints. The tool shows the basic data your browser reports: the brands and versions, whether the device is mobile, and the operating system. The browser sends the detailed data only to a site that requests it, for example with the Accept-CH header.

User-Agent strings and how they are identified

  • Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)a search engine bot: Googlebot.
  • Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.2; +https://openai.com/gptbot)an AI crawler: GPTBot.
  • facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)a preview of a link posted on Facebook.
  • curl/8.5.0an HTTP tool: curl.
  • Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0the browser is Edge, even though the string also includes Chrome and Safari, and the operating system is Windows.
  • Mozilla/5.0 (compatible; MyCrawler/1.0; +https://example.com/bot)an unknown bot: the string includes the address of an information page, but the tool does not recognize the bot name.

User agent parser FAQ

Can I rely on the User-Agent to identify a bot?

No. The User-Agent is not enough to identify a bot with certainty, because the program that sends the request sets it itself, and any program can present itself as a regular browser or as a well-known bot. To confirm that a request came from a search engine, run a reverse DNS lookup on its IP address, and make sure that the resulting hostname belongs to the search engine and points back to the same address.

What is the difference between an AI crawler and a search engine?

Search engine crawlers, such as Googlebot, scan pages to show them in search results. AI crawlers, such as GPTBot and ClaudeBot, collect content to train language models or to retrieve information for chatbot answers. In the "robots.txt generator" tool, you can block AI crawlers with one click, without blocking search engines.

Does the parser detect an automated browser?

The parser detects an automated browser when the string includes its token, such as HeadlessChrome. A testing or scraping tool that replaces the string with the string of a regular browser is not detected as a bot.

Why is the device shown as a computer?

When the string states an operating system but no device type, such as a mobile phone or a tablet, the device is shown as a computer. The device model is shown only when it appears in the string. In Chrome on Android devices, the model in the string is replaced with the letter K, so the tool shows the letter K instead of the real model.

How many User-Agent strings can I parse at once?

You can parse up to 1,000 non-empty lines at once, with a total size of up to 512 KB, and a line longer than 8,192 characters is cut before parsing. The count lists show the 10 most common values, and the remaining values are counted together in the "Others" line.

Shopping cart

Your cart is emptyYou can start with one of our popular plans.

Site search

Accessibility

Text size
100%
Accessibility statement