Binary to decimal converter

Type a binary number and get its decimal value instantly, together with binary, decimal, hexadecimal and octal, the bit count and a copy button. Free, in your browser.

  • Free
  • No sign-up
  • Runs in your browser
binary-to-decimal

Fill in the values above to see the result.

100% private — the calculation is done in your browser and nothing is sent to any server.

How it works

Enter the number

Type a binary number in the box; the base is already selected.

Read the result

Decimal, decimal, hexadecimal, binary and octal appear together.

Copy it

Use the copy button next to the value you need.

How to convert binary to decimal

To convert binary to decimal, type your number in the converter above and read the decimal value. For example, 1101 0110 in binary is 214 in decimal. The other bases are shown at the same time.

Why convert binary to decimal

Reading binary as decimal is the everyday skill of anyone who works near hardware or networks: a subnet mask written 11111111.11111111.11111111.00000000 is easier to grasp as 255.255.255.0, a status byte of 00100110 is the number 38, and a sensor register is a list of bits whose decimal value you compare with a datasheet.

Convert binary to decimal by hand

Here is 1101 0110 (binary) converted step by step:

  1. Write down the value of each position, counting from the right, as powers of 2: 1, 2, 4, 8…
  2. Multiply each digit by its position value: 1 × 128 + 1 × 64 + 0 × 32 + 1 × 16 + 0 × 8 + 1 × 4 + 1 × 2 + 0 × 1.
  3. Add the non-zero results: 128 + 64 + 16 + 4 + 2 = 214.

Place values in binary

powers
PowerDecimalBinary
2^011
2^1210
2^24100
2^381000
2^41610000
2^532100000
2^6641000000
2^712810000000
2^8256100000000
2^95121000000000
2^10102410000000000
2^112048100000000000

More binary to decimal examples

examples
BinaryDecimalDecimal
10101010
1010104242
1100100100100
11111111255255
100101100300300
111110100010001000
11111111111140954095
11111111111111116553565535

Check your answer

To check the result, convert it back: 214 in decimal is 1101 0110 in binary. Your input may only contain the binary digits 0 1; any other character is not a valid binary number.

Good to know

  • A binary number with n bits ranges from 0 to 2^n − 1: 8 bits give 0 to 255.
  • Leading zeros never change the value, so 0000 0101 and 101 are both 5.
  • Spaces between groups of four bits are only for reading; the converter ignores them.
  • The converter also shows the other bases at the same time, so a single entry gives you binary, decimal, hexadecimal and octal.

Frequently asked questions

How do I convert binary to decimal?
Type the number in the converter at the top of this page and read the decimal value. For example, 1101 0110 (binary) is 214 (decimal).
What is the largest number in 8 bits of binary?
11111111, which is 255.
Can a binary number be negative?
Plain binary has no sign. Signed numbers use a convention such as two's complement, where the top bit marks negative values; this converter reads plain unsigned binary.
How many bits does 1101 0110 need?
1101 0110 is 214 in decimal, which needs 8 bits in binary.
Is this converter free and private?
Yes. It is free, needs no sign-up and works in your browser, so what you type is never sent to a server.