Binary to decimal
Convert binary numbers of any length to decimal, with hex and octal shown too, exactly and as you type.
Set up for this job. It runs on Number base converter, where every option is there to change.
Questions
How does binary to decimal work?
Each digit is a power of 2, counted from the right: 1, 2, 4, 8 and so on. Add up the powers where the digit is 1. 101010 is 32 + 8 + 2 = 42.
Is there a length limit?
No practical one. Numbers are handled as BigInt, so very long binary strings convert exactly instead of being rounded.
Does it handle negative numbers?
A leading minus sign is kept. Two's complement bit patterns are read as plain positive numbers.