Xerobit

User-Agent Generator for Browser Testing

Use this user-agent generator to create realistic UA strings for Chrome, Firefox, Safari and Edge across Windows, macOS, Linux, Android and iOS. Pick a specific browser and platform or use the random user agent generator mode to produce bulk strings instantly. Everything runs in your browser with no data uploaded.

Generated User Agents

Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0
  • Count
    1
  • Browser filter
    Any
  • Platform filter
    Any
  1. Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0

How to use the user agent generator

  1. Select a browser (Chrome, Firefox, Safari, Edge) or leave it as Random.
  2. Choose a platform such as Windows, macOS, Linux, Android or iOS.
  3. Pick a version era: newest included, earlier or older.
  4. Set the number of strings and click Generate.

How user-agent strings are structured

A user-agent string follows a predictable pattern defined by the HTTP specification. The general form is Mozilla/5.0 (platform) engine/version browser/version. For example, a Chrome 124 UA on Windows 10 reads:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36

The first token, Mozilla/5.0, is a historical artifact kept for compatibility. The parenthesized section describes the operating system and architecture. AppleWebKit/537.36 identifies the rendering engine, and the final tokens name the browser and its version. This user-agent generator builds each segment from known real-world values so the result passes basic server-side validation.

Common user-agent formats reference

The table below shows the patterns produced by this tool for each browser and platform combination. Version numbers come from the era you select.

BrowserPlatformPattern
ChromeWindowsMozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/VER.0.0.0 Safari/537.36
ChromeAndroidMozilla/5.0 (Linux; Android 10; K) ... Chrome/VER.0.0.0 Mobile Safari/537.36
FirefoxmacOSMozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:VER.0) Gecko/20100101 Firefox/VER.0
FirefoxAndroidMozilla/5.0 (Android 14; Mobile; rv:VER.0) Gecko/VER.0 Firefox/VER.0
SafariiOSMozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) ... Version/18.5 Mobile/15E148 Safari/604.1
EdgeWindowsMozilla/5.0 (Windows NT 10.0; Win64; x64) ... Chrome/VER.0.0.0 Safari/537.36 Edg/VER.0.0.0
EdgeAndroidMozilla/5.0 (Linux; Android 10; K) ... Chrome/VER.0.0.0 Mobile Safari/537.36 EdgA/VER.0.0.0

When you pair this tool with a user agent parser, you can check that generated strings decode back into the expected components.

Why Chrome and Edge strings end in .0.0.0

Chromium browsers freeze parts of the User-Agent string to reduce fingerprinting. The minor version became 0.0.0 from Chrome 101, desktop platform tokens were frozen from Chrome 107, and Android phones report the fixed token Android 10; K from Chrome 110. So current Chrome strings always look like Chrome/143.0.0.0 and a macOS Chrome always reports Intel Mac OS X 10_15_7, even on Apple Silicon. Edge follows the same layout and adds an Edg/ token on desktop or EdgA/ on Android.

Firefox and Safari freeze their platform tokens too, in their own way: Firefox reports Intel Mac OS X 10.15 on every Mac, and Safari reports 10_15_7. Because these formats are frozen, this tool does not offer full-version Chrome strings with real build numbers. Browsers with real hardware models in the string no longer exist in current versions.

Practical uses for generated UA strings

Developers rely on a random user agent generator for several tasks:

  • Web scraping and crawling: rotating through realistic UA strings helps avoid simple bot-detection rules that block default library headers.
  • QA testing: verifying that responsive layouts, feature flags and analytics scripts behave correctly when different browsers report themselves.
  • Server log analysis: generating sample data to test log parsers or dashboards without waiting for real traffic.
  • Security research: checking whether access controls rely solely on the UA header, which is trivially spoofed.

For bulk operations, set the count field up to 50. Each string is independently randomized, giving you a diverse batch suitable for load testing or dataset creation. You can also combine generated UAs with tools like the random data generator to build complete mock request payloads.

Common mistakes when crafting UA strings manually

Hand-writing user-agent strings often introduces subtle errors. A missing space after the semicolon in the platform token, an incorrect AppleWebKit version number, or a mismatched Firefox rv: value will cause strict parsers to reject the string. Another frequent mistake is combining tokens from different browsers, such as a Firefox version after a Chrome-style Android token.

This user-agent generator builds each string from the frozen templates above. It respects constraints like Safari only running on macOS and iOS, and Edge using the Chromium engine. The version lists end at Chrome 143, Firefox 144 and Safari 18.6, so strings from this tool are not the very latest browser releases; change the version number by hand if a site rejects older browsers. If you need to validate a string you obtained elsewhere, paste it into the user agent parser to check its structure.

Worked examples

ExampleInputResult
Single Chrome on WindowsBrowser: chrome; Platform: windows; Version: latest; Number of strings: 1Count: 1; Browser filter: Chrome; Platform filter: Windows
Five random UAsBrowser: random; Platform: random; Version: latest; Number of strings: 5Count: 5; Browser filter: Any; Platform filter: Any
Reduced Chrome on macOSBrowser: chrome; Platform: macos; Version: latest; Number of strings: 1Count: 1; Browser filter: Chrome; Platform filter: macOS
Firefox on AndroidBrowser: firefox; Platform: android; Version: recent; Number of strings: 1Count: 1; Browser filter: Firefox; Platform filter: Android

FAQ

What is a user-agent generator?

A user-agent generator creates HTTP User-Agent header strings that mimic real browsers. Developers use them for testing, web scraping and QA to simulate different browser and operating system combinations.

How does the random user agent generator work?

It selects a random browser, platform and version from the pools of frozen templates, then fills in the version numbers using cryptographic randomness. Each string follows the format that browser sends.

Why do Chrome strings always end in .0.0.0?

Chrome and other Chromium browsers freeze the minor version to 0.0.0 as part of the User-Agent reduction project, so only the major version changes. Edge uses the same pattern.

Can I generate multiple UA strings at once?

Yes. Set the count field to any number between 1 and 50. The tool generates that many independent strings in a single batch.

Are these strings safe to use for scraping?

The strings are syntactically valid and follow real browser formats, but a UA string is easy to fake and sites also check other signals. Responsible scraping depends on respecting robots.txt, terms of use and rate limits, not just the UA header.

Does this tool send my data anywhere?

No. The user-agent generator runs entirely in your browser. No requests are made to any server and nothing is uploaded.