输入任意网址,一键拆分协议、域名、端口、路径、参数、Hash,支持参数表格编辑与复制。
把完整 URL 拆成协议、主机、端口、路径、查询参数、Hash 等组件,方便程序读写与调试。
scheme://host:port/path?query#hash
https://www.okeytool.com:8080/url-parser?name=value&a=b#section
const u = new URL('https://example.com/path?q=1');
console.log(u.protocol); // "https:"
console.log(u.searchParams.get('q')); // "1"
所有解析在浏览器本地完成,输入内容不会上传到服务器。