Description
UAParser.js is a JavaScript library that reads a User-Agent string and works out the browser, operating system, device, CPU architecture, app, bot or AI crawler that sent it. It can also use Client Hints where a browser provides them. The library runs in the browser or in Node, and the site describes it as lightweight, at about 11.9 kB minified and gzipped. You install it from npm as ua-parser-js and call it on a user agent string to get a structured result. The site has a playground where you can paste a User-Agent string and see what the parser identifies, a documentation section, a download page for the browser build, and a REST API for looking up a user agent without installing anything. The site lists packages with different feature sets and pricing, and it shows backers and sponsors who support the project. UAParser.js is useful for analytics, for serving different layouts by device, and for spotting bot traffic in logs. The current release shown on the site is 2.0.10.…
Highlights
- Detects browsers, OS, devices and CPU
- Identifies bots and AI crawlers
- Runs in the browser or Node
- Playground and REST API
Ratings & Reviews
No ratings yet
Be the first to rate UAParser.js.
People also visit
UAParser.js FAQ
What is UAParser.js?
A JavaScript library that parses User-Agent strings to identify browsers, operating systems, devices, apps, bots and AI crawlers.
How do I install it?
Install the ua-parser-js package from npm.
Does it run in the browser?
Yes. It runs in the browser or in Node.
Can I try it without code?
Yes. The site has a playground, and a REST API for lookups.
How big is it?
The site says about 11.9 kB minified and gzipped.
What are the best UAParser.js alternatives?
Popular alternatives to UAParser.js include Camofox Browser, ShardBrowser and RPA. See all UAParser.js alternatives




