Hongmu Notes

⏬ Binary to decimal conversion

Input a binary string containing only 0 and 1, and get the decimal value instantly, with no limit on the number of digits and no loss of precision.

Binary to decimal conversion

Paste a binary string containing only 0 and 1 in the input box below, and the result will be displayed immediately; spaces and newlines will be automatically ignored.

Instructions for use

  • The input only accepts 0 and 1. For other characters, the error will be prompted at which position and no error value will be given.
  • There is no limit to the number of digits. Convert large integers digit by digit. Even long 0/1 strings will not lose accuracy.
  • The result box is read-only. Click "Copy Results" to remove it. You can also press and hold on your mobile phone to select all and copy them.

binary translation

When "translation" is used in base, it means changing to another way of writing, rather than changing to another language. In the eyes of the machine, 0 and 1 are translated into a familiar form to humans as a decimal value; this step occurs repeatedly when adjusting parameters, checking manuals, and reading permissions.

📌 The difference between translation and decoding

Translating the base only changes the way the numbers are written, and the value itself remains unchanged; decoding characters splits the bit string according to a fixed width and maps it to the character table. The former result is a number, the latter result is a text. Most people who search for "binary translation" want the former.

⚙️ Break down the conversion process

  • List the weight of each bit: from right to left: 1, 2, 4, 8, 16, 32...
  • Only bits with a value of 1 are accumulated, bits with a value of 0 are skipped directly
  • The cumulative result is written in decimal notation. No matter how many digits there are, more terms will be added.

✅ a complete example

Take 1100100 as an example: the position with a bit value of 1 corresponds to 64, 32, and 4, and adding the three items together gives 100. This number happens to be a hundred in decimal, which means there is no problem with the input; if it is calculated to be 99 or 101, it is probably because a certain item is misplaced, and you can check it bit by bit against the weight table.

All keywords and tutorials 12

❓ FAQ

What is 1100100 equal to
equals 100. When expanded, it is the sum of 64 plus 32 plus 4. This is also a series of examples suitable for practicing palms. It has few digits and neat values, making it easy to remember.
Can the translation result retain leading zeros?
The result does not preserve leading zeros because leading zeros do not change the numerical magnitude. If you need to display it under a fixed bit width, please manually left-pad zeros according to the bit width after getting the result. The tool does not perform bit width padding.
Why hexadecimal conversion is often called translation
Rewriting one base system into another is often referred to as translation or conversion in spoken language. What the tool does is to sum up bit by bit and convert the 0/1 string into decimal notation.