Skip to content
MasterMath

Binary to Decimal Converter

Convert between binary, octal, decimal and hexadecimal, with all four shown at once and the working spelled out.

Result

—

Result—
In decimal—
In binary—
In octal—
In hexadecimal—
Bits it occupies—

How this was worked out

    The rule

    each digit is its symbol × base^position

    Why it works

    A base is just how many symbols you count with before carrying. In base 10 the digit 3 in the hundreds column means 3 × 10², and in base 2 the digit 1 in the fourth column means 1 × 2³. The idea is identical; only the base changes.

    How to do it by hand

    1. To go to decimal, multiply each digit by the base raised to its position and add
    2. To leave decimal, divide repeatedly by the target base
    3. Keep the remainders and read them backwards
    4. In hexadecimal, A to F stand for 10 to 15

    What is worth knowing

    Hexadecimal exists because it maps onto binary exactly: each hex digit is precisely four bits, so FF is 11111111 and no arithmetic is needed to see it. Octal did the same job for three-bit groupings on older hardware, which is why Unix file permissions are still octal. Binary itself is not a computing invention — Leibniz described it in 1703, inspired partly by the I Ching — but it is what makes digital circuits possible, since a switch has exactly two states.

    Frequently asked questions

    How do you convert binary to decimal?

    Multiply each digit by 2 raised to its position, counting from zero on the right, then add them all.

    Why is hexadecimal used in computing?

    Because each hex digit is exactly four bits, so converting to and from binary needs no arithmetic at all.

    What do A to F mean in hexadecimal?

    The values 10 to 15. Base 16 needs sixteen symbols, and the digits only supply ten.

    Why do computers use binary?

    Because a circuit is reliably either on or off. Two states are easy to build and hard to confuse.