Back to Developer Tools

Number Base Converter

Convert numbers between Binary, Octal, Decimal, and Hexadecimal

Binary (Base 2)

Prefix: 0b

Octal (Base 8)

Prefix: 0o

Decimal (Base 10)

Prefix: none

Hexadecimal (Base 16)

Prefix: 0x

Number Systems

Binary (Base 2)

Uses digits: 0, 1

Example: 1010 = 10 in decimal

Octal (Base 8)

Uses digits: 0-7

Example: 12 = 10 in decimal

Decimal (Base 10)

Uses digits: 0-9

Example: 10 = standard number

Hexadecimal (Base 16)

Uses: 0-9, A-F

Example: A = 10 in decimal

💡 Usage Tips

  • • Type or paste a number in any field to convert to all other bases instantly
  • • Binary uses only 0 and 1 (e.g., 1010, 1111)
  • • Octal uses digits 0-7 (e.g., 12, 755)
  • • Hexadecimal uses 0-9 and A-F (e.g., FF, A1B2, case insensitive)
  • • Click the copy button to copy with prefix (0b, 0o, 0x)
  • • Common uses: Color codes (hex), file permissions (octal), bitwise operations (binary)