17. Base Conversion (Advanced) – Base-2/8/10/16 + Base-n

Base conversion advanced: base-n to decimal, decimal to base-n, binary↔octal↔hex shortcuts, base arithmetic basics, SSC CGL level examples & practice with answers.

← Prev: Base System Basics Next: Back to Number System Index →

1) General conversion rules (must know)

A) Base-b → Decimal (place value)

(ak...a1a0)b = Σ ai×bi

Example: (231)4 = 2×42 + 3×4 + 1 = 32 + 12 + 1 = 45

B) Decimal → Base-b (repeated division by b)

Number ko b se repeatedly divide karo, remainders reverse order me likho.

Example: 45 to base-4

2) Octal (base-8) & Hex (base-16) basics

3) Binary ↔ Octal (fast shortcut)

Rule: Binary ko right se 3-3 bits me group karo. Har group (000 to 111) ko 0 to 7 me convert kar do.

3-bit Octal 3-bit Octal
00001004
00111015
01021106
01131117

Example: 11010112 to octal

Example: 7458 to binary

4) Binary ↔ Hexadecimal (fast shortcut)

Rule: Binary ko right se 4-4 bits me group karo. Har 4-bit group ko 0–15 me convert karke hex digit likho.

4-bitHex 4-bitHex 4-bitHex 4-bitHex
0000001004100081100C
0001101015100191101D
00102011061010A1110E
00113011171011B1111F

Example: 111011102 to hex

Example: 3A16 to binary

5) Octal ↔ Hex conversion (via binary)

Direct octal↔hex fast method: octal → binary → hex (or reverse).

Example: 578 to hex

6) Validity check (exam trick)

Base-b me allowed digits 0 to b−1 hote hain. Agar kisi number me digit ≥ base, number invalid.

7) Base arithmetic (very basic SSC)

Base-b me carry b par banta hai. Example base-5: 4+3 = 7 (decimal) = 125 (carry 1, digit 2).

Example: (243)5 + (34)5

8) Common traps


9) Practice (SSC CGL) + Answers

  1. Convert (231)4 to decimal.
  2. Convert 4510 to base-4.
  3. Convert 11010112 to octal.
  4. Convert 7458 to binary.
  5. Convert 3A16 to decimal.
  6. Is (129)8 valid? (Yes/No)
Show Answers
  1. 45
  2. (231)4
  3. (153)8
  4. (111100101)2
  5. 3A16 = 3×16 + 10 = 58
  6. No (digit 9 not allowed in base-8)
← Prev Next →