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.



Hexadecimal
—
Octal
—
Bits
—

Both directionsHex + OctalLarge numbers OKNo sign-up
Binary to decimal in 30 seconds: multiply each bit by its power of 2, starting from 2⁰ = 1 at the rightmost bit, then add the results. Example: 1011₂ = 1×8 + 0×4 + 1×2 + 1×1 = 8 + 2 + 1 = 11₁₀. The sections below give you the full hand method, a worked example, every reference table you need, and the edge cases (negatives, fractions, hex) competitors skip.

How to Use the Binary Converter

  1. Type a binary number (only 0s and 1s) in the Binary box — the decimal value appears instantly.
  2. Or type a decimal number in the Decimal box — the binary equivalent appears instantly.
  3. Hex, octal and bit-count update automatically with every keystroke.
  4. 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:

  1. Write the binary number and number each position from the right, starting at 0. The rightmost bit is position 0.
  2. 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…
  3. Multiply each bit (0 or 1) by its place value.
  4. 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
101101₂ = 1×32 + 0×16 + 1×8 + 1×4 + 0×2 + 1×1 = 32 + 8 + 4 + 1 = 45₁₀

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:

Decimal = d₀×2⁰ + d₁×2¹ + d₂×2² + … + dₙ₋₁×2ⁿ⁻¹

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

  1. Reading left to right. Binary place values start at the right. In 1011, the leftmost 1 is worth 8, not 1.
  2. Forgetting the LSB. The rightmost bit is always worth 2⁰ = 1. Every odd binary number ends in 1.
  3. Using digits other than 0 and 1. A “2” in a binary string is invalid — the converter flags it instead of guessing.
  4. Reading binary digits as a decimal number. 101 is “one-zero-one”, worth 5 — not “one hundred one”.
  5. 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?
Start at the rightmost bit (worth 1) and move left, doubling the place value at each step: 1, 2, 4, 8, 16… Add the place values under every 1 and ignore the 0s. For example, 1011₂ = 8 + 2 + 1 = 11₁₀. You can check your work by typing the same number into the converter above.
What is the formula to convert binary to decimal?
Decimal = d₀×2⁰ + d₁×2¹ + d₂×2² + … + dₙ₋₁×2ⁿ⁻¹, where each d is a bit and position 0 is the rightmost bit. In plain words: each bit is worth 2 raised to its position, and you add them all up. Example: 1010₂ = 1×8 + 0×4 + 1×2 + 0×1 = 10₁₀.
What is 1011 in decimal?
1011 in binary equals 11 in decimal. Breakdown: the bits are worth 8, 4, 2, 1 from left to right, so 1×8 + 0×4 + 1×2 + 1×1 = 8 + 2 + 1 = 11.
What is 1010 in decimal?
1010 in binary equals 10 in decimal: 1×8 + 0×4 + 1×2 + 0×1 = 8 + 2 = 10. It is the classic first example because it mixes 1s and 0s.
What is 11111111 in decimal?
11111111 in binary equals 255 in decimal: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255. This is the largest value 8 bits can hold (2⁸ − 1) — the reason color channels and IP address octets max out at 255.
What is the largest number you can make with 8 bits?
255 with unsigned binary (11111111), which is 2⁸ − 1. With signed two’s complement — where one bit marks the sign — the largest positive value is 127 (01111111).
How do you read binary numbers from right to left?
The rightmost bit is position 0, worth 2⁰ = 1. Moving left, each position doubles: 2, 4, 8, 16, 32… So in 10110, the rightmost 0 is worth 0×1 and the leftmost 1 is worth 1×16, giving 16 + 4 + 2 = 22.
What is the place value of each bit in a binary number?
Bit n (counting from 0 at the right) is worth 2ⁿ: bit 0 = 1, bit 1 = 2, bit 2 = 4, bit 3 = 8, bit 4 = 16, bit 5 = 32, bit 6 = 64, bit 7 = 128, bit 8 = 256, bit 9 = 512, bit 10 = 1,024.
How do you convert a negative binary number to decimal?
Use two’s complement: invert all the bits, add 1, and that gives the magnitude (the answer is negative). For 8-bit 11111111: invert → 00000000, add 1 → 1, so the value is −1. Note the converter above shows the unsigned reading (255 for 11111111); two’s complement is the signed interpretation programmers use.
Can binary numbers have decimal points?
Yes — binary fractions work like decimal fractions, but with halves: 0.101₂ = 1×½ + 0×¼ + 1×⅛ = 0.625₁₀. One caveat: some decimals, like 0.1, repeat forever in binary, which is why computers occasionally show tiny floating-point errors like 0.1 + 0.2 = 0.30000000000000004.
How do I convert decimal to binary?
Divide by 2 repeatedly and write down each remainder. When you reach 0, read the remainders from bottom to top. Example: 25 → 25÷2=12 r1, 12÷2=6 r0, 6÷2=3 r0, 3÷2=1 r1, 1÷2=0 r1 → 11001₂. Or type the decimal number into the converter above and it converts instantly.
How do I convert binary to decimal without a calculator?
Use the doubling method: scan the bits left to right, starting at 0. For each bit, double your running total and add the bit. For 1011: 0 → 1 → 2 → 5 → 11. No powers of 2 to memorize, and it works for numbers of any length — even ones too long for a pocket calculator.