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

Convert continuous binary to text

The binary data obtained from the program or log is often a long series of 0s and 1s, without spaces or line breaks. Fixed-length segmentation just solves this type of input, without having to manually group it first.

📌 Differences from space-separated format

FormatExample
Continuous fixed length (this page)0100100001101001
Space separated lengthening1001000 1101001

⚙️ Why can't they be mixed?

If you give a continuous fixed-length string to a "space-delimited" tool, it will be parsed as a very long code group and you will get a completely wrong character. Identifying the input format is the most important step before conversion.

🧭 Long list of processing experiences

Strings of several thousand digits can be converted at one time, and the results are displayed in a fixed-width font for easy verification segment by segment; when processing extremely long data, it is recommended to verify the beginning and end in segments, and then convert the entire data after confirmation.

📌 Tips for format recognition

Count the length: if it is a multiple of 8 and has no delimiters, it can basically be determined to be a fixed-length format; if the length of each segment floats between 7 and 8 bits, it is a variable-length code group and you should use another tool.

All keywords and tutorials 12

❓ FAQ

How to determine which format your binary belongs to
Check whether there are spaces: if there are spaces and the length of each paragraph is not fixed, it belongs to the space-delimited format; if it is connected into one piece and the length is a multiple of 8, it belongs to the fixed-length format processed on this page.
Is it easy to make mistakes when there are many digits?
The tool divides according to a fixed step size, so there will be no errors due to string length; the real error-prone thing is missing a section when copying, so the digit check can help you find it in advance.
Is there an upper limit to the length of consecutive binary bits?
There is no hard cap. Thousands of digits can be processed instantly, but it mainly takes time to display long results in the browser; extremely long text is recommended to be segmented and then spliced.