User Agent Parser
Paste a User-Agent string to see the browser, operating system and device behind it. Handy for debugging analytics, support tickets and server logs. Everything runs in your browser.
How to parse a user agent
- Paste a User-Agent string, or click Use my browser to load your own.
- Read the browser, OS and device cards filled in instantly.
- Copy the value you need into your logs, tests or bug report.
Examples
Chrome on Windows 10
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Browser: Chrome 120.0.0.0, OS: Windows 10, Device: desktop
Safari on iPhone
Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1
Browser: Safari 17.0, OS: iOS 17.0, Device: mobile (Apple)
Frequently asked questions
What is a user agent string?
It is a line of text a browser or app sends with every request to identify itself. It usually names the browser, its version, the operating system and the rendering engine.
Why would I parse a user agent?
To understand traffic in analytics, reproduce a bug a user reported, segment downloads by platform, or branch server logic on browser or device type.
Is user agent detection reliable?
Not fully. User-Agent strings can be spoofed, frozen by the browser, or set to anything by scripts and bots. Treat the result as a strong hint, not proof of the real device.
What about User-Agent Client Hints?
Chromium browsers are freezing the legacy User-Agent string and moving detail into Client Hints (Sec-CH-UA headers). This parser reads the classic string, so very new Chrome builds may report a generic version.
Is my user agent sent to a server?
No. Parsing happens entirely in your browser, so the string you paste never leaves your device.
How does the parser tell a tablet from a phone?
An iPad, or an Android UA without the word Mobile, is treated as a tablet. iPhone and Android with Mobile are treated as phones, and everything else is treated as a desktop.
Related tools
JWT Decoder
Decode a JSON Web Token to read its header and payload claims. Shows exp, iat and nbf as dates. Runs in your browser. No signature check.
URL Decoder
Decode URL-encoded text online. Turn %20, %26 and + back into readable characters, with full unicode support. Free, instant and runs in your browser.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
Aspect Ratio Calculator
Calculate aspect ratios fast. Enter a ratio like 16:9 and one dimension to get the other, or enter width and height to simplify the ratio.
Base58 Encoder
Encode and decode Base58 online with the Bitcoin alphabet. Convert text to Base58 or back, UTF-8 safe, no confusing 0 O I l. Runs in your browser.
Base64 Decode
Decode Base64 to plain text online. Paste a Base64 or base64url string and get instant UTF-8 output. Free, fast and runs in your browser.