DevGizmo

Decimal Converter

Convert a decimal (base 10) number to binary, hexadecimal, octal, and ASCII.

About the Decimal Converter

Decimal is the base-10 number system, the standard system for everyday arithmetic and most high-level programming. Computers, however, operate in binary internally, so understanding how a decimal number maps to binary, hexadecimal, and octal is an essential skill for any programmer working close to the hardware.

Enter any non-negative decimal integer and the tool outputs its equivalent in binary (base 2), octal (base 8), hexadecimal (base 16), and the ASCII character it represents if the value is a printable character code (32–126).

How Decimal to Binary Conversion Works

The standard method is repeated division by 2. Divide the number by 2, record the remainder (0 or 1), then repeat with the quotient until the quotient reaches zero. Reading the remainders in reverse order gives the binary representation. For example, 13 → 1101 in binary (8 + 4 + 0 + 1).

Common Uses

  • Looking up ASCII character codes by their decimal value
  • Converting port numbers and IP address octets to binary for subnetting
  • Understanding memory addresses, colour values, and flags in their binary or hex form
  • Teaching number systems in computer science education