Use Random User Agent Generator

Enter your data below to use the Random User Agent Generator

📌 Try these examples:
RESULT

Last updated

Random User Agent Generator Examples

The Random User Agent Generator creates realistic browser user agent strings for testing web applications, HTTP clients, and scraping tools. Below are examples covering major browsers and platforms.

Chrome on Windows

Generate a Chrome user agent for Windows:

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

Chrome user agents include the Mozilla/5.0 compatibility token, platform info, WebKit version, and the actual Chrome version.

Chrome on macOS

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Firefox on Windows

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0

Firefox user agents include the Gecko rendering engine version and the Firefox version number.

Firefox on Linux

Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0

Safari on macOS

Mozilla/5.0 (Macintosh; Intel Mac OS X 14_2_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Safari/605.1.15

Safari user agents include the WebKit version and the Safari version. The WebKit version differs from Chrome's even though both use WebKit.

Safari on iPhone (iOS)

Mozilla/5.0 (iPhone; CPU iPhone OS 17_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Mobile/15E148 Safari/604.1

Mobile Safari includes the device type (iPhone), iOS version, and the Mobile token that distinguishes it from desktop Safari.

Chrome on Android

Mozilla/5.0 (Linux; Android 14; Pixel 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.144 Mobile Safari/537.36

Android Chrome includes the Android version and device model. The Mobile token identifies it as a mobile browser.

Microsoft Edge on Windows

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

Edge (Chromium-based) is nearly identical to Chrome's user agent but adds the Edg/ token at the end.

Opera on Windows

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

Version-Specific Generation

Reproduce a bug reported in Chrome 118 on Windows:

Browser: Chrome
Version: 118
Platform: Windows 10

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

Version-specific generation lets you reproduce issues reported by users on specific browser versions without needing that browser installed.

Bulk Generation for Testing

Generate a diverse set of user agents for comprehensive browser testing:

1. Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ... Chrome/120.0.0.0 Safari/537.36
2. Mozilla/5.0 (Macintosh; Intel Mac OS X 14_2_1) AppleWebKit/605.1.15 ... Version/17.2 Safari/605.1.15
3. Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
4. Mozilla/5.0 (iPhone; CPU iPhone OS 17_2 like Mac OS X) ... Mobile/15E148 Safari/604.1
5. Mozilla/5.0 (Linux; Android 14; Pixel 8) ... Chrome/120.0.6099.144 Mobile Safari/537.36
6. Mozilla/5.0 (Windows NT 10.0; Win64; x64) ... Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0

Mobile vs Desktop Detection Testing

Test server-side mobile detection with these contrasting user agents:

Desktop (should serve full site):
  Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ... Chrome/120.0.0.0 Safari/537.36

Mobile (should serve mobile site):
  Mozilla/5.0 (iPhone; CPU iPhone OS 17_2 like Mac OS X) ... Mobile/15E148 Safari/604.1

HTTP Client Configuration

Use a generated user agent in a curl request:

curl -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" https://example.com

Python Requests Configuration

Set a realistic user agent in a Python HTTP client:

import requests

headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
}
response = requests.get("https://example.com", headers=headers)

Rotating User Agents for Scraping

Use a list of generated user agents to rotate on each request:

user_agents = [
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64) ... Chrome/120.0.0.0 Safari/537.36",
    "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_2_1) ... Version/17.2 Safari/605.1.15",
    "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0"
]

Rotating realistic user agents helps avoid bot detection systems that block requests from known bot user agents or non-browser patterns.

Frequently Asked Questions

Simply enter your data, click the process button, and get instant results. All processing happens in your browser for maximum privacy and security.

Yes! Random User Agent Generator is completely free to use with no registration required. All processing is done client-side in your browser.

Absolutely! All processing happens locally in your browser. Your data never leaves your device, ensuring complete privacy and security.