UA and Short Links
User-Agent0 字符
批量解析—
A/B 对照—
短链与跳转参数
解析结果
批量结果—
跳转链—
How to Use
📖 What it does
Debugging often needs two answers: which device sent this request, and where does this short link end up. The first hides in nested parentheses, the second in re-encoded parameters. This tool answers both on one screen.
It never calls a short-link service or resolves DNS. It only decodes parameters already present in the URL; mappings that depend on a server-side 302 require opening the link yourself.
One UA parse plus a three-hop link decode takes about 3 ms and recalculates on input.
Everything is string and regex work; existing rows are updated rather than rebuilt, so repeated parsing does not grow the DOM.
The workspace exposes 4 controls, from 完全相同的内容只保留一条 to 粘一条带跳转参数的链接,或短链还原后的地址, and every one of them only affects the local rendering: nothing is sent back to a server.
The 完全相同的内容只保留一条 control toggles a single behaviour on or off; the preview updates at once and the exported file follows the current state.
The A control takes free text and feeds it straight into the preview without sending it anywhere.
The B control takes free text and feeds it straight into the preview without sending it anywhere.
The 粘一条带跳转参数的链接,或短链还原后的地址 control takes free text and feeds it straight into the preview without sending it anywhere.
✨ Features
- Eight UA fields: OS, browser, version, engine, device type, architecture, model and bot flag.
- Built-in samples: iPhone Safari, Windows Chrome, Android WeChat, Googlebot and curl, one click each.
- Layer-by-layer decoding: finds the next hop in u, url, target and redirect parameters, up to five layers with loop protection.
- Fragment support: handles redirects and Base64 payloads inside the hash.
- Source parameters: utm_source, from and channel are listed together for channel attribution.
- JSON export: the parse result and link are copied as JSON for tickets or logs.
🚀 How to use
- Paste a browser or bot UA into the first box and the eight fields fill in immediately.
- Use the sample chips to compare iPhone, Windows, WeChat, Googlebot and curl.
- Paste a short link or a URL with redirect parameters into the second box.
- Read the last hop and the source parameters to see where the link really lands.
- Copy the JSON into a ticket, log or test record.
⚠️ Before you rely on it
- UA can be forged: it is a self-report from the client and never proof of identity.
- Limited bot list: common crawlers and script clients are covered, niche bots may read as unknown.
- No network calls: only parameters in the URL are decoded; 302 mappings need a real visit.
- Five layers max: the guard keeps malformed data from looping forever.
- Base64 is not encryption: decoding proves nothing about safety, so keep secrets out of parameters.
- Device detection is conservative: desktop-mode iPadOS reads as desktop, so check the viewport too.
- Site language drives the interface copy; no second switch inside the plugin.
- UA and links are parsed locally and never uploaded or fetched.
Questions people ask: Q: Why does the short link not resolve to the final URL? A: Short-link services usually decide the target server-side through a 302, so no plain URL exists in the parameters. Decoding only covers what the URL carries; open it once to see the destination. Q: Why is the version sometimes wrong? A: Some browsers reduce the UA and freeze the version string. Client Hints or capability detection fills the gap. Q: It says bot but the visitor is human. What now? A: UA can be forged or reused by proxies. Combine behaviour, IP and request rate instead of blocking on UA alone. Q: The same phone reports different results twice. A: In-app WebViews send a different UA from the system browser and often append an app identifier, so a changing result is expected. Q: A short link does not resolve to a target. A: Some services map codes server-side with a 302 and never expose the destination; in that case only the code is available and the landing page must be checked in the provider dashboard. Q: Why do some short links not unfold? A: No plain URL exists in the parameters and the server decides the hop with a 302. Open the link once to see the landing page.
Typical use: A layout bug only reproduces inside WeChat and you need the UA signature. You have a redirect link and want to see the landing page without clicking. Checking whether utm parameters survived the redirect chain.
What you can enter: A UA string is required and refreshes the eight fields. A short link is optional and may contain redirect parameters or hash fragments.
What you get back: Eight parsed UA fields. Each hop of the redirect chain, source parameters and a JSON summary.
Limits to keep in mind: Parses UA and URL parameters only; no short-link requests, DNS or certificate lookups. Bot and device lists are common sets and cannot cover every client. The chain stops after five hops.