Skip to content

What is a binary number in decimal?

Turn a binary number such as 1010 or 11111111 into an ordinary decimal number.

In decimal

10

4 digits in base 2

The same number in other bases

In binary
1010
In octal
12
In hexadecimal
a

Turn a binary number such as 1010 or 11111111 into an ordinary decimal number.

How to use

  1. Type the binary number: only the digits 0 and 1.
  2. Leave the target on decimal.
  3. Read the decimal value; the other bases are listed below the result.

Binary to decimal

BinaryDecimal
11
102
1015
101010
111115
1000016
1100100100
11111111255
100000000256

Each extra digit doubles the range.

How it works

Binary place values double from the right: 1, 2, 4, 8, 16, 32 and so on. A digit 1 adds its place's value, a digit 0 adds nothing.

For 101101, the places holding a 1 are worth 32 + 8 + 4 + 1, which is 45.

Eight binary digits make a byte, so the biggest byte value is eight ones in a row: 255. That is why limits in computing are so often one less than a power of two.

There is a quicker way to do it by hand. Read the digits from the left, doubling the running total and adding the next digit. For 1011 that is 1, then 2, then 5, then 11. Leading zeros never change the value: 00101101 is the same as 101101, which is 45.

This page reads whole binary numbers as positive. Computers also use binary for negative numbers, in a form called two's complement, where the same pattern means a different value.

Worked example

What is the binary number 101101 in decimal?

  1. Add the value of each place that holds a 1, counting from the right.
  2. 32 + 8 + 4 + 1 = 45

101101 in binary is 45 in decimal.

Method

No outside data is used: the result is worked out directly from the formula explained under How it works.

Sources and methods

Frequently asked questions

What is 1000 in binary as a decimal number?

8. A 1 followed by three zeros is the fourth place from the right, worth 8.

How many values fit in 8 binary digits?

256, from 0 to 255.

Why do binary numbers get long so quickly?

Binary has only two digits, so each place carries little information. Hexadecimal groups four binary digits into one to keep numbers short.

Is 11111111 equal to 255 or to −1?

It depends on how it is read. As a plain unsigned number it is 255, which is what this converter shows. In a signed 8-bit number, two's complement, the same eight ones mean −1.

Send feedback