跳到正文Skip to content

URL 编解码URL Encoder / Decoder

对 URL 参数或完整链接进行百分号编码与解码。Percent-encode URL components or full URLs and decode them back.

理念:Idea: 链接干干净净,参数不出错。Clean links, correct parameters.

解决:Solves: 链接里的中文和符号正确编码、解码Encodes and decodes links correctly

适合:For: 处理链接参数的人Anyone handling URL parameters

可用Available在浏览器中运行Runs in your browser
Loading tool…

在你的设备上本地处理。这里输入的内容不会上传。Processed locally on your device. Nothing you enter here is uploaded.

使用方法How to use

  1. 1选择编码或解码。Choose Encode or Decode.
  2. 2单个查询值或路径片段用「Component」;要保留 :/?&= 用「Full URL」。Pick “Component” for a single query value or path segment, or “Full URL” to keep :/?&= intact.
  3. 3复制结果。Copy the result.

说明Good to know

  • Component 使用 encodeURIComponent,会转义 / ? & = # 这类保留字符。Component mode uses encodeURIComponent: it escapes reserved characters such as / ? & = #.
  • Full URL 使用 encodeURI,保留 URL 结构字符,只转义 URL 里本来就不合法的字符。Full URL mode uses encodeURI: it leaves URL structure characters alone and only escapes characters that are never valid in a URL.
  • Base64 编解码Base64 Encoder / Decoder

    文本与 Base64 互转,完整支持 UTF-8 与中文。Encode text to Base64 and decode it back, with full UTF-8 support.

    可用Available开发者工具Developer
  • Hash 计算Hash Generator

    计算文本的 SHA-1、SHA-256、SHA-384、SHA-512 值。Compute SHA-1, SHA-256, SHA-384 and SHA-512 of any text.

    可用Available开发者工具Developer
  • HTML 转义HTML Escape / Unescape

    转义或还原 HTML 里的特殊字符(< > & 引号等)。Escape or unescape special characters in HTML text and attributes.

    可用Available开发者工具Developer