Base Converter

Convert numbers between binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16)

Valid characters: 0-9

Quick Reference

DecimalBinaryOctalHexadecimal
00b00o00x0
10b10o10x1
80b10000o100x8
160b100000o200x10
320b1000000o400x20
640b10000000o1000x40
1280b100000000o2000x80
2550b111111110o3770xFF
2560b1000000000o4000x100
10240b100000000000o20000x400

Click any row to convert that number

Number System Basics:

  • Binary (Base 2): Uses digits 0-1. Common in computing for representing data.
  • Octal (Base 8): Uses digits 0-7. Sometimes used in Unix file permissions.
  • Decimal (Base 10): Uses digits 0-9. Standard number system humans use daily.
  • Hexadecimal (Base 16): Uses 0-9 and A-F. Common for colors, memory addresses, and debugging.
  • • Prefixes: 0b for binary, 0o for octal, 0x for hexadecimal (programming convention)