Skip to the tool
Binary Translator Free tools

Binary to decimal converter

A binary to decimal calculator that shows its work: type a binary number to get its decimal value, with every step.

Updated · Written and checked by Murugan Vellaichamy

Waiting for input

Prefixes 0b, 0o, 0x and spaces or underscores between digits are fine. A point starts the fraction.

Result
Try:

How to convert binary to decimal

Write the place value over each bit: 1 on the right, then 2, 4, 8, 16 and so on, doubling each time. Multiply each bit by its place value and add the results. Bits that are 0 add nothing, so you only need to add the place values of the 1s.

DigitPlace valueDigit × place value
125 = 3232
024 = 160
123 = 88
122 = 44
021 = 20
120 = 11

32 + 0 + 8 + 4 + 0 + 1 = 45, so 1011012 = 4510.

Binary to decimal table, 0 to 15

DecimalBinaryDecimalBinary
0000081000
1000191001
20010101010
30011111011
40100121100
50101131101
60110141110
70111151111

How it’s calculated

Conversions use exact whole-number arithmetic (JavaScript BigInt), so long numbers keep every digit. Fractions are kept as exact ratios; when the digits repeat, the repeating block is found and marked instead of rounded.

Questions

How do I convert a binary fraction?

Bits after the point are worth 1/2, 1/4, 1/8 and so on. 0.101 in binary is 1/2 + 1/8 = 0.625. Type the point into the converter and it handles the fraction exactly.

What about negative binary numbers?

Computers usually store them in two’s complement. Tick “Read as signed”, pick the width (8, 16, 32 or 64 bits) and 11101110 in 8 bits reads as −18.

Is there a size limit?

No practical one. The converter uses exact whole-number arithmetic, so a 200-bit number converts digit for digit.

More converters

Copied