MDevTools

URL Encode / DecodeURL 编解码

Percent-encode or decode URLs, params and text.

对网址、参数或文本进行 URL 百分号编码与解码,方便调试接口与链接。

What is URL Encode / Decode?URL 编解码 是什么?

URL encoding (percent-encoding) replaces characters that are not allowed in a URL with a % followed by two hexadecimal digits. This tool encodes and decodes URLs, query strings, form values and arbitrary text, handling UTF-8 correctly. It is the fastest way to fix broken links, debug tracking parameters or prepare a string for a query parameter.

URL 编码(百分号编码)把 URL 中不允许出现的字符替换成 % 加两位十六进制。本工具可编解码 URL、查询串、表单值和任意文本,并正确处理 UTF-8。它是修复失效链接、调试追踪参数、为查询参数准备字符串最快的方式。

How to use url encode / decode如何使用 URL 编解码

  1. Paste the URL or text into the input box.
  2. Choose Encode to percent-escape it, or Decode to turn %XX sequences back into characters.
  3. Use component mode when encoding a single query value rather than a whole URL.
  4. Copy the result. Chinese characters are encoded as UTF-8 bytes, which is what modern browsers expect.
  1. 把 URL 或文本粘贴进输入框。
  2. 选「编码」做百分号转义,或选「解码」把 %XX 序列还原成字符。
  3. 只编码单个查询值时用组件模式;编码整条 URL 时用 URL 模式。
  4. 复制结果。中文按 UTF-8 字节编码,符合现代浏览器规范。

Common uses常见用途

FAQ常见问题

When should I encode a whole URL versus a single component?什么时候编码整条 URL,什么时候只编码单个组件?

Encode the whole URL when you need it to be safe inside another URL. Encode a single component when you are building a query value, so that & and = in your value are not mistaken for separators.

需要把一条 URL 安全地嵌进另一条 URL 时,编码整条;构造查询参数值时,只编码该值本身,避免值里的 & 和 = 被误认为分隔符。

Why does + sometimes mean a space?为什么 + 有时代表空格?

That is the application/x-www-form-urlencoded convention used by HTML forms, where + means a space. In a normal URL path, a space must be %20.

那是 HTML 表单使用的 application/x-www-form-urlencoded 约定,其中 + 表示空格;而在普通 URL 路径里,空格必须写成 %20。

Are Chinese characters supported?支持中文吗?

Yes. They are encoded as UTF-8 percent-escapes, which is the standard expected by browsers and servers.

支持。中文按 UTF-8 字节做百分号转义,这是浏览器和服务器的标准做法。

Is my URL uploaded anywhere?我的 URL 会被上传吗?

No. Encoding and decoding run entirely in your browser, so URLs containing tokens or private parameters stay private.

不会。编解码全部在浏览器本地完成,含令牌或私有参数的 URL 不会外泄。

Other tools其他工具

🧾

JSON FormatterJSON 格式化

Format, validate and minify JSON — Chinese-safe, runs in your br…

格式化、校验并压缩 JSON,支持中文与错误定位。全程在浏览器本地完成。…

🔤

Base64 Encode / DecodeBase64 编解码

Encode or decode Base64 text with UTF-8 and URL-safe support.…

对文本进行 Base64 编码或解码,支持 UTF-8 中文与 URL 安全字符…

#️⃣

Hash Generator哈希生成

Generate MD5, SHA-1, SHA-256 or SHA-512 hashes.…

用 MD5、SHA-1、SHA-256 或 SHA-512 为文本生成哈希值,常…

🆔

UUID GeneratorUUID 生成

Generate random UUID v4 identifiers.…

一键生成多个随机 UUID v4,用于主键、追踪 ID 与测试数据。…

🎫

JWT DecoderJWT 解码

Decode a JSON Web Token locally, no upload.…

在浏览器本地解码 JSON Web Token 的 Header 与 Paylo…

🔎

Regex Tester正则测试

Test regular expressions and see matches live.…

实时测试正则表达式,查看匹配数量与命中内容,方便调试抓取与替换规则。…

Sister sites友情链接 MonkeyDev dev tools hub工具总站 FreePDFKit PDF toolsPDF 工具集 ImageToolKit image tools图片工具集 AI 咒语库 AI prompt libraryAI 提示词库 CalcKit finance calculators财务计算器 OfficeKit office utilities办公工具箱 AIkit AI & machine learningAI 与机器学习 DataKit data & spreadsheet tools数据与表格工具 ChartKit diagrams & charts图表与可视化 DocKit markdown & document toolsMarkdown 与文档工具