Log in Sign up
User-Agent generator

User-Agent list generator for scraping and rotation

Tick browsers and systems, choose how many versions back to go, and get up to 500 random User-Agent strings. Copy them as plain lines, JSON or a Python list you can paste into a scraper.

Browsers
Systems

A carousel of browser windows for User-Agent rotation

User-Agent reduction and frozen OS versions

Since Chrome 113, Chrome and Edge send a reduced User-Agent. The version ends in zeros, like 140.0.0.0, and on Android Chrome reports Android 10 and the model K in place of the real phone. Windows 11 reports itself as Windows NT 10.0 in all of these browsers. The generator follows the same rules, so its strings look like the ones in a site's access log.

Apple froze its OS tokens as well. Safari on a Mac reports Intel Mac OS X 10_15_7, Apple Silicon included, and Safari 26 on iPhone reports iPhone OS 18_6. The real Safari number sits in the Version token. Firefox freezes macOS at 10.15 and puts its own version in rv: and Firefox/.

Chrome, Edge and Firefox ship a new major version every four weeks, and Safari gets one major release a year with point releases between. The page counts forward from known releases to today's date and prints the result under the Format menu. Set Versions to last three or last six, and the pool also takes the two or five releases before the current one; for Safari each step back is one point release, such as 26.3 to 26.2.

Uses for a random User-Agent list

  • User-Agent rotation in a scraper, with one string per session or proxy IP.
  • Filling the User-Agent field in browser profiles for different systems.
  • Testing how a site answers iPhone, Android and desktop browsers.
  • Replacing stale strings like Chrome 90 in old scripts.

Latest Chrome, Firefox, Safari and Edge user agents

The line under the Format menu shows the current numbers; put them in place of N. Chrome on Windows sends Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/N.0.0.0 Safari/537.36. Edge sends the same string with Edg/N.0.0.0 at the end, or EdgA/N.0.0.0 on Android. The Android Chrome user agent replaces the system part with (Linux; Android 10; K) and adds Mobile before Safari/537.36. Firefox on Windows sends Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:N.0) Gecko/20100101 Firefox/N.0. The iPhone user agent from Safari reads Mozilla/5.0 (iPhone; CPU iPhone OS 18_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/N Mobile/15E148 Safari/604.1, with the Safari version in major.minor form as N.

Using the User-Agent list in Python and Node

Python requests sends python-requests/2.x by default, and antibot rules block that string first. Pass a string from the list: requests.get(url, headers={'User-Agent': ua}). For rotation, pick the Python list format and press Download. You get user-agents.py with a USER_AGENTS list. Rename it to user_agents.py so Python can import it, then set session.headers['User-Agent'] = random.choice(USER_AGENTS) when you open a requests.Session and keep that string for the whole session. In Node 18 and later, fetch(url, { headers: { 'User-Agent': ua } }) does the same, and axios takes the same headers object. With curl, put the string after -A. To turn a curl command copied from DevTools into Python or Node code, use the cURL converter.

Browsers and systems the generator covers

The generator builds Chrome and Firefox strings for Windows, macOS, Linux and Android. Edge covers Windows, macOS and Android, and the generator skips Edge on Linux. Safari covers macOS and iPhone. That makes 13 browser and system pairs, and with Versions set to last six the pool holds at most 78 unique strings. You can ask for up to 500 per run. Up to the pool size every string in the list is unique; past it the generator repeats strings. It has no iPad, no Chrome for iOS and no search engine bots, so pick another source for those.

Questions about the User-Agent generator

01Is changing the User-Agent enough, or do Client Hints give me away?

The string alone will not hide a script. Chrome and Edge add sec-ch-ua, sec-ch-ua-mobile and sec-ch-ua-platform headers to HTTPS requests, and antibot systems compare them with the User-Agent. A Chrome string that arrives with no sec-ch-ua headers, or with sec-ch-ua-platform "macOS" next to Windows NT 10.0, stands out. Firefox and Safari send no Client Hints, so their strings are easier to match from a plain HTTP client. The generator outputs the User-Agent string and no other headers. The My IP page lists the headers your own browser sends, sec-ch-ua included.

02Where do the versions come from?

Chrome and Firefox ship every four weeks, Safari once a year with point releases in between. The generator works out the current version from that schedule for today. Holiday breaks in Chrome's calendar and five-week Firefox cycles can put it one version off for a few weeks.

03Do the strings go to your server?

Your browser builds the list with the script on this page. Nothing you pick or generate reaches our server, and your browser writes the download file itself.

04How many User-Agent strings does a scraper need?

Match the count to your sessions or proxy IPs, one string each, drawn from one or two common browsers. Hundreds of random strings hurt, because rare versions and odd systems stand out among ordinary visitors. The generator holds 78 unique strings at most, and larger lists repeat them.

05Should I rotate the User-Agent on every request?

Keep one string per session or per IP. A real browser keeps its version from page to page, and an antibot that sees a new string on the same IP and cookies flags the visitor as a script.

06What is the latest Chrome, Firefox and Safari user agent string?

Set Versions to current only, tick one browser and one system, set How many strings to 1 and press Generate. The line under the Format menu shows the numbers in use: Chrome and Edge share one version, Firefox has its own, and Safari shows major.minor.

07How do I set a custom User-Agent in Selenium or Puppeteer?

In Selenium with Chrome, call options.add_argument('--user-agent=' + ua) before you start the driver. In Puppeteer, call await page.setUserAgent(ua) before page.goto(). Take a string from the browser you automate: a Firefox string on a Chrome driver contradicts the rest of what the browser reports. Chrome keeps its real version in sec-ch-ua, so match the major version too.

Pricing Grab a free hour