← Back to all toolsComputer Science & Maths · Class 9–10+2

Number System Converter

Convert any number between Binary, Octal, Decimal and Hexadecimal — with full step-by-step working for every conversion.

BIN Base 2 0–1
OCT Base 8 0–7
DEC Base 10 0–9
HEX Base 16 0–9, A–F

Quick examples:

📊 Quick Reference Table (0–15)

DecimalBinaryOctalHexadecimal
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F

🔵 Binary (Base 2)

  • Digits: 0, 1 only
  • Used in: all digital computers and electronics
  • Each digit = 1 bit; 8 bits = 1 byte
  • Prefix: 0b (e.g. 0b1010)
  • To decimal: multiply each bit by 2^position

🟣 Octal (Base 8)

  • Digits: 0 to 7
  • Used in: Unix file permissions (e.g. chmod 755)
  • 3 binary digits = 1 octal digit
  • Prefix: 0o (e.g. 0o17)
  • Easier to read than binary for large numbers

🟢 Decimal (Base 10)

  • Digits: 0 to 9 — our everyday number system
  • Positional: each place is a power of 10
  • Hundreds = 10², Tens = 10¹, Units = 10⁰
  • Standard for human use everywhere
  • Converting to other bases: repeated division

🟡 Hexadecimal (Base 16)

  • Digits: 0–9 then A=10, B=11, C=12, D=13, E=14, F=15
  • Used in: memory addresses, HTML colours (#FF5733)
  • 4 binary digits = 1 hex digit
  • Prefix: 0x (e.g. 0xFF)
  • Very compact representation of binary data