Binary, Decimal and Hex Conversion Calculator
Type a number in binary, octal, decimal or hex to see it written in all four.
The base the number is typed in.
Digits 0–9 and letters A–Z; a leading minus sign is kept.
Result
You entered
Binary
Octal
Decimal
Hex
Show the work
Positional notation
Each digit is worth its value times a power of the base , counting from at the right. Adding the terms gives the number in decimal.
Using
Repeated division by 2
To write a decimal number in binary, divide by the base again and again, keeping each remainder , until the quotient is . Read the remainders from the last to the first.
Using
Repeated division by 8
To write a decimal number in octal, divide by the base again and again, keeping each remainder , until the quotient is . Read the remainders from the last to the first.
Using
Result
So is in binary, in octal, in decimal and in hex.