Hongmu Notes

🗄️ Convert string to binary

Enter a piece of text and get a binary string of 8 bits each.

Convert string to binary

Instructions for use

  • Encoded according to UTF-8: 1 byte for English numbers, 3 bytes for Chinese characters, 4 bytes for emoticons
  • Output a continuous 8-digit fixed-length string, which can be restored by pasting it back into "Binary to String"
  • All is done locally in the browser, and the input content will not be uploaded.

UTF-8 binary encoding

"Encoding" is different from "encryption": encoding just converts characters into bytes, and anyone who knows the rules can restore it. Once you understand this, converting text to binary is no longer a mystery.

📌 Encoding is reversible

The UTF-8 bytes of the same text are deterministic, and therefore the binary result is deterministic; handing it to a decoding tool will give you the original text, without any keys or passwords involved.

⚙️ Differences from encryption tools

  • Encoding: anyone can restore it, this page and "Binary to String" belong to this pair
  • Encryption: A key is required. There are also tools such as AES and DES on the site.
  • Hash: cannot be restored, there are SHA series tools on the site

🧭 Suitable usage scenarios

Explain encoding rules to colleagues, prepare examples for protocol documents, check whether the byte representation between two systems is consistent, and use this page to convert once to get the accurate byte sequence.

📌 Why is the encoding result certain?

The UTF-8 bytes of the same piece of text are unique, and therefore the binary representation is also unique. The inconsistent results of the two conversions can only be due to differences in input (extra spaces, changed characters), rather than tool instability.

All keywords and tutorials 12

❓ FAQ

What should I do if the result is different from what others gave me?
First confirm whether the other party's input is exactly the same (including spaces and newlines), and then check whether the other party uses UTF-8. Pure English must be the same, and the difference usually lies in non-ASCII characters.
Can it be reversed to restore binary to text?
Yes, just use the "Binary to String" tool on the site. This page is only responsible for the text-to-binary direction, and the two tools are reverse directions of each other.
Is there any Chinese in the results?
No. The result is only 0 and 1, without any other characters; if you need a readable form, please use the other direction "binary to string" to restore.