Binary to Decimal Converter

Type a binary number to see it as decimal, plus the other bases.

Free · Runs in your browser · Your text is never uploaded

A number shown in decimal converted to binary and hexadecimal

How to convert binary to decimal

Starting from the right, each binary digit is worth 1, 2, 4, 8, 16 and so on. Add up the values where the digit is 1.

Worked example

The binary number 101101 is 45 in decimal.

Convert many at once

Put one number per line to convert a whole list, and copy the results.

A worked example

Take the binary number 11001010. Each digit is multiplied by the base raised to its position: 1×27 + 1×26 + 0×25 + 0×24 + 1×23 + 0×22 + 1×21 + 0×20 = 202. In decimal that is 202.

Where it is used

Checking bit patterns, learning how computers store numbers, or reading a subnet mask octet.

Tips

Spaces and underscores inside a number are ignored, so you can paste values like 1010 1111. Add a prefix (0x, 0b or 0o) if you are unsure which base a number is in. For the theory behind all four bases, read binary, decimal and hexadecimal explained.

Need more options? Open the full Number Base Converter.

Related guides

Frequently asked questions

How do I convert binary to decimal?

Enter the binary number above and the decimal result appears instantly.

Does it work for large numbers?

Yes, the arithmetic is exact for numbers up to 4,000 digits.

Can I convert negative numbers?

Yes, the minus sign is kept. Two’s complement is not applied.