Small tools. Better flow.

User-Agent parser

Inspect browser, OS, and device from a User-Agent string.

Usage guide

Your input stays in this browser.

Input & options

Text 1 MB

View code examples ↓

Result

Your result will appear here.

Code examples

Starting points for your own code. Run them in the environment shown below.

Node.js 22+ · ES module (.mjs)

Current inputs apply only to fields used by the example. Selected files are not embedded.

Install dependencies

npm install ua-parser-js@1
import { UAParser } from "ua-parser-js";
const parser = new UAParser("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36");
console.log(parser.getResult());
// User-Agent is client-controlled, not proof of identity.

Put it to work

Inspect browser, OS, and device from a User-Agent string.

Details that matter

Format and meaning

This is a string-based estimate. Reduced or spoofed User-Agents may omit details.

Supported scope and limits

Text 1 MB

Split inputs that exceed the limit. If a format or algorithm is unsupported, choose a tool that matches your requirements instead of silently changing the format.