Random User-Agent Generator
Realistic UA strings across browsers, OSes and device classes
Filters
20 UAs · anyUser agents
No UAs generatedSet filters and generate UAs
Each string is checked against its family's token grammar.
Examples
Desktop test matrix
50 UAs · desktop · any browserChrome, Firefox, Safari and Edge strings across Windows, macOS and LinuxA broad parser-coverage batch with current token shapes.
iOS forms
OS: iOS · 30 UAsiPhone Safari, CriOS, FxiOS and iPad Safari stringsiOS browsers are all real, high-traffic UA families with distinct tokens.
Chrome-only
Browser: Chrome · 20 UAs · only current majorsTwenty Chrome strings with the current major onlyA narrow matrix for testing Chrome-specific sniffing code.
About this tool
The Random User-Agent Generator composes User-Agent strings from a pinned matrix of browser families, operating systems and device classes. Every family uses its real token grammar: Blink browsers carry AppleWebKit/537.36 and a Chrome token, Firefox carries rv: inside the platform parentheses, Safari carries Version/ without a Chrome token, and Edge adds Edg/ or EdgA/ after the Chromium tail.
The matrix reflects current UA reduction: desktop Chrome and Edge freeze their version to {major}.0.0.0, Android uses the frozen 'Android 10; K' platform token, and iOS browsers use CriOS/, FxiOS/ or Edg/ inside an iPhone/iPad Safari-shaped string. A legacy toggle emits older build-and-patch forms when a test needs them, with an explicit note that they are no longer what current browsers send.
Filters cover browser, OS, device class, version jitter and only-current mode. Incompatible combinations — Safari on Windows or Linux, desktop on iOS, tablet on Windows — produce a plain-language conflict message instead of an impossible or malformed string. Every generated string is checked against its family's token grammar before it reaches the list.
Use these strings for compatibility testing and parser coverage, and respect target sites' terms of service. The matrix is bundled and dated, not fetched live; the as-of date is visible in the interface and in exports so fixtures remain traceable.
What this tool does not do
- The version matrix is bundled and dated (2026-01), not fetched live; refresh it periodically.
- No market-share weighting: combinations are sampled uniformly within the allowed set.
- Sec-CH-UA client hint headers are not generated, only classic UA strings.
- Forbidden browser headers cannot be overridden by page JavaScript; header snippets are meaningful only in server contexts.
How to use this tool
Set filters
Choose browser, OS and device class, then count, version jitter and uniqueness.
Choose reduction mode
Keep the current reduced form for realistic fixtures, or switch to legacy build tokens when testing older parsers.
Generate
Press Generate UAs (or Mod+Enter). Family badges and platform labels appear with each string.
Export
Copy as one per line, CSV with family, or JSON; the as-of date is shown above the list.
Use cases
UA sniffing tests
Exercise browser-detection code paths with structurally valid strings from every major family.
Parser coverage
Feed a batch to your analytics parser and check family/OS detection without hand-collecting stale UA lists.
Bug reports
Seed a batch and attach it to a ticket so maintainers can reproduce the exact header set.
Family token shapes
| Family | Shape |
|---|---|
| Chrome desktop | Mozilla/5.0 (platform) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/{v}.0.0.0 Safari/537.36 |
| Edge desktop | Chrome shape + Edg/{v}.0.0.0 |
| Firefox desktop | Mozilla/5.0 (platform; rv:{v}.0) Gecko/20100101 Firefox/{v}.0 |
| Safari desktop | Mozilla/5.0 (Macintosh; …) AppleWebKit/605.1.15 … Version/{v}.0 Safari/605.1.15 |
| iOS browsers | iPhone/iPad OS token + CriOS/ | FxiOS/ | Edg/ | Version/, Mobile/15E148 Safari/604.1 |
| Android Chrome | Linux; Android 10; K … Chrome/{v}.0.0.0 Mobile Safari/537.36 |
The version matrix is pinned as of 2026-01; legacy mode intentionally emits pre-reduction shapes.
Common mistakes
Mistake:Treating reduced UA versions as the browser's real version.
Fix:Chromium reduction freezes the Chrome token at {major}.0.0.0 and Android at 'Android 10; K'; client hints are the reliable source of detail.
Mistake:Assuming iOS only has Safari.
Fix:Chrome, Firefox and Edge on iOS use CriOS/, FxiOS/ and Edg/ tokens over WebKit. The matrix emits all of them.
Mistake:Using generated UAs to evade site controls.
Fix:This tool is for compatibility testing. Rotating headers against sites may violate their terms; respect each target's policies.
Frequently asked questions
What makes a UA string realistic?
Token order, platform shape and version form must match what the family actually sends. This tool composes strings from a pinned matrix: Blink browsers put AppleWebKit/537.36 and Chrome/ before Safari/537.36; Firefox puts rv: inside the platform parentheses and emits Firefox/{major}.0; Safari carries Version/ with no Chrome token; Edge appends Edg/ or EdgA/. Each result is validated against its family's grammar.
Do browsers still freeze UA versions?
Yes — Chromium UA reduction freezes desktop Chrome and Edge at {major}.0.0.0 and reduces Android to 'Android 10; K' with no device model. That is the current real shape, so the generator emits it by default. The legacy toggle produces the older build-and-patch form for teams testing parsers that still see it; detailed version information now lives in Sec-CH-UA client hints, which this tool does not generate.
How do I rotate user agents responsibly?
Use them for compatibility testing against systems you own or are authorized to test, and respect each target's terms of service and robots policies. The generator makes no network requests; it only writes strings. A seed plus fixed filters lets you attach the exact batch to a bug report instead of rotating blindly.
Does UA sniffing still matter?
Less than it did, but parsers, analytics pipelines, anti-bot systems and legacy code still branch on UA strings. Testing those branches needs structurally valid input from all major families, including iOS Chrome and Firefox (CriOS/ and FxiOS/) and Android Edge (EdgA/), which the matrix includes.
What happens if my filters do not overlap?
The generator reports the conflict in plain language. Safari is Apple-only, so Safari + Windows or Linux is impossible; desktop class does not apply to iOS or Android; tablet class applies only to iOS/Android. Rather than emitting a malformed string, the tool asks you to widen one filter.
Can I reproduce a batch exactly?
Yes. Enter a seed and leave all filters the same — the same seed produces the same ordered batch, which is handy for filing parser bugs. Seeded output is intentionally deterministic; for rotation or adversarial testing leave the seed empty so each batch is crypto-random.
References & standards
Related tools
ABA Routing Number Generator
Generate 9-digit US ABA routing numbers with weighted Mod-10 checks.
Address Generator
Generate realistic addresses in the correct format for 21 countries — single-line, multi-line, JSON or HTML — plus a postcode validator. Test data only, runs in your browser.
API Key Generator
Generate realistic test API keys — custom prefixes, lengths, alphabets, optional checksum, bulk .env/CSV export. Locally in your browser.
Argentina CUIT / CUIL Generator
Generate and validate 11-digit Argentine CUIT and CUIL numbers with AFIP Mod-11 check digits.
ASCII Text Art Generator
Turn text into large ASCII art banners with multiple figlet fonts
Australia ABN Generator
Generate and validate 11-digit Australian Business Numbers (ABN) using weighted Mod-89.