Binary to Decimal Converter — Free, Both Ways
Convert binary to decimal and decimal to binary instantly. Type in either box and the other updates live — with hex and octal equivalents included. Free, no sign-up.
How to Use the Binary Converter
- Type a binary number (only 0s and 1s) in the Binary box — the decimal value appears instantly.
- Or type a decimal number in the Decimal box — the binary equivalent appears instantly.
- Hex, octal and bit-count update automatically with every keystroke.
- Invalid input (like the digit 2 in binary) shows a clear error instead of a wrong answer.
How to Convert Binary to Decimal by Hand
Short answer: write each bit over its power of 2 (1, 2, 4, 8, 16… from the right), multiply, and add. Four steps:
- Write the binary number and number each position from the right, starting at 0. The rightmost bit is position 0.
- Find each bit’s place value: the bit in position n is worth 2ⁿ — so the positions are worth 1, 2, 4, 8, 16, 32…
- Multiply each bit (0 or 1) by its place value.
- Add everything up. Zeros contribute nothing, so in practice you only add the values sitting under the 1s.
This is the method exams test, and it is exactly what the converter above automates — type the same number into the Binary box to check your hand calculation.
Binary Place-Value Table
Every binary digit sits in a position worth a power of 2. Bit 0 (the rightmost) is worth 2⁰ = 1, and each step left doubles the value:
| Bit position | Power of 2 | Decimal value |
|---|---|---|
| 0 | 2⁰ | 1 |
| 1 | 2¹ | 2 |
| 2 | 2² | 4 |
| 3 | 2³ | 8 |
| 4 | 2⁴ | 16 |
| 5 | 2⁵ | 32 |
| 6 | 2⁶ | 64 |
| 7 | 2⁷ | 128 |
| 8 | 2⁸ | 256 |
| 9 | 2⁹ | 512 |
| 10 | 2¹⁰ | 1,024 |
Memorize the landmarks: 2¹⁰ = 1,024 (≈ 1 thousand), 2²⁰ = 1,048,576 (≈ 1 million), 2³⁰ = 1,073,741,824 (≈ 1 billion). Computer memory sizes — KB, MB, GB — are built on these.
Worked Example: What Is 101101 in Decimal?
Convert 101101₂ using the hand method. Line the bits up with their place values:
| Bit | 1 | 0 | 1 | 1 | 0 | 1 |
|---|---|---|---|---|---|---|
| Place value | 32 | 16 | 8 | 4 | 2 | 1 |
| Contribution | 32 | 0 | 8 | 4 | 0 | 1 |
One more, the classic textbook example: 111001₂ = 32 + 16 + 8 + 1 = 57₁₀. Going the other way — decimal to binary — divide by 2 repeatedly and read the remainders backwards: 25 → 25÷2=12 r1, 12÷2=6 r0, 6÷2=3 r0, 3÷2=1 r1, 1÷2=0 r1, so 25₁₀ = 11001₂.
What Is the Binary-to-Decimal Formula?
Formally, an n-bit binary number dₙ₋₁…d₁d₀ converts as:
Two terms worth knowing: the rightmost bit (d₀) is the LSB (least significant bit) and the leftmost is the MSB (most significant bit). The formula is the same idea as decimal notation: in 507, the 5 means 5×100 because it sits in the hundreds place — binary just uses powers of 2 instead of powers of 10.
Shortcut — the doubling method: scan the bits left to right. Start at 0; for each bit, double your running total and add the bit. For 1011: 0 → 1 → 2 → 5 → 11. No powers to memorize, and it works for numbers of any length.
Binary to Decimal Conversion Table
The first 21 values, with hex equivalents — the range homework questions live in:
| Decimal | Binary | Hex |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 1 | 1 |
| 2 | 10 | 2 |
| 3 | 11 | 3 |
| 4 | 100 | 4 |
| 5 | 101 | 5 |
| 6 | 110 | 6 |
| 7 | 111 | 7 |
| 8 | 1000 | 8 |
| 9 | 1001 | 9 |
| 10 | 1010 | A |
| 11 | 1011 | B |
| 12 | 1100 | C |
| 13 | 1101 | D |
| 14 | 1110 | E |
| 15 | 1111 | F |
| 16 | 10000 | 10 |
| 17 | 10001 | 11 |
| 18 | 10010 | 12 |
| 19 | 10011 | 13 |
| 20 | 10100 | 14 |
Common Binary Values Worth Memorizing
A handful of values show up constantly in computing — recognizing them by sight saves real time:
| Binary | Decimal | Why it matters |
|---|---|---|
| 1111 | 15 | Max 4-bit value; a single hex digit (F) |
| 10000000 | 128 | The 8th bit; half of a byte’s range |
| 11111111 | 255 | Max 8-bit value (2⁸ − 1); max color channel & IP octet |
| 1111111111111111 | 65535 | Max 16-bit value (2¹⁶ − 1); max network port number |
| 32 ones | 4294967295 | Max 32-bit unsigned value (2³² − 1) |
Pattern to remember: n ones always equal 2ⁿ − 1 — that is why 11111111 is 255 and not 256.
How Does Two’s Complement Work? (Signed Binary)
Short answer: in two’s complement, the leftmost bit carries a negative weight — so 8-bit 11111111 reads as −1, not 255.
Computers store negative integers with two’s complement: to negate a number, invert every bit and add 1. Reading a signed value works in reverse — for 11111111: invert → 00000000, add 1 → 1, so the value is −1. The tradeoff: one bit is spent on the sign, so a signed 8-bit number runs from −128 to +127 (the max, 01111111, is 127).
Note: the converter above shows the unsigned (whole-number) value — type 11111111 and you get 255. Two’s complement is the programmer’s signed interpretation of the same bits.
Binary to Hex and Octal: The Grouping Trick
Short answer: chop the bits into groups of 4 (from the right) for hex, or groups of 3 for octal, then convert each small group.
Because 16 = 2⁴, one hex digit replaces exactly 4 bits. Pad 101101 to 0010 1101: 0010 = 2, 1101 = 13 = D, so 101101₂ = 2D₁₆ (check: 2×16 + 13 = 45 ✓).
Octal works the same with groups of 3 (8 = 2³): 101 101 → 5, 5 → 55₈ (check: 5×8 + 5 = 45 ✓). This is exactly what the Hex and Octal chips above the tool compute on every keystroke — try typing any binary number and watch them update.
Can Binary Numbers Have Decimal Points?
Short answer: yes — binary fractions work like decimal fractions, but with halves. Bits after the point are worth ½, ¼, ⅛… So 0.101₂ = 1×½ + 0×¼ + 1×⅛ = 0.625₁₀.
The catch: just as ⅓ has no finite decimal form (0.333…), some decimals have no finite binary form — 0.1₁₀ repeats forever in binary. That is the real reason computers sometimes show 0.1 + 0.2 as 0.30000000000000004.
Common Mistakes to Avoid
- Reading left to right. Binary place values start at the right. In 1011, the leftmost 1 is worth 8, not 1.
- Forgetting the LSB. The rightmost bit is always worth 2⁰ = 1. Every odd binary number ends in 1.
- Using digits other than 0 and 1. A “2” in a binary string is invalid — the converter flags it instead of guessing.
- Reading binary digits as a decimal number. 101 is “one-zero-one”, worth 5 — not “one hundred one”.
- Thinking leading zeros change the value. 00101₂ = 101₂ = 5. Padding is cosmetic — except when it marks the bit-width for two’s complement.
Where Binary-to-Decimal Matters
IP addresses and subnet masks are four 8-bit numbers in disguise: 255.255.255.0 is 11111111.11111111.11111111.00000000 — try decoding one in our IP Subnet Calculator. Text encoding: the letter “A” is ASCII 65 (1000001₂). Color codes like #FF0000 are hex — each pair of digits is one binary byte (FF = 255 = full red). File permissions (chmod 755) are octal: 7 = 111, 5 = 101. And debugging: reading memory dumps, error flags, and hardware registers means converting binary to decimal by sight.
Binary Converter FAQs
How do you convert binary to decimal by hand?
What is the formula to convert binary to decimal?
What is 1011 in decimal?
What is 1010 in decimal?
What is 11111111 in decimal?
What is the largest number you can make with 8 bits?
How do you read binary numbers from right to left?
What is the place value of each bit in a binary number?
How do you convert a negative binary number to decimal?
Can binary numbers have decimal points?
How do I convert decimal to binary?
How do I convert binary to decimal without a calculator?
