User-Agent Parser and Generator

Parse User-Agent strings into browser, engine, OS, device and CPU details, or generate User-Agents in batch by platform and browser for scraping and anti-bot debugging.

Input User-Agent

Result

Parsed results will appear here

About This Tool

The User-Agent toolkit solves two related needs: breaking a UA string into structured browser, engine, operating system, device and CPU details, and generating realistic UA strings in batch by platform and browser. Scraping work, anti-bot debugging and compatibility checks usually require both.

Parsing covers Chrome, Edge, Firefox, Safari and Opera plus the common Chinese browsers WeChat and QQ, recognises Windows, macOS, Linux, Android, iOS and Chrome OS, and flags mobile, tablet and bot traffic. The parser is a lightweight regex implementation with no third-party dependency, so results appear instantly.

Key Features

Five-part breakdown

Browser, engine, OS, device and CPU architecture shown with versions.

Mobile and bot flags

Automatically marks Mobile, Tablet and Bot for quick request triage.

Batch generation

Generate many UAs from platform, browser and major version with sensible variation.

Batch parsing

Paste multiple UA lines and get a parsed result for each one.

When to Use It

Build a UA pool

Generate platform and browser combinations to rotate request headers.

Log analysis

Turn UA strings from production logs into readable device statistics.

Compatibility triage

Identify which browser version and device produced an abnormal request.

How to Use It

  1. 1Choose Parse UA or Generate UA.
  2. 2In parse mode paste one UA per line.
  3. 3In generate mode pick platform, browser, version and count.
  4. 4Run and copy the result.

Frequently Asked Questions

Why is a version empty in the result?

Some UA strings omit the version or use a non-standard format, in which case only the name is reported.

Can I use the generated UAs directly?

Yes, but respect the target site's robots policy and terms of service, and avoid high-frequency scraping.

Other Tools

CodeSwordsman

100+ technical tools with browser-local processing — your data never leaves your device. Official Microsoft Store desktop apps: free, ad-free, offline.

Completely Free

© 2026 CodeSwordsman All Rights Reserved

Service Terms | Privacy Policy | Help | Version Updates | About Us

This website uses cookies to ensure you get the best experience on our website. Privacy Policy.