Random user agent generator

Generate realistic, well-formed user agent strings for testing. Filter by device type and copy with one click. It runs in your browser and uses only fictional, example devices.

Random 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
Identifies asChrome 120 on Windows
DeviceDesktop

Why generate random user agents?

When you build or test a website, you need to know it behaves correctly across the browsers and devices your visitors actually use. A random, realistic user agent lets you feed your analytics parser, your device-detection logic, or your test fixtures a variety of inputs without hunting down real devices. It is the quickest way to sanity check that your code does not choke on a mobile Safari string or an Android Chrome build.

The strings here are structured exactly like the ones real browsers send, with the same platform tokens and engine markers, so a parser that handles these will handle production traffic. They describe example devices only, not any real person, in keeping with good testing hygiene.

Frequently asked questions

Can I use these to hide my identity?

Swapping your user agent alone does little for privacy, because dozens of other signals still identify your browser. See the user agent explainer and the fingerprint test to understand why the string is only one small piece.

How do I parse a user agent string?

Paste any string into the user agent parser to break it into browser, engine, OS and device, or call the free API to parse strings in code.