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

ASCII binary string conversion

The most common question when learning character encoding is "What does this character look like in binary?" Reverse restoration is also useful: if you get a string of 0/1 and see what character it corresponds to, you can often immediately determine whether the data is correct.

📌 8-bit writing of common characters

characterbinary
H01001000
i01101001
space00100000
newline00001010

⚙️ Actual splicing results

By concatenating the binary numbers of H and i into 0100100001101001, this page restores Hi, a total of 2 bytes, which is consistent with expectations.

🧭 Reverse query

When you need to convert text into binary, you can use the "Text to Binary" tool on the site; the two can be used together to complete a round-trip check to confirm that there is no problem with the tool and data.

📌 The idea of using binary check encoding

Use two tools to convert the same piece of text into binary and then compare it to confirm whether the encodings on both sides are consistent. The location where the difference occurs usually corresponds to the byte sequence of the character in that encoding.

📌 Compare with string length

Pure ASCII content has 8 bits per character, so the number of bits divided by 8 is the number of characters; when Chinese is included, the number of bits will be significantly more than the number of characters. Based on this, you can quickly determine whether a piece of binary contains multi-byte content. This rule is very practical when doing coding verification.

All keywords and tutorials 12

❓ FAQ

Binary difference between uppercase and lowercase letters
Only missing the 6th position (6th position from right to left). h is 01101000 and H is 01001000, so that bit is 0 in upper case and 1 in lower case.
Can I convert an entire paragraph of text at once?
Can. Just concatenate the binary strings corresponding to the entire text and paste them. The tool does not limit the length, and the result will be a complete restoration of the entire content.
Can numbers and symbols be restored?
Can. Numbers, punctuation, and symbols are all within this byte range. As long as the binary itself is correct, the restoration result will be completely consistent with the original text.