Binary to Decimal Converter

Convert a binary number to decimal — and see it in octal and hexadecimal at the same time. Enter a number in any of the four bases and the other three update automatically.

Entering a Number In
All Bases Live
Binary (base 2)
Octal (base 8)
Decimal (base 10)
Hexadecimal (base 16)

This isn't the same as Binary to Text

It's easy to conflate the two, but they solve different problems. Binary to Text decodes a binary string as character encoding — groups of 8 bits map to letters via ASCII or UTF-8, so 01001000 becomes the letter "H". This tool instead converts a binary number using positional notation, so 1010 becomes the number 10 — a numeric value, not a decoded character.

How binary to decimal conversion works

Each digit in a binary number represents a power of 2, based on its position, counting from the right starting at 2⁰. Multiply each digit by its place value and add them up.

Example: 1010
1×8 + 0×4 + 1×2 + 0×1 = 10

Decimal works the same way, just with powers of 10 instead of 2 — the "1010" you already read every day as one-thousand-ten uses exactly this same positional logic, just in base 10 instead of base 2.

Why this tool supports numbers larger than a calculator app usually can

A very long binary string can represent a number too large for standard JavaScript number handling to keep exact — past a certain size, ordinary number arithmetic silently loses precision. This tool uses arbitrary-precision integer math internally specifically to avoid that, so even a 60-plus-digit binary number converts exactly, not approximately.

Scope: whole numbers only

This tool handles non-negative whole numbers. Negative numbers in binary require choosing a specific bit width (8-bit, 16-bit, 32-bit two's complement all represent the same negative number differently), which isn't something a general converter can assume on your behalf — so that's intentionally out of scope here.

Frequently asked questions

How do you convert binary to decimal?

Multiply each binary digit by its place value (a power of 2, based on position) and add the results. 1010 in binary is (1×8) + (0×4) + (1×2) + (0×1) = 10 in decimal.

What is 1010 in decimal?

10. It's also 12 in octal and A in hexadecimal — all four represent the exact same number, just written in different bases.

What's the difference between Binary to Decimal and Binary to Text?

Binary to Decimal converts a binary number into the same number written in base 10. Binary to Text decodes a binary string as character encoding instead, turning groups of 8 bits into letters via ASCII or UTF-8. They use completely different logic despite both starting from binary.

Can this convert negative binary numbers?

No, this tool covers non-negative whole numbers only. Representing a negative number in binary depends on a chosen bit width and two's complement convention, which varies by context (8-bit, 16-bit, 32-bit systems all differ), so a general converter can't assume one on your behalf.