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 baseConversion resultDescription
10
Other conversions:
8
16
26Lower case letters
32Does not contain ILOU characters
36Number + lowercase
52Uppercase letters + lowercase letters
58Does not contain 0OlI characters
62Number + 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

  1. Example: calculate the decimal value of 100101

    binary number100101
    power of 2252423222120

    Result: 1001012 = 1*25+0*24+0*23+1*22+0*21+1*20 = 3710

  2. Binary number containing n digits(0 and 1):
    dn-1 ... d3 d2 d1 d0

    decimal = dn-1×2n-1 + ... d2×22 + d1×21 + d0×20

Binary to decimal conversion table

Binary NumberDecimal Number
00
11
102
113
1004
1015
1106
1117
10008
10019
101010
101111
110012
110113
111014
111115
1000016
1000117
1001018
1001119
1010020
1010121
1011022
1011123
1100024
1100125
1101026
1101127
1110028
1110129
1111030
1111131
10000032
100000064
10000000128
100000000256