Logo
U
User
user@example.com

Number Base Converter

Convert between binary, octal, decimal, and hexadecimal

Input

Binary (Base 2)

0

Prefix: 0b

Octal (Base 8)

0

Prefix: 0o

Decimal (Base 10)

0

Standard notation

Hexadecimal (Base 16)

0

Prefix: 0x

Quick Reference

Base Systems:

  • Binary (Base 2): Uses digits 0-1
  • Octal (Base 8): Uses digits 0-7
  • Decimal (Base 10): Uses digits 0-9
  • Hexadecimal (Base 16): Uses 0-9, A-F

Common Prefixes:

  • Binary: 0b (e.g., 0b1010)
  • Octal: 0o (e.g., 0o12)
  • Hexadecimal: 0x (e.g., 0xA)