Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I'm testing a library that processes queries based on User-Agent. In my tests, I'd like to feed it as much strings as possible.

Where can I find a public collection of User-Agent strings?

I'm mainly interested in "real" strings, but a collection of specifically interesting strings could be of use (like examples that are likely to put stress on parsers). Plain newline-delimited list is OK.

share|improve this question
Remember that users can come to your site using any user agent string they choose - real or made up. Thus, you should consider testing using strings you create to intentionally "stess" your parser. Base those strings on your knowledge of your parser's design. –  Joe Strazzere Aug 29 '13 at 18:59
@JoeStrazzere Definitely, although besides that I need to concentrate on regression tests on "existing" browsers. Which is reason why I want to compile a list as big as possible –  Alois Mahdal Aug 29 '13 at 19:14

2 Answers 2

I searched Google for "User-Agent strings" and found this and this and this. If you work for a company with a website, you might try asking them for a list.

share|improve this answer

I found this site that offers a sample of user agents in csv format: http://user-agent-string.info/download

Actual download link: http://user-agent-string.info/rpc/get_data.php?uaslist=csv

The format is: "Type","Name","useragentstring"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.