Binary to Decimal Converter

Enter a binary number to get its decimal, hexadecimal, and octal equivalents, along with the place-value calculation behind the result.

Only the digits 0 and 1 are valid. Any length is supported.

What is Binary to Decimal Conversion?

Binary to decimal conversion turns a base-2 number (using only 0 and 1) into its base-10 equivalent. Computers store and process data in binary, but decimal numbers are what people read and reason about, so converting between the two is a routine step when working with binary data. Curious why computers store data in base-2 in the first place? See why computers use binary.

For example, the binary number 11111111 equals decimal 255 — the maximum value of a single byte (8 bits), which is why byte values commonly range from 0 to 255. For arithmetic on binary numbers rather than conversion, see the Binary Calculator.

How Binary to Decimal Conversion Works

Each binary digit (bit) represents a power of 2. Numbering positions from right to left starting at 0, a bit of 1 contributes its position's value to the total; a bit of 0 contributes nothing. Adding up every position's contribution gives the decimal value.

Example: 1101₂

Binary:   1    1    0    1
Position: 2³   2²   2¹   2⁰
Value:    8    4    2    1

(1 × 2³) = 8
(1 × 2²) = 4
(0 × 2¹) = 0
(1 × 2⁰) = 1

8 + 4 + 0 + 1 = 13

1101₂ = 13₁₀

The converter above shows this same breakdown for whatever binary number you enter. For the reverse operation, use the Decimal to Binary Converter.

Binary place values

Binary positionValue
2⁰1
2¹2
2²4
2³8
2⁴16
2⁵32
2⁶64
2⁷128

Binary to Decimal Conversion Table

A quick reference for common binary numbers and their decimal, hexadecimal, and octal equivalents:

BinaryDecimalHexadecimalOctal
0000
1111
10222
101555
101010A12
111115F17
10000161020
100000322040
10000006440100
110010010064144
1000000012880200
11111111255FF377
100000000256100400
10000000005122001000
1000000000010244002000

An 8-bit binary number (like 11111111) can represent decimal values from 0 to 255, which is why computer memory and file sizes are commonly measured in bytes.

Where Binary to Decimal Conversion Is Used

Converting binary to decimal comes up whenever binary data needs to be read by a person rather than a machine:

  • Programming and debugging: reading raw binary output, bitwise operation results, and memory dumps in a readable form.
  • Networking: converting binary IP address octets to standard dotted-decimal notation, e.g. 11000000.10101000.00000001.00000001 → 192.168.1.1.
  • Digital electronics: interpreting sensor readings and register values that hardware reports in binary.
  • Computer science education: learning positional notation, memory addressing, and how digital systems represent numbers.
  • Systems administration: reading Unix/Linux permission bits (e.g. rwxrwxrwx) and 8-bit color channel values (0–255) that are stored in binary.

Need to go the other direction with hex instead of decimal? Try the Binary to Hex Converter. For binary-to-text conversion, see the Binary Translator.

Frequently Asked Questions

How do I convert 11111111 to decimal?

11111111 in binary equals 255 in decimal. Enter it above to see the full place-value breakdown.

What is the decimal value of binary 1010?

Binary 1010 equals decimal 10: (1×8) + (0×4) + (1×2) + (0×1) = 10.

Can I convert negative binary numbers?

This converter handles positive (unsigned) binary numbers. Negative numbers in computers are represented using two's complement, which requires a different conversion method — see the Two's Complement Calculator.

What happens if I enter an invalid character?

The converter shows an error message and does not produce a result, since only the digits 0 and 1 are valid in a binary number.

How many decimal values can 8 bits represent?

8 bits can represent 256 different values, from 0 to 255 in decimal, which is why a byte (8 bits) is a fundamental unit in computing.

What's the largest binary number I can convert?

There's no fixed digit limit. Conversion uses BigInt arithmetic, so arbitrarily long binary numbers stay exact rather than losing precision — the only practical limit is your browser's available memory.

Is this converter accurate for very large numbers?

Yes. It uses JavaScript's BigInt arithmetic, which keeps the result exact even for binary numbers longer than the 53-bit range where regular JavaScript numbers start to lose precision.