🔍

首页Home › 编码与加密Encoding & Crypto

🔗 Unicode URL 编码URL Encode Unicode

对文本做 encodeURIComponent(UTF-8 百分号编码)。本地处理。Percent-encode the text as UTF-8 with encodeURIComponent. Processed locally.

使用说明与常见问题How-to & FAQ

「Unicode URL 编码」是什么?What is the URL Encode Unicode tool?

对文本做 encodeURIComponent(UTF-8 百分号编码)。本地处理。Percent-encode the text as UTF-8 with encodeURIComponent. Processed locally.

如何使用「Unicode URL 编码」?How do I use the URL Encode Unicode tool?

在「Unicode URL 编码」中,把内容粘贴或输入到上方输入框,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「a b」,得到「a%20b」。In the URL Encode Unicode: Paste or type into the input box; the result appears below instantly — click "Copy result" to copy it. Example: "a b" → "a%20b".

哪些字符不编码?Which characters are left as they are?

和 JavaScript 的 encodeURIComponent 一样:A–Z a–z 0–9 和 - _ . ! ~ * ' ( ) 不编码,其余(包括 / ? & = 和空格)都编码,空格变成 %20(不是 +)。这和 Python 的 urllib.parse.quote 默认不同:quote 保留 /,但会编码 ! ' ( ) *。The same as JavaScript's encodeURIComponent: A–Z a–z 0–9 and - _ . ! ~ * ' ( ) are kept, and everything else, including / ? & = and spaces, is encoded, with a space becoming %20 rather than +. This differs from Python's urllib.parse.quote default, which keeps / but encodes ! ' ( ) *.

为什么提示孤立的代理码位?Why do I see a lone surrogate error?

文本里有半个 Emoji(UTF-16 代理对只剩一半),它不是有效字符,无法编码成 UTF-8。错误会指出是第几个字符,删掉它或补全那个 Emoji 即可。The text contains half of an emoji, one side of a UTF-16 surrogate pair, which is not a valid character and cannot be encoded as UTF-8. The error says which character it is; delete it or complete the emoji.

输入和输出是什么样的?What does the input and output look like?

例如在「Unicode URL 编码」中输入 a b,输出为:a%20b。For example, the URL Encode Unicode turns the input a b into: a%20b.

编码和加密有什么区别?Is encoding the same as encryption?

编码(如 Base64、URL 编码)可直接还原,不提供保密性;加密需要密钥。「Unicode URL 编码」的处理全部在本地完成。No. Encoding (Base64, URL…) is reversible by anyone; encryption needs a key. The URL Encode Unicode works fully offline in your browser.

「Unicode URL 编码」免费吗?需要注册吗?Is the URL Encode Unicode free? Do I need an account?

「Unicode URL 编码」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The URL Encode Unicode is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.

相关工具Related tools

#️⃣ Unicode 转十六进制Convert Unicode to Hex🧬 Unicode 转 Base64Convert Unicode to Base64🔢 任意进制转 UTF-8 文本Convert Arbitrary Base to UTF-8🧬 Base64 转 UTF-8 文本Convert Base64 to UTF-8🔤 码位转 UTF-8 字节Convert Code Points to UTF-8🔗 Data URI 转 UTF-8 文本Convert Data URI to UTF-8🔟 十进制字节转 UTF-8Convert Decimal to UTF-88️⃣ 八进制字节转 UTF-8Convert Octal to UTF-8🔤 UTF-16 转 UTF-8 文本Convert UTF-16 to UTF-8🔤 UTF-32 转 UTF-8 文本Convert UTF-32 to UTF-8🔢 UTF-8 转任意进制Convert UTF-8 to Arbitrary Base🧬 UTF-8 转 Base64Convert UTF-8 to Base64

← 全部工具All tools