URL Parser|URL 解析工具

URL Parser|URL 解析工具

URL Parser URL 解析工具

拆解协议(scheme)、域名(host)、路径(pathname)与参数(query),并生成 query 参数表,便于调试接口与排查跳转问题。
Parse a URL into scheme, host, path, query and more. Extract query parameters into a readable table for debugging and inspection.

1. 输入参数 · Input
建议直接粘贴浏览器地址栏中的完整 URL(包含 https://)。
Tip: Paste a full URL from your browser address bar (including https://).
若你只粘贴了 example.com/abc 这种“无协议”形式,工具会自动尝试补全为 https://
If the scheme is missing (e.g. “example.com/abc”), the tool will try to prefix https://.
常见场景 · Common use cases
1) 排查 OAuth / SSO 回跳地址:看清 redirect_uristatecode 是否完整。
2) SEO/投放追踪:快速查看 utm_source / utm_medium / utm_campaign 等参数是否正确拼接。
3) API 调试:当 query 中含有重复键(如 x=1&x=2)时,本工具会在表格中逐条列出。
1) OAuth/SSO callback: verify redirect_uri/state/code integrity. 2) Marketing tags (UTM). 3) API debugging with repeated keys.
3. 使用说明 · Notes
  • URL 是由哪些部分组成? · What parts does a URL contain?
    常见结构:scheme://username:password@host:port/path?query#hash
    不是每个部分都必须存在:很多 URL 没有用户名/密码,没有端口号,也可能没有 query 或 hash。
    Not every part is required: many URLs have no userinfo, no explicit port, and may omit query/hash.
  • 为什么我粘贴 “example.com/abc” 也能解析? · Why can “example.com/abc” still parse?
    浏览器的 URL 解析器通常需要协议(如 https://)。为了更贴合日常复制粘贴习惯,本工具会在你未填写协议时自动尝试补全。
    The built-in URL parser typically needs a scheme. This tool auto-prefixes one to match real-world usage.
  • Query 参数为什么会有重复 key? · Why can query keys repeat?
    例如:x=1&x=2。这在筛选、多选、数组参数等场景很常见。后端可能会按“数组”处理,也可能取最后一个值。
    Example: x=1&x=2. Common for filters/multi-select. Servers may treat them as arrays or take the last value.
  • “解码 query” 是什么意思? · What does “decode query” mean?
    URL 为了安全传输会把空格、中文等字符编码为 %xx 形式(百分号编码)。勾选后会将 value 解码为更可读的文本。
    URLs often percent-encode spaces/Unicode. When enabled, values are decoded for readability.
  • 安全提示 · Security notes
    如果 URL 里包含敏感信息(token、password、session),建议不要截图分享原文。本工具默认会隐藏密码字段,但 query 里的 token 仍会显示(便于调试),复制前请自行确认。
    If the URL contains secrets (token/password/session), avoid sharing raw screenshots. Password is masked by default, but query tokens are shown for debugging—double-check before copying.
  • 导出与粘贴 · Export & paste
    你可以复制:1)完整解析 JSON;2)参数 JSON;3)参数表 TSV(适合粘贴到 Excel / Sheets)。
    You can copy: (1) full parsed JSON, (2) params JSON, (3) TSV table (easy to paste into spreadsheets).

说明:本工具在本地浏览器中解析,不会上传你的 URL 到服务器。不同浏览器/运行环境对 URL 规范化可能略有差异,结果以你的浏览器解析行为为准。
Note: Parsing happens locally in your browser (no upload). Normalization may vary slightly by browser/runtime; the result reflects your current environment.