# UAParser.js - Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client-Hints data using JavaScript. Supports browser & node.js environment. Available as jQuery plugin & @types-ready for TypeScript.
Keywords: browser detection, user-agent, javascript, detect os, detect mobile tablet, detect device, detect cpu, javascript, nodejs, jquery, typescript, client hints

# What device.type am I using?

##

{UAParser.js} detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client-Hints with relatively small footprint (~17KB minified, ~6KB gzipped) that can be used either in browser (client-side) or node.js (server-side).

Now, detecting browser is as simple as ua.getBrowser()

FROM OUR SPONSORS :
51Degrees
@51degrees/ua-parser-js

UAParser.js has been upgraded to detect comprehensive device data based on the User-Agent and User-Agent Client Hints.

This package supports all device types including Apple and Android devices and can be used either in a browser (client-side) or Node.js environment (server-side).

Visit 51Degrees UAParser to get started.

@51degrees/ua-parser-js
USER-AGENT PLAYGROUND

{UAParser.js} abstracts away the hassle of User-Agent detection by turning them into a set of simple & meaningful data. As an example, this is what we get from your browser's User-Agent information:

{UAParser.js} will transforms it into a well-structured data:

Browser
Engine
OS
Type
Model
CPU
TRY MORE EXAMPLES
Pick another User-Agent to test:
OR type any User-Agent you want to check:
CHECK
DETECT GPU FROM WEBGL DATA (EXPERIMENTAL FEATURE)
GPU
LESS IS MORE

###
Extract Only What's Valuable

It's widely known that User-Agent string as of today is a mess. On the other hand, there is no reliable way to identify browser. {UAParser.js} fills this gap by filtering the noise away and extracts only the most relevant data available: Browser, Engine, OS, CPU, and Device.

###
Relatively Small Footprint

Started from JavaScript approach, {UAParser.js} is optimized to be used with browser. While it covers a vast range of detection, the size always kept to be as light as possible. For extra cache performance, {UAParser.js} also available in popular CDN services (jsDelivr/CDNJS).

###
100% Free & Open Source

Licensed under a permissive MIT license. {UAParser.js} is free to use, free to modify, free of charge. Get as-is, no support or guarantee offered. Use, extend, or replace with your own set of rules. Don't forget to contribute back by submitting a pull request or consider donating if you want.

###
Client-side & Server-side

Whether it's a client-side webpage running in a browser or a server-side node.js app, simply type:

$ npm i ua-parser-js --save

###
0-dependency Vanilla JS

No framework needed. No transpiler required. Just a good ol' ES3-compatible syntax that is able to run on relatively old browsers while also perform on most modern devices. Just insert the code and you're good to go.

###
Made by and for Developer

Having large user base, whenever jQuery is present, {UAParser.js} will detect and generate $.ua plugin automatically. Also, for TypeScript user, there is a community-maintained typed: @types/ua-parser-js.

LOVED BY DEVELOPERS
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ć - Frontend Web Developer

Totally Rocks!

"I've been using your library for a long time and it totally rocks!". Christian Rich - Web Developer

Very Useful!

"Thank you for putting out this very useful library!". Anuj Nijhawan - Web Developer

TRUSTED BY COMPANIES

## Who's Using {UAParser.js} ?
Showcasing some well-known companies that are using our library

Website Accessibility Insights
Kindle for iOS / Android Amazon Chime SDK for JavaScript
Facebook / FBJS
Web-based Instagram
Web-based WhatsApp
Web-based App
Tachometer
HTTP Toolkit UI
AliExpress Website
Next.js
Web-based App
Apple Music Website Apple TV Website
Web-based App
Add-on Frontend
WP-Calypso
Browser Sniffer Blockchain Components
JavaScript SDK
LINE Messenger
Website
Emoji Keyboard
Rocket.Chat
Web AR
CircleCI Enterprise
PWA Kit
WebClient
Desktop Platform
Confluent Platform
Cloud Enterprise
Platform
Website
Website
Support Desk
Website
Website
Web & Mobile App
Website Gestalt
Zoho Mail
Website
Website
Website
Website
Web-based App
Website
Disney+ Website National Geographic Website
Website
Website
Website
Web-based App
Website
GrabFood Web
Web-based App
Seller Center
Web-based App
Ticket & Travel Page
Hub Website
Harp.gl
Website
Web & Mobile Platform
Neo4j Bloom
MongoDB Charts
EMC PowerStore
Developer Console
Oracle NetSuite
Premium Services
OneView Global Dashboard
Fios TV
SUPPORTED BY THE AMAZING OPEN-SOURCE COMMUNITIES

## Backers & Sponsors
Those who give back and generously keep this library alive

## Contributors
Those who collaborate and continuosly improve this library to be awesome

Success

Copied!

OK