Binary / Decimal / Hex / Octal Converter

Convert numbers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16).

Results:

Binary
 
Octal
 
Decimal
 
Hexadecimal
 

What is Number Base Conversion?

Numbers can be represented in different bases (radixes). Binary (base 2) uses 0โ€“1, octal (base 8) uses 0โ€“7, decimal (base 10) uses 0โ€“9, hexadecimal (base 16) uses 0โ€“9 and Aโ€“F.

What is it used for?

  • Programming: Hex for colors (#FF0000), memory addresses; binary for bitwise ops
  • Networking: IP addresses in hex; subnet masks in binary
  • File formats: Binary/hex for binary file inspection
  • Learning: Understand how computers represent numbers

How it works

Enter a number and select its base. The tool converts it to binary, octal, decimal, and hexadecimal. All bases update in real time.