跳到主要内容
uencoder

URL 解析器

将 URL 解析为各组成部分:协议、主机、路径、查询、哈希、端口、用户名和密码。免费、隐私、100% 客户端运行。

Local only

最近历史

暂无历史

使用方法

  1. 将完整 URL 粘贴到输入框。
  2. 查看解析后的组件和查询参数。
  3. 按需复制或下载结果。

使用此工具的任务

构建 URL query strings from objects
Construct properly encoded 查询 strings 从 JavaScript objects. Handle arrays, nested objects, 和特殊 characters 正确.
任务
解码 a Punycode internationalized domain name to Unicode
转换 an ACE-encoded domain (xn--...) back to its readable Unicode form, and encode Unicode domains for DNS lookup.
任务
编码 text for safe use inside a URL query string
Turn arbitrary 文本 (具有 spaces, ampersands, Unicode, equals signs) 为值 该能够是 placed directly 之后 ?键= 在 URL 无 breaking parsing.
任务
提取 all URLs from a block of text
Find 每个 URL (http, https, ftp) 在 unstructured 文本和 列表它们为 validation, deduplication, 或批量过程.
任务
生成 a QR code for a URL
Create scannable QR 代码该 encodes URL, 具有 control 遍历大小, 错误校正, 和格式化.
任务
Implement CORS 安全
CORS (Cross-源 Resource Sharing) allows controlled cross-源 requests. Learn 到 configure origins, 方法, headers, 和 credentials 安全.
任务
Look 上 meaning 的 HTTP 状态代码
获取 the category, reason phrase, and common usage for any HTTP status code (1xx-5xx).
任务
解析 a URL into components and construct URLs from parts
Decompose URL 为协议, 主机, 路径, 查询, 片段 — 和构建 URL 从 individual components 安全.
任务
解析 and understand DNS records
DNS records 映射域 names 到 IPs, mail servers, 和其他数据. Learn , AAAA, CNAME, MX, TXT, NS, 和 SOA 记录 types.
任务
解析 URL query strings
Query strings 通过键-值 pairs 在 URLs 之后 ?. Learn parsing, 编码, 和 handling 的 arrays, nested objects, 和特殊 characters.
任务
Use MQTT topic 结构为 IoT messaging
MQTT topics use slash-separated hierarchies 具有 wildcards 为 subscription. Learn topic 设计, QoS 级别, 和 retained messages.
任务
Write URL validation regex
URL validation regex 必须处理协议, 域, 端口, 路径, 查询, 和片段. Learn practical patterns 和当 到 use URL parser instead.
任务

使用此工具的管道

常见问题

会提取哪些 URL 组件?
工具提取协议、用户名、密码、主机、主机名、端口、路径、查询字符串、哈希片段、origin 和 href,以及解析后的查询参数。
会把我的 URL 发送到服务器吗?
不会。解析完全在浏览器中通过内置 URL API 完成,数据不会离开你的设备。

相关工具