这个工具做什么?
| 直接答案 | URL编码根据RFC 3986对保留字符和非ASCII字节进行百分比编码。 |
| 关键事实 | 未保留字符(A-Z a-z 0-9 - _ . ~)永远不会被编码;其他所有字符都可能被编码。 |
| 处理 | 在您的浏览器中本地运行;不会将数据发送到服务器。 |
如何使用
- 将文本粘贴到输入框中。\n点击URL编码。\n复制编码后的字符串。
示例
输入
hello world & more/é
输出
hello%20world%20%26%20more%2F%C3%A9
Who is this for?
This tool was built for people who need a fast answer in the browser — no install, no account, no data leaving the device.
Developers verifying file checksums, DevOps engineers generating secrets, and security students learning encoding basics — all without uploading data to a server.
常见问题
与encodeURIComponent有什么区别?
没有区别 — 这个工具使用encodeURIComponent语义:所有保留字符包括 / ? & = 都会被编码。
为什么空格是%20而不是+?
+代表空格是application/x-www-form-urlencoded的约定;%20是一般URI形式。
它能处理Unicode吗?
是的 — 字符首先被UTF-8编码,然后每个字节都被百分比转义(é → %C3%A9)。