Units
Converter Units

Binary to Decimal Converter

Base 2 to base 10, with each bit's contribution shown separately.

1010
10
hex A
1111
15
hex F
10000
16
hex 10
11111111
255
hex FF
100000000
256
hex 100
1100100
100
hex 64
111
7
hex 7
10101010
170
hex AA
1000000000
512
hex 200
Decimal  
 
Show the working
 

How the conversion works

Identical method to any other base, with 2 in place of 16. Each bit is multiplied by 2 raised to the power of its position, counting from zero at the right.

1010  =  1 × 23  +  0 × 22  +  1 × 21  +  0 × 20
      =  8 + 0 + 2 + 0  =  10

Because every position is a power of two, the useful ones are worth recognizing on sight: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024.

Powers of two reference

BinaryDecimalHexNote
1112^0
10222^1
100442^2
1000882^3
1000016102^4
10000032202^5
100000064402^6
10000000128802^7, one byte's high bit
11111111255FFlargest 8-bit unsigned value
1000000002561002^8
100000000001,0244002^10, one kibibyte in bytes
111111111111111165,535FFFFlargest 16-bit unsigned value

Signed values and two's complement

This tool reads input as unsigned, so 11111111 gives 255. In a signed 8-bit context the same bits mean minus 1, because signed integers use two's complement: the leftmost bit carries the sign, and negative values are stored as the complement of the positive value plus one.

If you are debugging something that shows a large positive number where you expected a small negative one, or the reverse, this is usually why.

Why 1024 keeps appearing

2 to the power 10 is 1,024, tantalisingly close to 1,000. Early computing borrowed the kilo prefix for it, and the ambiguity has never fully gone away. Storage manufacturers count in decimal, so a terabyte is a trillion bytes, while operating systems have historically divided by 1,024 at each step. That is why a 1 TB drive shows as roughly 931 GB. The common mistakes guide covers this in more detail.

Common questions

How do I convert binary to decimal?

Multiply each bit by 2 raised to the power of its position, counting from zero at the right, then add the results. For 1010: the bits are 1, 0, 1, 0 from the left, giving 8 plus 0 plus 2 plus 0, which is 10.

What is 11111111 in decimal?

255. That is the largest value eight bits can hold as an unsigned number, which is why a byte runs from 0 to 255.

Does this handle negative numbers?

No. This tool treats input as unsigned. Signed binary uses two's complement, where the leftmost bit indicates sign and the remaining bits are interpreted differently, so 11111111 would be minus 1 rather than 255 in an 8-bit signed context.

Why is 1024 significant?

It is 2 to the power 10, the closest power of two to 1,000. That near-miss is the root of the confusion between decimal and binary storage units, where a kilobyte may mean 1,000 bytes or 1,024 depending on who is counting.

Related converters and guides

Sources

About the author

Written and last reviewed August 2026 by Cedrick Reese. Conversion logic rechecked against the sources listed above on that date.

More about who builds these tools, how the numbers are sourced, and how to report an error: About Converter Units.