Hongmu Notes

💾 Binary to string

Paste the continuous 8-digit binary string and restore it to text with one click.

Binary to string

Instructions for use

  • Every 8 bits correspond to a byte, and the number of bits must be a multiple of 8
  • Can contain spaces and line breaks. After pasting, the spaces will be automatically removed and then split.
  • Decode the byte sequence according to UTF-8, and both English numbers and Chinese can be restored

8-bit binary to string conversion

Continuously written binary strings are common in coding, protocols, and embedded debugging: exactly one byte for every 8 bits. The tool segments and decodes text into 8-bit text. If there are insufficient bits or illegal characters are mixed in, the problem will be pointed out directly.

📌 Input and segmentation rules

  • Each group of 8 bits must be a multiple of 8
  • Can contain spaces and line breaks. After pasting, the spaces will be automatically removed and then split.
  • Actual measurement: 0100100001101001 to get Hi, a total of 2 bytes

⚙️ Actual measurement comparison

binary stringresult
01010111011001010110110001100011011011110110110101100101Welcome
111001001011100010101101Chinese character "中"

🧭 How to read error messages

When illegal characters are mixed in, it will prompt "The Nth bit contains characters other than 0 and 1"; when there are not enough digits, it will prompt "The number of digits is not a multiple of 8, and there are still N digits missing." Follow the prompts to complete or correct it.

📌 Why use 8 bits instead of bytes

There's no way to directly tell how many bytes there are when pasting a binary, but it's easy to count the number of bits. The tool uses the rule "the number of digits must be a multiple of 8" to complete format verification and length verification at the same time, making the judgment simple and more reliable.

📌 Copy results and secondary verification

The conversion result is placed in a read-only box, and you can click once to copy it. If the result is not as expected, check the number of binary digits and source first instead of adjusting the input format and trying again. When checking, restore the first and last two segments of bytes separately, and you can often immediately locate whether the problem occurs at the beginning or at the end.

All keywords and tutorials 12

❓ FAQ

What is the difference between 8-bit and 7-bit binary?
Standard ASCII uses 7 bits to represent alphanumeric characters, but storage and transmission are usually aligned to 8 bits, with the highest bit padded with 0s. Therefore, 8-bit segmentation is compatible with both writing methods, and no additional settings are required.
Can it still be used if there are spaces when pasting?
Can. The tool removes all whitespace before segmenting, so segmented binaries copied from documentation, code, or chat windows can be used directly.
Why do we need to group 8 bits?
8 bits is exactly one byte, and converting a binary string to a character is the process of "byte sequence decoding". If the number of digits is not a multiple of 8, the string is incomplete, and forced decoding will result in misplaced characters.