首页Home › 编码与加密Encoding & Crypto
🔠 UTF-8 文本转二进制(查看 UTF-8 字节)Convert UTF-8 to Binary
把文本按 UTF-8 编码转换成二进制字节:中文、表情等多字节字符会显示为 2–4 个字节。可以按字节用空格分隔、全部连在一起,或者每个字符一行(显示字符、码点和它的字节),还能用 | 标出 UTF-8 的前缀位,直观看到 110xxxxx / 10xxxxxx 的结构。适合学习 UTF-8 编码原理、排查乱码和解 CTF 题,数据在本地处理。Convert text into its UTF-8 bytes in binary. Chinese, emoji and other multi-byte characters show as 2–4 bytes. Separate bytes with spaces, run them together, or list one character per line with its code point and bytes, and optionally mark the UTF-8 prefix bits with | to see the 110xxxxx / 10xxxxxx structure. Handy for learning how UTF-8 works, debugging mojibake and CTF puzzles. Processed locally.
使用说明与常见问题How-to & FAQ
「UTF-8 文本转二进制(查看 UTF-8 字节)」是什么?What is the Convert UTF-8 to Binary tool?
把文本按 UTF-8 编码转换成二进制字节:中文、表情等多字节字符会显示为 2–4 个字节。可以按字节用空格分隔、全部连在一起,或者每个字符一行(显示字符、码点和它的字节),还能用 | 标出 UTF-8 的前缀位,直观看到 110xxxxx / 10xxxxxx 的结构。适合学习 UTF-8 编码原理、排查乱码和解 CTF 题,数据在本地处理。Convert text into its UTF-8 bytes in binary. Chinese, emoji and other multi-byte characters show as 2–4 bytes. Separate bytes with spaces, run them together, or list one character per line with its code point and bytes, and optionally mark the UTF-8 prefix bits with | to see the 110xxxxx / 10xxxxxx structure. Handy for learning how UTF-8 works, debugging mojibake and CTF puzzles. Processed locally.
如何使用「UTF-8 文本转二进制(查看 UTF-8 字节)」?How do I use the Convert UTF-8 to Binary tool?
在「UTF-8 文本转二进制(查看 UTF-8 字节)」中,把内容粘贴或输入到上方输入框,按需设置「格式」,结果会实时显示在下方,点击「复制结果」即可复制。例如输入「Hi」,得到「01001000 01101001」。In the Convert UTF-8 to Binary: Paste or type into the input box, adjust "Format"; the result appears below instantly — click "Copy result" to copy it. Example: "Hi" → "01001000 01101001".
为什么一个汉字有 3 个字节?Why is a Chinese character 3 bytes?
UTF-8 是变长编码:ASCII 字符(英文、数字)1 个字节,大多数带重音的字母和希腊文等 2 个字节,常用汉字 3 个字节,表情和生僻字 4 个字节。所以“中”是 11100100 10111000 10101101。UTF-8 is variable-length: ASCII (English letters, digits) takes 1 byte, most accented letters and Greek take 2, common Chinese characters take 3, and emoji and rare characters take 4. That's why U+4E2D, the character for 'middle', is 11100100 10111000 10101101.
“标出前缀位”是什么意思?What does marking the prefix bits do?
每个字节开头的几位是 UTF-8 的结构标记:0 表示单字节字符,110 / 1110 / 11110 表示 2 / 3 / 4 字节字符的首字节,10 表示后续字节。勾选后会用 | 把这些标记位和真正存放码点的位分开,例如 é 显示为 110|00011 10|101001。可以同时勾选「加 0b 前缀」,结果会变成 0b110|00011 0b10|101001。The first bits of every byte are UTF-8's structure markers: 0 for a one-byte character, 110 / 1110 / 11110 for the first byte of a 2 / 3 / 4-byte character, and 10 for continuation bytes. Ticking the option puts a | between those markers and the bits that hold the code point, so é shows as 110|00011 10|101001. You can also tick Add 0b prefix at the same time; the result becomes 0b110|00011 0b10|101001.
和“文本转二进制”有什么区别?How is this different from Text to Binary?
这个工具专门展示 UTF-8 字节:可以逐个字符列出码点和字节,并标出 UTF-8 的前缀结构;要把二进制还原成文字,请用“二进制转 UTF-8”。This tool focuses on UTF-8 bytes: it can list each character with its code point and bytes and mark the UTF-8 prefix structure. To turn binary back into text, use Convert Binary to UTF-8.
编码和加密有什么区别?Is encoding the same as encryption?
编码(如 Base64、URL 编码)可直接还原,不提供保密性;加密需要密钥。「UTF-8 文本转二进制(查看 UTF-8 字节)」的处理全部在本地完成。No. Encoding (Base64, URL…) is reversible by anyone; encryption needs a key. The Convert UTF-8 to Binary works fully offline in your browser.
「UTF-8 文本转二进制(查看 UTF-8 字节)」免费吗?需要注册吗?Is the Convert UTF-8 to Binary free? Do I need an account?
「UTF-8 文本转二进制(查看 UTF-8 字节)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Convert UTF-8 to Binary is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.