Binary, Ternary, Octal & Hexadecimal Converter

Convert to and from Bin, Oct, Dec, Hex & other numeral systems

This script converts numbers from decimal system (base/radix 10) to other positional systems and vice versa:

  • Binary (base 2, bin, bit)
  • Ternary (base 3, trit)
  • Quaternary (base 4)
  • Octal (base 8, oct)
  • Duodecimal (base 12)
  • Hexadecimal (base 16, hex, nibble)
  • Vigesimal (base 20, where I=18)
  • Base 36

This tool will autodetect C/Java hex numbers starting with '0x' and binary numbers starting with '0b'.

The script can only convert positive integers (whole numbers).

 

Input: