🔍

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

🔡 二进制转 UTF-8 文本(解码二进制字节)Convert Binary to UTF-8

把二进制字节解码成 UTF-8 文本:每 8 位一个字节,可用空格、逗号或换行分隔,也可以连在一起;中文、表情等多字节字符都能正确还原。遇到无效的 UTF-8 字节时,会指出是第几个字节,或者按你的选择替换成 �。适合解 CTF 题、检查编码问题和学习 UTF-8 的字节结构,数据在本地处理。Decode binary bytes into UTF-8 text. Each byte is 8 bits; separate bytes with spaces, commas or new lines, or run them together. Chinese, emoji and other multi-byte characters are restored correctly. When a byte sequence is not valid UTF-8 the tool tells you which byte, or replaces it with � if you prefer. Handy for CTF puzzles, tracking down encoding problems and learning how UTF-8 bytes are built. Processed locally.

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

「二进制转 UTF-8 文本(解码二进制字节)」是什么?What is the Convert Binary to UTF-8 tool?

把二进制字节解码成 UTF-8 文本:每 8 位一个字节,可用空格、逗号或换行分隔,也可以连在一起;中文、表情等多字节字符都能正确还原。遇到无效的 UTF-8 字节时,会指出是第几个字节,或者按你的选择替换成 �。适合解 CTF 题、检查编码问题和学习 UTF-8 的字节结构,数据在本地处理。Decode binary bytes into UTF-8 text. Each byte is 8 bits; separate bytes with spaces, commas or new lines, or run them together. Chinese, emoji and other multi-byte characters are restored correctly. When a byte sequence is not valid UTF-8 the tool tells you which byte, or replaces it with � if you prefer. Handy for CTF puzzles, tracking down encoding problems and learning how UTF-8 bytes are built. Processed locally.

如何使用「二进制转 UTF-8 文本(解码二进制字节)」?How do I use the Convert Binary to UTF-8 tool?

在「二进制转 UTF-8 文本(解码二进制字节)」中,把内容粘贴或输入到上方输入框,按需设置「遇到无效字节」,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「01001000 01101001」,得到「Hi」。In the Convert Binary to UTF-8: Paste or type into the input box, adjust "Invalid bytes"; the result appears below instantly — click "Copy result" to copy it. Example: "01001000 01101001" → "Hi".

字节之间要怎么分隔?How should the bytes be separated?

用空格、逗号、分号或换行分隔时,每个字节可以是 1–8 位(不足 8 位按左边补 0 理解,例如 1001000 = 01001000);如果全部连在一起,总位数必须是 8 的倍数,每 8 位算一个字节。With spaces, commas, semicolons or new lines between bytes, each byte may be 1–8 bits (short ones are read with leading zeros, so 1001000 = 01001000). If everything is run together the total must be a multiple of 8 and every 8 bits is one byte.

UTF-8 的字节结构是怎样的?How are UTF-8 bytes structured?

ASCII 字符是一个 0xxxxxxx 字节;其他字符用 2–4 个字节:首字节以 110、1110 或 11110 开头,表示总字节数,后面的字节都以 10 开头。例如“中”是 11100100 10111000 10101101。不符合这个结构的字节就是无效 UTF-8。An ASCII character is one 0xxxxxxx byte. Other characters take 2–4 bytes: the first starts with 110, 1110 or 11110 (giving the length) and every following byte starts with 10. The Chinese character for 'middle' (U+4E2D) is 11100100 10111000 10101101. Bytes that break this pattern are invalid UTF-8.

提示“不是有效的 UTF-8”怎么办?What if it says the bytes are not valid UTF-8?

检查提示里指出的那个字节:常见原因是少了一位或多了一位、复制时丢了最后几个字节,或者数据本来就不是 UTF-8(例如 GBK 或纯二进制数据)。如果只想先看看内容,可以把“遇到无效字节”改为“替换为 �”。Look at the byte it points to. Common causes are a missing or extra bit, the last bytes lost while copying, or data that was never UTF-8 (GBK or raw binary, say). To see the rest of the text anyway, set Invalid bytes to Replace with �.

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

例如在「二进制转 UTF-8 文本(解码二进制字节)」中输入 01001000 01101001,输出为:Hi(⏎ 表示换行)。For example, the Convert Binary to UTF-8 turns the input 01001000 01101001 into: Hi (⏎ marks a line break).

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

「二进制转 UTF-8 文本(解码二进制字节)」的设置:「遇到无效字节」可选 报错并指出位置、替换为 �(默认 报错并指出位置)。改动任一选项后结果会按新设置重新生成。Settings in the Convert Binary to UTF-8 — "Invalid bytes": Show an error, Replace with � (default Show an error). Changing any option regenerates the result with the new setting.

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

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

「二进制转 UTF-8 文本(解码二进制字节)」免费吗?需要注册吗?Is the Convert Binary to UTF-8 free? Do I need an account?

「二进制转 UTF-8 文本(解码二进制字节)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Convert Binary 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-8 字节)Convert UTF-8 to Binary0️⃣ 文本二进制转换Text to Binary Converter🎲 随机二进制数生成器(指定位数、不重复、可设种子)Generate Random Binary Values🖼️ 二进制转图片(0 和 1 画成像素图)Convert Binary to Image🧬 Unicode 转 Base64Convert Unicode to Base6401 Unicode 转二进制Convert Unicode to Binary#️⃣ Unicode 转十六进制Convert Unicode to Hex8️⃣ Unicode 转八进制Convert Unicode to Octal🔤 Unicode 转 UTF-16Convert Unicode to UTF-16🔗 Unicode 转 Data URLConvert Unicode to Data URL🔤 Unicode 转 UTF-32Convert Unicode to UTF-32🔗 Unicode URL 编码URL Encode Unicode

← 全部工具All tools