Convert a number between binary, decimal, hexadecimal, and octal. Enter the value and its base.
Usage Tip
One hex digit equals exactly four binary digits, which is why hex is a handy shorthand for binary.
All convert through a common decimal value
Decimal (base 10) is everyday counting; octal (base 8) appears in some systems.
Binary uses 0-1, octal 0-7, decimal 0-9, hex 0-9 and A-F.
All four representations are shown.
Different number bases are just different ways of writing the same value. Decimal uses ten digits, binary uses only zero and one, octal uses zero through seven, and hexadecimal uses sixteen symbols, with the letters A through F standing for ten through fifteen. Computers work in binary, and hexadecimal is a compact way to read it because each hex digit represents exactly four binary digits.
When entering a value, make sure the input base matches how the number is written, since the text 101 means five in binary but one hundred and one in decimal. Letters in hexadecimal values are not case sensitive. Programmers often meet hex in color codes, memory addresses, and byte values, and octal in file permission settings.
