Works on this device
User Agent Generator
Choose a browser and a system and type the version to get a user agent string in the published format. The strings are for testing your own sites and software. They are made on your device.
Choose the parts
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your string will show here
Type a version and choose Generate, or choose Try an example.
Your user agent string
How it was worked out
How to use the user agent generator
- Choose the Browser and the System.
- Type the Browser version, such as 120. This page has no list of current versions, because they change every few weeks. Look up the number you need on the release page of the browser, or choose Try an example to see how the tool works.
- For Opera and Samsung Internet, also type the Chrome version they are built on. For iPhone, iPad and Firefox on Android, type the system version.
- Choose Generate. The string shows with its length and with the way the User Agent Parser reads it back.
- For many strings, choose Random strings from my own list in the menu. Add one row for each browser and system, type the versions you allow, and choose how many strings you want.
- Choose Copy text or Download as text file to keep the strings.
The formats
Each browser maker publishes the form of its string. The tool fills your version numbers into that form. The other parts are fixed text.
| Browser and system | Format |
|---|---|
| Chrome on Windows, short form | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/V.0.0.0 Safari/537.36 |
| Chrome on Android, short form | Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/V.0.0.0 Mobile Safari/537.36 |
| Edge | The Chrome string with Edg/V.0.0.0 at the end (EdgA/ on Android) |
| Opera | The Chrome string with OPR/V.0.0.0 at the end |
| Samsung Internet | The Chrome string for Android with SamsungBrowser/V.0 before Chrome/ |
| Firefox on Windows | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:V.0) Gecko/20100101 Firefox/V.0 |
| Firefox on Android | Mozilla/5.0 (Android 14; Mobile; rv:V.0) Gecko/V.0 Firefox/V.0, with your Android version |
| Safari on a Mac | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/V Safari/605.1.15 |
| Safari on iPhone | Mozilla/5.0 (iPhone; CPU iPhone OS 17_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/V Mobile/15E148 Safari/604.1, with your iOS version |
| Chrome and Firefox on iPhone | The Safari string with CriOS/V or FxiOS/V in place of Version/V |
The short form is what Chrome, Edge, Opera and Samsung Internet send now: only the main version, with .0.0.0 after it, and fixed values for the system. Untick the short form to write the older full form with a full version, the Android version and the device model.
A tablet string for Android is the phone string without the word Mobile. Firefox uses the word Tablet in its place.
Worked example
Chrome on Windows with version 120 gives Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36, which is 111 characters long. The parser reads it back as Chrome 120.0.0.0, Windows 10 or 11, Desktop or laptop.
Firefox on Android with version 121 and Android 13 gives Mozilla/5.0 (Android 13; Mobile; rv:121.0) Gecko/121.0 Firefox/121.0.
The version numbers in these examples only show the format. They are not the current versions.
How the random pick works
- Each row of your list makes one string for each version in it. The same string from two rows counts once.
- Every different string has the same chance. The picks use the secure random generator of your browser.
- With Use no string more than once the list is put in a random order and cut to the number you asked for.
- The random list uses the formats that need one version only: Chrome and Edge in the short form, Firefox on Windows, macOS and Linux, and Safari on a Mac.
- No version is built into this page. The pick is only among the versions that you type.
Limits you should know
- Use these strings to test your own sites, apps and software. Many services forbid false user agent strings in their terms, and a site can treat a visitor in another way when the string does not match the real browser.
- A string does not change what the browser can do. A site can still see the real browser by other signs.
- The fixed parts of the formats, such as
537.36,605.1.15,15E148and10_15_7, are the values that the browsers send today. A browser maker can change its format. - The tool does not make strings for crawlers, apps, television sets or game consoles, and it has no Edge or Opera format for iPhone.
- This is a page for people. It is not a program library for Python or another language.