User-agent generator
Builds user-agent strings for current Chrome, Firefox, Safari and Edge on each platform, with the sec-ch-ua headers that have to agree with them.
What to generate
Most real traffic is on the current version within two weeks of its release.
User agents
Pick at least one browser and one operating system.
When to use it
Your scraper has to say which browser it is, and that claim has to look current and real. Pick a browser and a platform. You get the user-agent string, plus the client hint headers that must match it.
A user agent has to agree with everything else
The user agent is one header among many, and anti-bot systems check it against the rest. A Chrome user agent must arrive with Chrome's sec-ch-ua headers, and those must name the same version and platform. It must come over a TLS handshake that looks like Chrome's, with headers in Chrome's order. Changing the string alone, on a Python or Go HTTP client, is the most common reason a request is blocked on its first try.
What the strings look like now
- Chrome and Edge freeze most of the string. Only the major version changes. The rest reads
0.0.0, Windows is alwaysWindows NT 10.0, macOS is always10_15_7and Android is alwaysAndroid 10; K. The real details moved to client hints. - Firefox repeats its version in
rv:and at the end, and sends no client hints. - Safari keeps
Safari/605.1.15and puts its version inVersion/.
About the versions
The default version numbers are a snapshot written into this page, and browsers ship a new major version about every four weeks. Check them against a browser you've just updated, and edit the number if it has moved on.
Switching between user agents doesn't help by itself. One consistent, current browser identity per session is what real traffic looks like.
Questions people ask
Which user agent should I use for scraping?
A current version of a common browser on a common platform, such as the latest Chrome on Windows. Old versions and rare combinations are easy to single out. What matters more is that everything else you send agrees with it.
What are sec-ch-ua headers?
They are client hints: Chromium browsers send the brand, version and platform as separate headers alongside the user agent. If your user agent says Chrome 140 and sec-ch-ua says something else, or is missing, that mismatch is a giveaway.
Is changing the user agent enough to avoid being blocked?
Rarely. Anti-bot systems also look at your TLS handshake, HTTP/2 settings, header order and what JavaScript reports. A browser user agent on a Python TLS fingerprint is one of the easiest blocks there is.
Should I rotate user agents on every request?
Not within a session. A real visitor keeps the same browser from page to page, so keep the user agent fixed for as long as you keep the cookies, and change both together.
Related tools
All tools →Get started
Blocked by bot protection? $5 is 5,000 solves.
No subscriptionCredit never expiresFailed solves are free