跳到主要内容
uencoder

解析 a URL into components and construct URLs from parts

Decompose URL 为协议, 主机, 路径, 查询, 片段 — 和构建 URL 从 individual components 安全.

  1. 1

    URLs 有 precise 结构 (RFC 3986): scheme, authority, 主机, 端口, 路径, 查询, 片段. Parsing decomposes URL 为 inspection 或 modification; construction reassembles parts 具有 proper 编码.

  2. 2
    URL 解析器 →

    Paste URL. tool decomposes 它为 协议, 主机, 端口, pathname, 搜索 params, 和 hash, 每个 editable 为 reconstruction.

  3. 3
    URL 编码器 →

    当 constructing URL 具有查询 parameters 该包含特殊 characters, 编码每个参数值 这里之前 assembling.

  4. 4
    URL 解码器 →

    到检查 encoded URL, 解码它 这里 — useful 为 understanding redirect URLs 该是 themselves URL-encoded as 参数.

常见问题

什么是 差集之间搜索和 searchParams?
搜索是 raw 查询字符串 including leading '?' (e.g. ?=1&b=2). searchParams 是 parsed URLSearchParams object 该 lets 你 get, 集合, 和 delete individual parameters 无字符串 manipulation.
如何 I 处理 URLs 具有 encoded slashes (%2F)?
一些 servers 解码 %2F 到 / 在路径 (allowing encoded slashes), 其他 treat 它 literally. parser preserves %2F as-is. 当 constructing, 编码 slashes 在路径 segments 该应该不 是 interpreted as 路径 separators.

解决此任务的工作流

相关工具