Binary to Decimal Converter
Convert binary numbers (base-2) to decimal numbers (base-10) with step-by-step explanation
Conversion Type
Enter Binary Number
Enter Decimal Number
Error message will appear here
Conversion Result
0
Binary to Decimal Conversion
Calculation Steps
Binary Representation
Understanding Binary Numbers
What is Binary?
Binary is a base-2 number system that uses only two digits: 0 and 1. It's the fundamental language of computers and digital systems.
In binary:
- Each position represents a power of 2
- The rightmost digit is 2โฐ (1)
- Moving left, each position is the next power of 2: 2ยน (2), 2ยฒ (4), 2ยณ (8), etc.
- A digit of 1 means that power of 2 is included in the sum
- A digit of 0 means that power of 2 is not included
Binary to Decimal Conversion
To convert binary to decimal:
- Identify the position of each 1 in the binary number (from right to left, starting at 0)
- Calculate 2 raised to the power of each position
- Sum all these values
Example: 1010โ
- 1 ร 2ยณ = 1 ร 8 = 8
- 0 ร 2ยฒ = 0 ร 4 = 0
- 1 ร 2ยน = 1 ร 2 = 2
- 0 ร 2โฐ = 0 ร 1 = 0
- Sum: 8 + 0 + 2 + 0 = 10โโ
Common Binary to Decimal Conversions
1010โ
= 10โโ
1100โ
= 12โโ
1111โ
= 15โโ
10000โ
= 16โโ
10101โ
= 21โโ
11111โ
= 31โโ
Binary in Computing
Why Computers Use Binary
- Electronic circuits have two states: on (1) and off (0)
- Binary is reliable and less prone to errors
- It's easier to implement in hardware
- All data in computers is ultimately stored as binary
Common Binary Units
Unit | Size | Description |
---|---|---|
Bit | 1 bit | A single binary digit (0 or 1) |
Nibble | 4 bits | Half a byte |
Byte | 8 bits | Can represent 256 values (0-255) |
Word | 16/32/64 bits | Depends on processor architecture |