在线 URL 编码解码 — 免费 Percent-Encoding 转换

免费 URL 编解码器。将特殊字符转换为 %XX 用于查询字符串,或解码回可读文本。

粘贴 URL 或查询参数。"编码"转义特殊字符(空格 → %20 等),"解码"反向。

常见用例

常见问题

What's the difference between encodeURI and encodeURIComponent?+

This tool uses encodeURIComponent — it escapes every special character. encodeURI is more conservative (leaves slashes, &, =, etc.) and is meant for whole URLs, not for query parameter values.

Why didn't a + sign get decoded to space?+

Strict percent-encoding uses %20 for space, not +. The + → space mapping is application/x-www-form-urlencoded, an older form-encoding scheme used by HTML forms.

Is it safe to put credentials in a URL after encoding?+

No. Encoded or not, URL parameters appear in server logs, browser history and referrer headers. Use POST bodies or Authorization headers for credentials.

工具

安全提示

正在使用默认密码?使用 NordVPN 加密保护您的网络。