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
To decimal
Multiply each digit by its place value, a power of the base, and add the results.
From decimal
Divide by the new base repeatedly and read the remainders from last to first.
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
Unit converterLength, mass, temperature, volume, speedDecimal to fractionIncluding repeating decimalsRoman numeralsTo and from Roman numeralsPercentage calculatorPercent of, percent change, reverse percentFraction calculatorAdd, subtract, multiply, divide, simplifyScientific calculatorTrig, logs, powers and rootsMean, median, modeAverage, range and sum of a data setFinal grade calculatorWhat you need on the final exam