粘贴 URL 即可分解为各个组成部分。
功能说明
URL 检查器把任意 URL 分解为 WHATWG 定义的全部组件:scheme/protocol、origin、host、hostname、port、pathname、search 字符串、
hashhashA one-way function that maps data of any size to a fixed-length digest. Same input, same digest; any change, different digest; not reversible.
,以及任何内嵌的凭据。它揭示浏览器 URL 解析器隐藏的信号 — 端口是否为该 scheme 的默认值(例如https → 443)、连接是否安全、URL 是否只是一个站点根路径。查询参数逐一列出,并带有**已编码 / 已解码(Encoded / Decoded)**切换开关,可对值做百分号解码(把 + 视为空格)。一切 100% 在客户端运行。
使用方法
- 把 URL 粘贴到 URL 输入框(或点击**示例(Sample)**加载一个带凭据、端口和查询参数的演示)。
- 阅读结构化分解 — 每一行都有复制按钮。
- 切换**已编码 / 已解码(Encoded / Decoded)**来改变查询参数值的显示方式。
- 留意徽章(badges):它们标示安全性、默认/自定义端口,以及任何警告(凭据、仅根路径 URL)。
- **复制分享链接(Copy share link)**把确切的 URL 和切换状态发给同事。
示例
分解一个带查询字符串的 URL
Input: https://api.example.com/v1/search?q=hello%20world&lang=en
Result: protocol https:, hostname api.example.com, pathname /v1/search, two params (q, lang) - decoded q = hello world.
识别凭据和默认端口
Input: https://user:pass@example.com:443/
Warnings: username credential, password credential, port 443 is the default for https.
捕获无效 URL
Input: example.com/path → Invalid URL - include the scheme (e.g. https://).
补充说明
- 可分享: URL 和解码开关被编码进链接(
?u=…&d=…)。 - 私密: 解析在本地进行 — 对可能包含令牌或凭据的 URL 也安全。
- 相关工具: Email Validator、HTTP Status Codes、
Base64Base64An encoding representing binary data as 64 safe ASCII characters, so it survives transport through text-only channels. It encodes — it does not encrypt.
Encode / Decode。