Home › Code and dev › Number Base Converter
🔧

Number Base Converter

Convert numbers between bases 2 and 36, including huge values and text encoding

数值进制转换

支持大数(BigInt),支持负数。输入即实时转换。

About this tool

The base converter handles numeric conversion across bases and text encoding in one place:

  • Number conversion: pick a source and target base and convert live, with the value also shown in binary, octal, decimal and hexadecimal
  • Huge values: BigInt based, so very large integers convert correctly
  • Text to base: encode each character into binary, octal, decimal or hexadecimal, with the reverse direction as well
  • Separator: choose what sits between encoded units

Common bases

  • Binary (base 2): the machine level, only 0 and 1
  • Octal (base 8): 0 to 7, common in Linux file permissions
  • Decimal (base 10): the everyday system
  • Hexadecimal (base 16): 0 to 9 and A to F, common for colors and memory addresses

When to use it

  • Base conversion while programming
  • Color values between HEX and RGB
  • Address math in networking
  • Learning cryptography and encoding

Quick reference

BaseRadixExampleTypical use
Binary21010Machine level
Octal817Linux permissions
Decimal1015Everyday math
Hexadecimal16FColors and addresses