首页Home › 编码与加密Encoding & Crypto
🔡 Escape / Unescape 编码JS escape / unescape
JavaScript escape() / unescape() 编码解码工具:U+00FF 以上的字符输出 %uXXXX,其余非安全字符输出 %XX,适合老代码兼容。Encode and decode with JavaScript escape()/unescape(): characters above U+00FF become %uXXXX, other unsafe characters %XX.
使用说明与常见问题How-to & FAQ
「Escape / Unescape 编码」是什么?What is the JS escape / unescape tool?
JavaScript escape() / unescape() 编码解码工具:U+00FF 以上的字符输出 %uXXXX,其余非安全字符输出 %XX,适合老代码兼容。Encode and decode with JavaScript escape()/unescape(): characters above U+00FF become %uXXXX, other unsafe characters %XX.
如何使用「Escape / Unescape 编码」?How do I use the JS escape / unescape tool?
在「Escape / Unescape 编码」中,把内容粘贴或输入到上方输入框,按需设置「操作」,结果会实时显示在下方,点击「复制结果」即可复制。In the JS escape / unescape: Paste or type into the input box, adjust "Action"; the result appears below instantly — click "Copy result" to copy it.
escape 和 encodeURIComponent 有什么区别?escape vs encodeURIComponent?
escape() 对 U+00FF 以上的字符用 %uXXXX、对其余非安全字符用 %XX(如 é → %E9),已不推荐用于 URL;现代代码请用 encodeURIComponent。此工具用于兼容老系统。escape() uses %uXXXX for characters above U+00FF and %XX for other unsafe characters (é → %E9), and is deprecated for URLs; use encodeURIComponent in modern code. This tool is for legacy compatibility.
编码和加密有什么区别?Is encoding the same as encryption?
编码(如 Base64、URL 编码)可直接还原,不提供保密性;加密需要密钥。「Escape / Unescape 编码」的处理全部在本地完成。No. Encoding (Base64, URL…) is reversible by anyone; encryption needs a key. The JS escape / unescape works fully offline in your browser.
「Escape / Unescape 编码」免费吗?需要注册吗?Is the JS escape / unescape free? Do I need an account?
「Escape / Unescape 编码」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The JS escape / unescape is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.