编码与加密
URL 编码 / 解码
免费的 URL 编码器和解码器。对 URL 中的特殊字符进行百分比编码,或解码百分比编码的字符串。在您的浏览器中运行,无需注册。
Runs in your browser
编辑注
Understanding · Percent signs, with a purpose.
本深度章节目前仅有英文版本。上方的转换工具支持您的语言;长篇说明文章尚未翻译。
常见问题
Quick answers.
›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.
大家也在搜索
相关阅读
来自博客。(3)
Use with
What people reach for next.
相关工具