User Agent Parser
Detect browser, OS and device from a user-agent string.
Detect browser, OS and device from a user-agent string. Free, instant and private in your browser.
Loading the interactive tool… This page needs JavaScript to run the User Agent Parser.
How to use User Agent Parser
- Paste the data, code, token, or value you need to inspect.
- Set any format, encoding, or validation options.
- Run the tool and inspect the result or diagnostic output.
- Copy the output into your terminal, editor, API client, or project.
How User Agent Parser works
Paste a user-agent string and the tool reports the browser with version, operating system, device type (desktop, mobile, tablet or bot) and rendering engine using pattern matching. Edge, Opera and Samsung Internet are checked before Chrome, and Chrome before Safari. It is a heuristic and may misreport unusual or spoofed strings.
Worked example
Input: a Mozilla/5.0 string for Windows NT 10.0 with Chrome/120.0.0.0 → Output: browser Chrome 120.0.0.0, operating system Windows 10.0, device Desktop, engine Blink.
Common uses
- Work out which browser caused a bug report from a logged header.
- Check how analytics might classify a given device string.
- Test what a server-side detection rule will make of an odd string.
Best for
- debugging and development
- API work
- quick lookups
Tips for better results
- Parsing is heuristic and some agents are spoofed.
- Validate the output before using it in production code.
- Treat tokens, credentials, and secrets as sensitive even when processing happens locally.
- For large payloads, keep an original copy so you can compare changes.
Frequently asked questions
Where do I find a user-agent?
In browser dev tools, server logs or analytics. Your own is pre-filled.
Is my data sent to a server?
No. This tool runs in your browser, so what you enter stays on your device.
Do I need an account to use User Agent Parser?
No account or sign-up is needed. Just open the tool and use it.
Related tools
- Query String Parser — Parse a URL query string into JSON.
- URL Parser — Break a URL into protocol, host, path, query and hash.
- AI Token Cost Calculator — Estimate LLM API cost from tokens, requests and per-token prices.
- Base32 Encoder/Decoder — Encode or decode text as Base32.
- Base64 Encoder/Decoder — Encode or decode UTF-8 text as Base64.
- Chmod Calculator — Convert Linux file permissions between octal and symbolic.