URL Parser

Parse URL structure: protocol / host / path / query / anchor

URL Parser is a free online Developer tool. Parse URL structure: protocol / host / path / query / anchor Related terms: url · 解析 · parse · query · 参数 · protocol. Use it on this page without signing in.

完整 URL(规范化)
https://user:pass@example.com:8080/path/to/page?id=42&q=%E5%B7%A5%E5%85%B7%E7%AE%B1&sort=desc#section-1

组成部分

protocol (协议)
https:
hostname (主机名)
example.com
port (端口)
8080
host (主机:端口)
example.com:8080
origin (源)
https://example.com:8080
pathname (路径)
/path/to/page
search (查询串)
?id=42&q=%E5%B7%A5%E5%85%B7%E7%AE%B1&sort=desc
hash (锚点)
#section-1
username
user
password
pass

查询参数(3 个)

键 (key)值 (value)
id42
q工具箱
sortdesc

使用浏览器原生 URL API 解析。需输入完整 URL(含协议,如 http:// 或 https://),查询参数自动解码百分号转义。

Help

使用说明

  1. 输入完整 URL
  2. 自动解析为协议、主机、端口、路径、查询参数、锚点
  3. 查询参数按 key=value 逐行展开,可编辑和重新编码

常见问题

  • 查询参数编码? 自动解码 %XX 转义字符
  • 支持相对路径吗? 需要输入完整 URL(含协议)

More Developer

View all

FAQ about URL Parser

What can URL Parser do?

URL Parser is a Developer tool. Parse URL structure: protocol / host / path / query / anchor You can finish the job on this page.

Who should use URL Parser?

Anyone handling url · 解析 · parse · query · 参数 · protocol who does not want to install desktop software can use URL Parser in the browser.

Is URL Parser safe? Is my data uploaded?

This tool runs in your browser. We do not collect the content you enter into URL Parser just because you used it.

What similar tools exist?

Related tools in the same Developer group are listed at the bottom of this page.