v2.0.10 Take the Hassle Out of User-Agent Detection.

Know your traffic.
Make every visit count.

Identify Browsers, Platforms, Devices, Apps, Bots, AI Crawlers and more.

$ npm install ua-parser-js ~11.9 kB Minified + Gzipped
ua-parser.js user-agent detected
Raw client signals input
Mozilla/5.0 (compatible; device and browser identifiers...)
Detect User-Agent ...
Structured client insights output
"browser": {
  "name": "Chrome",
  "version": "139.0.0.0"
},
"os": {
  "name": "macOS",
  "version": "15.6"
},
"device": {
  "type": "desktop"
}
Client-side Server-side
12+years maintained on GitHub
124+ MILLIONmonthly downloads on npm
Browsers & Node.jsSingle API for all environments
DEMO: USER-AGENT PLAYGROUND.

Default User-Agent string:

😵‍💫💢 Confusing 🫤❓ Inconsistent 😭💸 Costly

Identified by UAParser.js:

🙂✨ Concise 🙂💡 Insightful 🙂💰 Cost-efficient
VS

Browser
detected browser icon
OS
detected os icon
CPU Architecture
detected cpu icon
Engine
Device Type
detected device type icon
Device Vendor & Model
detected device vendor icon
Category
isChromeFamily()
isBot()
isAICrawler()
TRY MORE EXAMPLES
CHECK
DETECT GPU FROM WEBGL DATA (EXPERIMENTAL FEATURE)
GPU
detected gpu icon
FEATURES: COMPLETE DETECTION. MINIMAL OVERHEAD.

Clean & Organized

Effortless, intuitive API. Get clear, consistent results.

Wide Coverage

Detects various devices, browsers, platforms, bots, apps, and more.

Lightweight & Fast

Dependency-free. Keeps bundle size compact and efficient.

Works Everywhere

Runs seamlessly across browsers and Node.js.

npm-ready Package

Easily integrates into your existing workflow.

Lifetime Updates

Stay up-to-date with the ever-evolving trends.

TESTIMONIALS: LOVED BY THOSE WHO BUILD THE WEB.
Great Utility!
5/5

"A great utility library to have when you're investigating what kind of users are visiting your website and how you can improve their UX. Supports most browsers out there."

Gabrijel Golubić

Easier Life!
5/5

"Thanks to the awesome people who make life so much easier for developers.. The evolution of the internet has made it critical that we detect the user's device type accurately to make our apps function better and look better.".

The-Linguist

Totally Rocks!
5/5

"I've been using your library for a long time and it totally rocks!".

Christian Rich

Very Useful!
5/5

"Thank you for putting out this very useful library!".

Anuj Nijhawan

Essential Library!
5/5

"For years, it has been appreciated as a valuable tool for web developers. Its ability to accurately parse user agent strings.. has made it an essential library for many of us.".

LogRocket

SHOWCASE: FROM STARTUPS TO GLOBAL BRANDS.
DOWNLOAD: SIMPLE LICENSING. FLEXIBLE DEPLOYMENT.

Package Options
Pricing & feature comparison

PRO Personal
$14 (one-time)
Non-commercial usage
  • Full features
  • npm-ready
  • Non-commercial usage rights
  • Unlimited deployments
  • 1 year support
  • Lifetime updates
PRO Business
$29 (one-time)
1 End-Product per 1 License
  • Full features
  • npm-ready
  • Commercial usage rights
  • 1 TLD per 1 license
  • 1 year support
  • Lifetime updates
PRO Enterprise
$599 (one-time)
Full usage rights
  • Full features
  • npm-ready
  • Commercial usage rights
  • Unlimited deployments
  • 1 year support
  • Lifetime updates
See Detailed Feature Comparison
OSS Editions Commercial Editions
License MIT (v1.0) AGPL (>=v2.0) PRO Personal PRO Business PRO Enterprise
Browser detection
CPU detection
Device detection
Engine detection
OS detection
Bot detection
AI Bot detection
Extras (Apps, Libs, Emails, Media Players, etc) detection
Enhanced detection result
Client Hints support
CommonJS support
ES modules support
TypeScript declarations
npm module available
Direct downloads available
Allows commercial usage
Permissive (non-copyleft) license
No open-source obligations
Unlimited end-products
Unlimited deployments
1-year product support
Lifetime updates
Price (one-time fee) FREE FREE $14 $29 $599
GET NOW
MANAGED SERVICE: UAParser.js × RESTCountries.com

REST API
Skip the installation. Use the User-Agent API

  1. Any stack. Any platform (JS, Python, PHP, Java, Go, etc.)
  2. No servers to maintain or parser updates periodically
  3. Integrate in minutes with a simple REST API powered by UAParser.js
START BUILDING FOR FREE