URL 编码 / 解码
免费的 URL 编码器和解码器。对 URL 中的特殊字符进行百分比编码,或解码百分比编码的字符串。在您的浏览器中运行,无需注册。
Runs in your browserUpdated Apr 26, 2026
Plain Text
Encoded
⌘⇧C
常见问题
›What's the difference between encodeURI and encodeURIComponent?
encodeURIComponent escapes more characters (like / and ?), making it safe for query string values. We use it by default — the right choice for most cases.
›When do I need URL encoding?
Any time you put special characters (spaces, &, ?, #, accented letters) in a URL — query strings, path segments, fragments, anywhere.
›Are spaces encoded as %20 or +?
Both work. We use %20 by default (RFC 3986). + is only safe in query strings and is form-encoding, not URL-encoding.
›Is my input sent anywhere?
No — runs entirely in your browser.
›Is the tool free?
Yes — fully free, no signup.