Tool overview
什么是URL 解析器?
URL 解析器是一款帮助您将 URL 分解為协议、主机、路径和查询组件的開發者工具。
為什么使用URL 解析器?
在需要将 URL 分解為协议、主机、路径和查询组件時提升可讀性与效率,且不會将数據上传到服務器。
核心功能
即時語法高亮、錯誤捕获、客戶端私隱保护与一鍵複製。将 URL 分解為协议、主机、路径和查询组件
使用方法
按照以下步骤使用上方工具并获得准确結果。
- Paste a full URL including protocol and hostname.
- Review JSON output with protocol, host, pathname, hash, and decoded query params.
- Copy individual components for API routing or redirect debugging.
- Pipe query objects into JSON or query-string tools.
URL Component Reference
Standard fields emitted by the parser.
| 字段类型 | 示例负载 | 结构格式化规则 |
|---|---|---|
| protocol | "https:" | Includes trailing colon as in URL API. |
| hostname | "api.example.com" | Excludes port unless present in host. |
| searchParams | { "q": "test" } | Decoded key/value map from query string. |
常见問題
關于常见调试問題和数據私隱的可展開解答。
官方文件与参考
本工具的权威规范与平台文件。