Binary to Decimal Converter
Convert numbers easily between Binary (Base 2), Decimal (Base 10), Hexadecimal (Base 16), and Octal (Base 8). Features real-time multi-base synchronization, 4-bit nibble formatting, and step-by-step powers-of-2 mathematical proofs.
Synchronous Multi-Base Inputs
Step-by-Step Binary to Decimal Bit Expansion Proof
How to Convert Binary to Decimal
To convert a binary number to decimal, multiply each binary digit (0 or 1) by 2 raised to the power of its position index (counting from 0 on the far right), then add all the products together. For example, binary 1101 = (1 × 8) + (1 × 4) + (0 × 2) + (1 × 1) = 13 in decimal.
What Is Binary and How Does It Work?
In everyday life, humans count in decimal (Base 10), likely because we have ten fingers. Decimal uses ten digits (0 through 9). Once we count past 9, we add another digit column: tens, hundreds, thousands, and beyond.
Computers do not have ten fingers. Instead, their processors are built from billions of tiny electronic switches called transistors. A transistor can only be in one of two physical states: OFF (0) or ON (1). Because of this, computers use the binary (Base 2) number system.
Computer hardware & bits
Unix file permissions
Everyday human counting
Web hex colors & memory
- Bit: A single binary digit (a 0 or a 1). It is the smallest unit of digital data.
- Nibble: A group of 4 bits (e.g. 1010). Exactly one hexadecimal character.
- Byte: A group of 8 bits (e.g. 11110000). Can represent 256 distinct values (0 to 255).
The Binary Place Value Chart (Powers of 2)
The easiest way to understand binary is to use a Place Value Chart. In decimal, each column to the left is multiplied by 10 (1, 10, 100, 1000). In binary, each column to the left is doubled (multiplied by 2):
| Power of 2 | 2⁷ | 2⁶ | 2⁵ | 2⁴ | 2³ | 2² | 2¹ | 2⁰ |
|---|---|---|---|---|---|---|---|---|
| Place Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| Example Bit | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 |
| Value to Add | 128 | 64 | 0 | 16 | 0 | 4 | 2 | 0 |
If a column has a 1, keep its place value. If it has a 0, cross it out. Then simply add up all the numbers you kept: 128 + 64 + 16 + 4 + 2 = 214!
How to Convert Binary to Decimal (Step-by-Step)
Here is the foolproof 3-step process to convert any binary number to decimal:
Write out powers of 2 from right to left
Start on the far right with 1 (which is 2⁰), then double the value as you move left: 1, 2, 4, 8, 16, 32, 64, 128... Write down as many values as there are digits in your binary number.
Write your binary digits underneath
Align each digit of your binary number directly underneath its corresponding power of 2.
Add up the numbers with a 1
Multiply each power of 2 by the digit below it (0 or 1). In practice, this just means adding together only the powers of 2 that have a 1 beneath them.
The Fast "Double and Add" Mental Math Method
What if you need to convert a binary number in your head without memorizing high powers of 2? Use the "Double and Add" method (also known in mathematics as Horner's method).
Start at 0. Move through the binary digits one-by-one from left to right: at each step, double your running total and add the current digit.
How to Convert Decimal to Binary (Divide by 2)
To convert a decimal integer back to binary, use the standard Successive Division by 2 algorithm:
- Divide the decimal number by 2.
- Note down the integer quotient and the remainder (0 or 1).
- Repeat the division with the quotient until the quotient reaches 0.
- Read the remainders from bottom to top (the last remainder is the first bit).
| Division Step | Quotient | Remainder (Bit) | Bit Significance |
|---|---|---|---|
| 43 ÷ 2 | 21 | 1 | Least Significant Bit (LSB) |
| 21 ÷ 2 | 10 | 1 | Bit 1 |
| 10 ÷ 2 | 5 | 0 | Bit 2 |
| 5 ÷ 2 | 2 | 1 | Bit 3 |
| 2 ÷ 2 | 1 | 0 | Bit 4 |
| 1 ÷ 2 | 0 | 1 | Most Significant Bit (MSB) |
Binary to Decimal & Hex Conversion Reference Table
The table below lists all 16 values of a 4-bit nibble (0000 to 1111) with their decimal, hexadecimal, and octal equivalents:
| Binary | Decimal | Hex | Binary | Decimal | Hex |
|---|---|---|---|---|---|
| 0000 | 0 | 0 | 1000 | 8 | 8 |
| 0001 | 1 | 1 | 1001 | 9 | 9 |
| 0010 | 2 | 2 | 1010 | 10 | A |
| 0011 | 3 | 3 | 1011 | 11 | B |
| 0100 | 4 | 4 | 1100 | 12 | C |
| 0101 | 5 | 5 | 1101 | 13 | D |
| 0110 | 6 | 6 | 1110 | 14 | E |
| 0111 | 7 | 7 | 1111 | 15 | F |
Step-by-Step Worked Numerical Solutions
Convert binary 1011₂ to Decimal.
Convert binary 11010110₂ to Decimal and Hexadecimal.
Convert decimal 156₁₀ to Binary.
Common Pitfalls & Mistakes to Avoid
Reading Bits in Reverse Direction
The least significant bit (2⁰ = 1) is always on the far right. A common beginner mistake is reading power positions starting from the left.
Forgetting That 2⁰ Equals 1
Any non-zero number raised to the zero power equals 1 (2⁰ = 1). Never multiply the rightmost bit by 0.
Confusing 0x Hex Prefix with Decimal
In programming (JS, Python, C), 0x10 means hexadecimal 16, NOT decimal 10. Always verify the radix prefix.
Because 2⁰ = 1 is the only odd power of 2, you can tell if any binary number is odd or even in half a second: if the rightmost bit is 1, the number is odd. If the rightmost bit is 0, the number is even!
Lead Developer & Founder of Basic Math Tools. Specializes in browser-native computational algorithms and applied mathematics.
Mathematics & curriculum specialists. Audited against standard algebraic and arithmetic principles.