UNITMONKEY

Binary/Decimal/Hex Converter

Convert between binary, decimal, hexadecimal, and octal number systems


Displayed as 8-bit bytes

Displayed as byte pairs

Byte Order

Big-endian: most significant byte first (MSB)

Number System Conversions

Number systems are different ways to represent numerical values. The most common number systems in computing are:

  • Binary (Base-2): Uses only 0 and 1. The foundation of all computing.
  • Decimal (Base-10): The standard system we use daily, using digits 0-9.
  • Hexadecimal (Base-16): Uses digits 0-9 and letters A-F. Common in programming for representing memory addresses and colors.
  • Octal (Base-8): Uses digits 0-7. Less common today but still used in some contexts like file permissions in Unix systems.

Converting Between Number Systems

To convert a number from one base to another:

  • To convert to decimal: Multiply each digit by its place value and sum the results.
  • To convert from decimal: Divide repeatedly by the target base and collect the remainders in reverse order.

Common Uses

  • Binary is used in computer memory and digital circuits
  • Hexadecimal is used for color codes (e.g., #FF5733) and memory addresses
  • Octal is used for file permissions in Unix/Linux (e.g., chmod 755)