Binary to Decimal Converter
Convert binary numbers to decimal instantly. Supports very long numbers, negative values, 0b prefixes, spaces and underscores.
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the Binary to Decimal Converter
- 1 Type or paste the binary number.
- 2 The decimal value appears immediately.
- 3 Copy the result.
About the Binary to Decimal Converter
Each position in a binary number is worth a power of two, from 1 on the right to 2, 4, 8, 16 and so on to the left. Add up the values of the positions with a 1 to get the decimal number: 1101 is 8 + 4 + 1 = 13.
The converter uses exact big-number arithmetic, so long binary strings such as 64- or 128-bit values are converted exactly, without the rounding that a normal calculator or spreadsheet would apply.
You may write the number with a 0b prefix (0b1010), with spaces or underscores between groups of bits (1111 0000), and with a minus sign. Any other digit than 0 or 1 gives a clear error.
Frequently asked questions
What is 11111111 in decimal?
255, the largest number that fits in one byte.
How do I convert binary to decimal by hand?
Write the powers of two above the digits from right to left (1, 2, 4, 8…) and add up those with a 1 below them.
Is the binary read as signed (two’s complement)?
No, as an unsigned number. Put a minus sign in front for negative values.
Can I paste bits with spaces?
Yes. Spaces and underscores between digits are ignored.