🔍

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

🔤 UTF-16 转 UTF-8 文本Convert UTF-16 to UTF-8

把 UTF-16 码元(每个 4 位十六进制)解码成文本,支持大端/小端和 BOM。本地处理。Decode UTF-16 code units (4 hex digits each) into text, with big-endian/little-endian and BOM handling. Processed locally.

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

「UTF-16 转 UTF-8 文本」是什么?What is the Convert UTF-16 to UTF-8 tool?

把 UTF-16 码元(每个 4 位十六进制)解码成文本,支持大端/小端和 BOM。本地处理。Decode UTF-16 code units (4 hex digits each) into text, with big-endian/little-endian and BOM handling. Processed locally.

如何使用「UTF-16 转 UTF-8 文本」?How do I use the Convert UTF-16 to UTF-8 tool?

在「UTF-16 转 UTF-8 文本」中,把内容粘贴或输入到上方输入框,按需设置「字节序」,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「0048 0069」,得到「Hi」。In the Convert UTF-16 to UTF-8: Paste or type into the input box, adjust "Byte order"; the result appears below instantly — click "Copy result" to copy it. Example: "0048 0069" → "Hi".

表情等辅助平面字符怎么输入?How do I enter emoji and other characters outside the BMP?

按顺序输入一对代理码元:先高位代理(D800–DBFF),再低位代理(DC00–DFFF),例如 😀 = D83D DE00。单独出现的代理码元会报错并指出是第几个码元。Enter the surrogate pair in order: the high surrogate (D800–DBFF) first, then the low surrogate (DC00–DFFF). For example 😀 = D83D DE00. A surrogate on its own is an error that names its position.

大端、小端和 BOM 怎么处理?How are byte order and the BOM handled?

「自动」按开头的 BOM 判断:FEFF 是大端,FFFE 是小端,BOM 会被去掉;没有 BOM 时按大端读。也可以直接选大端或小端;小端时每个码元的两个字节会对调(如 4800 读作 0048)。Auto looks at a leading BOM: FEFF means big-endian and FFFE means little-endian, and the BOM is removed. Without a BOM the units are read as big-endian. You can also pick big-endian or little-endian; in little-endian the two bytes of each unit are swapped (4800 is read as 0048).

码元要怎么写?How do I write the units?

每个码元正好 4 位十六进制(大小写都可以,可加 0x 或 \u 前缀),用空格、逗号、分号或换行分隔。位数不对的码元会被原样引用并报错。Each unit is exactly 4 hex digits (any case, optionally with a 0x or \u prefix), separated by spaces, commas, semicolons or new lines. A unit with the wrong number of digits is quoted in the error.

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

例如在「UTF-16 转 UTF-8 文本」中输入 0048 0069,输出为:Hi。For example, the Convert UTF-16 to UTF-8 turns the input 0048 0069 into: Hi.

有哪些选项可以调整?What options can I adjust?

「UTF-16 转 UTF-8 文本」的设置:「字节序」可选 自动(看 BOM,无 BOM 按大端)、大端 BE、小端 LE(默认 自动(看 BOM,无 BOM 按大端))。每次生成结果都按当前设置处理。Settings in the Convert UTF-16 to UTF-8 — "Byte order": Auto (BOM, else big-endian), Big-endian (BE), Little-endian (LE) (default Auto (BOM, else big-endian)). The result always uses the current settings.

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

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

「UTF-16 转 UTF-8 文本」免费吗?需要注册吗?Is the Convert UTF-16 to UTF-8 free? Do I need an account?

「UTF-16 转 UTF-8 文本」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Convert UTF-16 to UTF-8 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

🔤 UTF-8 转 UTF-16Convert UTF-8 to UTF-16🔤 Unicode 转 UTF-16Convert Unicode to UTF-16🔤 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🔢 UTF-8 文本转码位Convert UTF-8 to Code Points🔗 UTF-8 转 Data URIConvert UTF-8 to Data URI🔟 UTF-8 转十进制字节Convert UTF-8 to Decimal8️⃣ UTF-8 转八进制字节Convert UTF-8 to Octal🔤 UTF-8 转 UTF-32Convert UTF-8 to UTF-32🎲 随机 UTF-8 文本Generate Random UTF-8🔓 UTF-8 URL 解码URL Decode UTF-8

← 全部工具All tools