Skip to main content
SiteIndex
开发者可以使用

解析 URL 的组成部分

将 URL 拆分为协议、主机、路径、查询参数、哈希片段及其他实用组成部分。

使用指南

交互式工具区

无需注册账号
URL 解析器
protocol
https:
host
www.siteindex.app
hostname
www.siteindex.app
port
—
pathname
/tools/json-formatter
search
?ref=docs
hash
#top
origin
https://www.siteindex.app
username
—
password
—
Edit components

Change a component and the full URL above rebuilds live.

Rebuilt query values use form encoding: spaces become + and literal plus signs become %2B.

Query parameters

URL 解析器是什么?

将 URL 拆分为协议、主机、路径、查询参数、哈希片段及其他实用组成部分。

工作原理

将 URL 拆分为协议、主机、路径、查询参数、哈希片段及其他实用组成部分。

常见用途

将 URL 拆分为协议、主机、路径、查询参数、哈希片段及其他实用组成部分。

使用限制

结果可能因浏览器、网络、输入内容和外部服务而异。本工具仅供参考,不能替代专业诊断或建议。

常见问题
URL 解析器是什么?
将 URL 拆分为协议、主机、路径、查询参数、哈希片段及其他实用组成部分。

相关工具