← Tools
Utilities

Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal. Edit any field to update the rest.

Conversion

Number Bases

  • Binary (2) — Digits: 0, 1. Used in digital circuits and low-level computing.
  • Octal (8) — Digits: 0–7. Common in Unix file permissions (e.g., chmod 755).
  • Decimal (10) — Digits: 0–9. Standard everyday number system.
  • Hex (16) — Digits: 0–9, A–F. Used in colors, memory addresses, and encoding.

How Conversion Works

Any number is first parsed into its decimal (base-10) value using parseInt(value, radix), then converted to all other bases using number.toString(radix).

Common Examples

  • 255 dec = FF hex = 11111111 bin
  • 16 dec = 10 hex = 10000 bin
  • Unix 755 oct = 111 101 101 bin