Binary to Decimal Converter

Type a binary number to see it in decimal, and in the other number bases.

Enter the number

Result

Decimal (base 10)
10
The same number in every base
BaseValue
Binary (base 2)1010
Octal (base 8)12
Decimal (base 10)10
Hexadecimal (base 16)A

How to use it

  1. Type the number (spaces and prefixes such as 0x are fine).
  2. Check the From and To bases, or change them.
  3. Read the result, and the same number in every base in the table.

About this tool

Each binary digit is worth a power of two, counting from the right: 1, 2, 4, 8, 16 and so on. Add up the powers where there is a 1. For 1010 that is 8 + 2 = 10.

Computers store everything in binary, so this conversion shows up in networking, programming and electronics classes.

Formula

  • Decimal = sum of (digit × 2^position), counting positions from 0 on the right.
  • Example: 1101 = 1×8 + 1×4 + 0×2 + 1×1 = 13.

Examples

  • Binary 1 = 1 (decimal)
  • Binary 1010 = 10 (decimal)
  • Binary 11111111 = 255 (decimal)
  • Binary 100000000 = 256 (decimal)

Tips

  • Long binary numbers are easier to read in groups of four digits. Spaces are ignored.
  • Very long numbers are handled exactly, up to 200 digits.
  • Negative numbers are accepted with a minus sign.

Questions and answers

How do I convert binary to decimal?

Decimal = sum of (digit × 2^position), counting positions from 0 on the right.

What is 1010 in decimal?

1010 in binary is 10 in decimal.

Can I use lowercase letters or a prefix?

Yes. Lowercase letters work, and prefixes such as 0b, 0o and 0x are accepted.

Are my numbers saved or sent anywhere?

No. The conversion runs in your browser on your own device. Nothing you type is sent to Paul Digital or any other server.

More tools

Privacy

The conversion runs in your browser on your own device. Nothing you type is sent to Paul Digital or any other server. Very long numbers are handled exactly.