URL 编码 / 解码 在线工具

Free 免费 · 无需注册 · 数据不上传
Error
PLAIN TEXT
ENCODED
// output

更多开发工具

Base64
编码/解码
正则表达式
实时测试
哈希生成器
MD5/SHA-256
JWT 解码
查看令牌
HMAC 生成器
HMAC-SHA256
时间戳
Unix ↔ 日期
二维码
生成二维码
JSON 格式化
格式化、验证与压缩

为什么这是最好的 URL 编码/解码工具

百分号编码

Encode special characters in URLs using percent-encoding (e.g. space becomes %20). Essential for building valid HTTP requests.

Full URL & Component Modes

Choose between encoding a full URL (preserving slashes and colons) or encoding a URL component (encodes everything except unreserved chars).

即时解码

Paste any percent-encoded URL string and decode it back to human-readable form instantly.

Copy & Paste Ready

One-click copy of encoded or decoded output for immediate use in code, curl commands, or API testing.

常见问题

What is URL encoding?

URL encoding converts special characters into a percent-encoded format (e.g. space → %20, & → %26) so they can be safely transmitted in URLs without breaking their structure.

When should I URL-encode a string?

Encode query parameter values, form data, and path segments before including them in a URL. For example, if a username contains an @ symbol, it must be encoded as %40.

What is the difference between encodeURI and encodeURIComponent?

encodeURI preserves characters like / : ? & = that have special meaning in URLs. encodeURIComponent encodes everything except letters, digits, and - _ . ~ — use it for individual parameter values.

深度指南
开发者必备工具指南
正则、Cron、时间戳、URL 等
阅读指南