Skip to the content

Binary to Decimal Converter

Type a binary number and read its decimal value. The working shows what every 1 and 0 counts for.

Type a binary number in the first field and read it in decimal in the second. It works the other way round as well. Whole numbers only; spaces, underscores and the prefixes 0b, 0o and 0x are fine.

Working

DigitPlace valueCounts for
13232
0160
188
144
020
111

32 + 8 + 4 + 1 = 45

Other bases

from 2 to 36
Bit length
6 bits
Fits in
1 byte
Share this tool:TwitterFacebookLinkedInWhatsAppEmail

How to convert binary to decimal by hand

Every place in a binary number is worth twice the place to its right. Counted from the right-hand end, the places are worth 1, 2, 4, 8, 16, 32 and so on.

Write those values above the digits and add up the ones that stand above a 1. A 0 adds nothing. For 101101 the places are worth 32, 16, 8, 4, 2 and 1, and four of them hold a 1: 32 + 8 + 4 + 1 = 45.

A second way needs no list of powers. Start with 0 and go through the digits from left to right, each time doubling what you have and adding the digit. For 101101 that runs 1, 2, 5, 11, 22, 45.

The working under the two fields at the top of the page does this for whatever number you type.

Good to know

  • The right-hand digit is worth 1, not 2. Starting the count at 2 is the most common slip, and it makes every answer twice too large.
  • A binary number that ends in 1 is odd, and one that ends in 0 is even.
  • A row of ones is one less than the next place value: 1111 is 15 and 11111111 is 255, the largest value of a byte.

Binary to decimal table

BinaryDecimal
00
11
102
113
1004
1015
1106
1117
10008
10019
101010
101111
110012
110113
111014
111115
1 000016
BinaryDecimal
1 010020
10 000032
11 001050
100 000064
110 0100100
111 1111127
1000 0000128
1100 1000200
1111 1111255
1 0000 0000256
1 1111 0100500
10 0000 0000512
11 1110 10001000
100 0000 00001024
1 0000 0000 00004096
1111 1111 1111 111165535

The number base converter shows binary, octal, decimal and hexadecimal next to each other, and explains positional notation and two's complement.

See all 9