在线 URL 编码解码 — 免费 Percent-Encoding 转换
免费 URL 编解码器。将特殊字符转换为 %XX 用于查询字符串,或解码回可读文本。
粘贴 URL 或查询参数。"编码"转义特殊字符(空格 → %20 等),"解码"反向。
常见用例
- 1Safely embed search queries, dates and special characters in GET URLs.
- 2Debug malformed link previews where percent-encoding got double-applied.
- 3Clean campaign URLs that broke after a CMS auto-encoded an already-encoded URL.
常见问题
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.