Binary, Decimal and Hex Converter

Enter a whole number and the base it is written in. You get it in binary, octal, decimal and hexadecimal.

How it works

  1. To decimal

    Multiply each digit by its place value, a power of the base, and add the results.

  2. From decimal

    Divide by the new base repeatedly and read the remainders from last to first.

  3. Binary and hex

    Each hexadecimal digit is exactly four binary digits, so you can convert in groups of four.

Common questions

What do the letters in hexadecimal mean?

A to F stand for the values 10 to 15, since base 16 needs sixteen different digits.

How large a number can I convert?

Any size. The converter uses exact whole-number arithmetic, so long values are not rounded.

More free calculators