Number Base Converter

Convert numbers between different bases (binary, octal, decimal, hexadecimal)

Digits: 0-9
Digits: 0-1
Digits: 0-7
Digits: 0-9, A-F

1. What are Number Systems?

  • Binary (Base 2): Uses digits 0-1, commonly used in computing
  • Octal (Base 8): Uses digits 0-7, legacy systems
  • Decimal (Base 10): Uses digits 0-9, standard human counting
  • Hexadecimal (Base 16): Uses digits 0-9 and A-F, used for colors, memory addresses

2. How does it work?

Conversion Process

Number base conversion works by interpreting digits according to their positional values in different bases. Each digit is multiplied by the base raised to its position power, then summed together. The tool converts between bases by first interpreting the input in its specified base, then expressing the value in the target base.

Common Uses

Hexadecimal is widely used in web development for colors (#FF5733), in programming for memory addresses, and in cryptocurrency for addresses and hashes. Binary is fundamental to all computer operations.

3. Examples

The number 42

Decimal: 42, Binary: 101010, Octal: 52, Hex: 2A

The number 255

Decimal: 255, Binary: 11111111, Octal: 377, Hex: FF

The number 1000

Decimal: 1000, Binary: 1111101000, Octal: 1750, Hex: 3E8

References