Base-N Number Converter

Convert numbers between any bases (binary, octal, decimal, hex). Free online base converter.

The Base-N Number Converter transforms numbers between any numerical bases from 2 to 36. Convert between binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), or any other base. Essential for computer science, digital electronics, and understanding number representation systems.

Base-N Number Converter

Formula: Value = Σ digitᵢ × baseⁱ; convert out by repeated division by the target base

Worked example

Number
255
From base
Base 10 (decimal)
To base
Base 2 (binary)
Base 2
11111111
Decimal (base 10)255
Binary11111111
Octal377
HexadecimalFF
Step by step
  1. 255 ÷ 2 = 127 remainder 1
  2. 127 ÷ 2 = 63 remainder 1
  3. 63 ÷ 2 = 31 remainder 1
  4. 31 ÷ 2 = 15 remainder 1
  5. 15 ÷ 2 = 7 remainder 1
  6. 7 ÷ 2 = 3 remainder 1
  7. 3 ÷ 2 = 1 remainder 1
  8. 1 ÷ 2 = 0 remainder 1
  9. Read the remainders from bottom to top.

Replace these values in the calculator above to compute your own numbers.

Common use cases

  • Programming and debugging
  • Digital electronics design
  • Computer science education
  • Hexadecimal color codes
  • IP address manipulation

How to use

  1. Enter the number to convert
  2. Select the source base (2-36)
  3. Select the target base (2-36)
  4. Click convert for the result
  5. See conversions to common bases

FAQ

What are common number bases?

Binary (2): computers. Octal (8): Unix permissions. Decimal (10): everyday. Hexadecimal (16): colors, memory addresses.

How do bases above 10 work?

Letters represent values: A=10, B=11, ..., Z=35. So base 16 uses 0-9 and A-F.

How do I convert decimal to binary?

Repeatedly divide by 2 and record remainders. Read remainders backward. 13 = 1101 in binary.

Why is hexadecimal used in computing?

Each hex digit represents exactly 4 binary digits, making it a compact way to write binary values.