AI & Computing

Binary to Decimal Converter (and Decimal to Binary)

Convert between binary and decimal in either direction.

Your numbers

Your results

Result
Result
—
Hexadecimal
—
Bits
—
Padded to bytes
—

Binary to Decimal Converter (and Decimal to Binary) by TheCalcTools

How the Binary to Decimal Converter (and Decimal to Binary) works

In binary, each position is a power of two: 1, 2, 4, 8, 16, 32 … from the right. Add the place values where there is a 1: 101101 = 32 + 8 + 4 + 1 = 45.

To go the other way, repeatedly divide by 2 and read the remainders from the last to the first.

The formula

Decimal = Σ bit × 2^position

Worked example

Using the default values shown in the calculator:

ConvertBinary to decimal
Binary number101101
Decimal number45
  1. 101101 = 32 + 8 + 4 + 1 = 45.

Result:

Result45
Hexadecimal2D
Bits0
Padded to bytes100101101

Frequently asked questions

What is the largest number in 8 bits?

11111111 = 255, so a byte holds 0 to 255.

Sources and further reading

More in AI & Computing · All calculators

This calculator gives estimates for information only. Check important results independently before you rely on them. See our disclaimer.