Convert one binary number to an exact decimal value. For a list of bytes, paste complete 8-bit groups separated by spaces, line breaks, or commas.
→
Runs locally
6 charactersOne integer or complete 8-bit groups
Ready
Exact integer resultBase 10
Tip: separate complete 8-bit bytes with spaces or commas.
Your data stays in your browser Free. No sign-up. Exact integer conversion
01 / EXPLAINED SIMPLY
How to convert binary to decimal by hand
Start with a place value of 1 at the rightmost bit. Each position to the left doubles the value. Add the place values where the bit is 1.
In 1101, the place values are 8, 4, 2, and 1. The first, second, and last bits are on, so 8 + 4 + 1 = 13.
Powers of two in one byte
Powers of two in one 8-bit byte
Bit position from the right
Power of two
Decimal value
7
27
128
6
26
64
5
25
32
4
24
16
3
23
8
2
22
4
1
21
2
0
20
1
02 / CONVERSION EXAMPLES
Convert one number or read decimal bytes
A continuous sequence is interpreted as one integer. If you separate the input, each group must contain exactly eight bits. The converter reads each byte independently and returns the decimal values in the same order.
Binary to decimal examples for single integers and 8-bit byte lists
Binary input
Decimal result
How the input is read
1101
13
One integer
01001000 01101001
72 105
Two independent bytes
0100100001101001
18537
One continuous integer
11111111, 00000000
255 0
Two independent bytes
Use Binary to Text to read 01001000 01101001 as the letters Hi. Use Decimal to Binary to convert an integer in the other direction.
GOOD QUESTIONS
Before you convert.
A few useful details for this tool.
How do I convert a binary number to decimal?+
Add the powers of two represented by the 1 bits. In 101010, the 32, 8, and 2 positions are on, so the decimal value is 42.
Can I enter multiple 8-bit groups?+
Yes. Separate complete 8-bit bytes with whitespace or commas. For example, 01001000 01101001 produces 72 105 in the same order.
Can I convert negative binary numbers?+
Yes. Enter a single integer with a leading minus sign. For example, -0b1101 converts to -13. Separated bytes are read as values from 0 to 255.
When can I use Swap?+
Swap reverses a conversion of a single integer. For a list of bytes, use Copy or Download to keep the decimal values in order.