Binary to decimal
This converter converts the binary to decimal by default, enters the binary number, then clicks the Convert Now button, and you can also select other base numbers(8 10 16 32 36 58 64) for conversion. Decimal to binary
To base | Conversion result | Description |
10 | ||
Other conversions: | ||
8 | ||
16 | ||
26 | Lower case letters | |
32 | Does not contain ILOU characters | |
36 | Number + lowercase | |
52 | Uppercase letters + lowercase letters | |
58 | Does not contain 0OlI characters | |
62 | Number + lowercase + uppercase | |
64 |
The range of safe integers specified in js is -2^53~2^53, so the number conversion greater than 9007199254740991 may have accuracy problems.
Knowledge of converter
In mathematics and digital electronics, a binary number is a number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols: typically 0 (zero) and 1 (one).
The base-2 numeral system is a positional notation with a radix of 2. Each digit is referred to as a bit. Because of its straightforward implementation in digital electronic circuitry using logic gates, the binary system is used by almost all modern computers and computer-based devices.
How to convert binary to decimal
Example: calculate the decimal value of 100101
binary number 1 0 0 1 0 1 power of 2 25 24 23 22 21 20 Result: 1001012 = 1*25+0*24+0*23+1*22+0*21+1*20 = 3710
Binary number containing n digits(0 and 1):
dn-1 ... d3 d2 d1 d0decimal = dn-1×2n-1 + ... d2×22 + d1×21 + d0×20
Binary to decimal conversion table
Binary Number | Decimal Number |
---|---|
0 | 0 |
1 | 1 |
10 | 2 |
11 | 3 |
100 | 4 |
101 | 5 |
110 | 6 |
111 | 7 |
1000 | 8 |
1001 | 9 |
1010 | 10 |
1011 | 11 |
1100 | 12 |
1101 | 13 |
1110 | 14 |
1111 | 15 |
10000 | 16 |
10001 | 17 |
10010 | 18 |
10011 | 19 |
10100 | 20 |
10101 | 21 |
10110 | 22 |
10111 | 23 |
11000 | 24 |
11001 | 25 |
11010 | 26 |
11011 | 27 |
11100 | 28 |
11101 | 29 |
11110 | 30 |
11111 | 31 |
100000 | 32 |
1000000 | 64 |
10000000 | 128 |
100000000 | 256 |