Number base converter

Convert an integer between decimal, hexadecimal, binary, and octal.

How it works
  • Optional prefixes 0x, 0b, and 0o override the selected base. Signed integers within JavaScript’s safe range (Β±2β΅Β³βˆ’1). Outputs are unprefixed digits.
Decimal
β€”
Hex
β€”
Binary
β€”
Octal
β€”