Home ›
SSC ›
SSC CGL ›
Maths ›
Number System ›
Base Conversion (Advanced)
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.
1) General conversion rules (must know)
A) Base-b → Decimal (place value)
(ak ...a1 a0 )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
45 ÷ 4 = 11 remainder 1
11 ÷ 4 = 2 remainder 3
2 ÷ 4 = 0 remainder 2
So 45 = (231)4
2) Octal (base-8) & Hex (base-16) basics
Octal digits: 0–7
Hex digits: 0–9, A(10), B(11), C(12), D(13), E(14), F(15)
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
000 0 100 4
001 1 101 5
010 2 110 6
011 3 111 7
Example: 11010112 to octal
Group: 1 101 011 ⇒ pad left: 001 101 011
001=1, 101=5, 011=3 ⇒ (153)8
Example: 7458 to binary
7=111, 4=100, 5=101 ⇒ (111100101)2
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-bit Hex
4-bit Hex
4-bit Hex
4-bit Hex
0000 0 0100 4 1000 8 1100 C
0001 1 0101 5 1001 9 1101 D
0010 2 0110 6 1010 A 1110 E
0011 3 0111 7 1011 B 1111 F
Example: 111011102 to hex
Group: 1110 1110 ⇒ 1110=E, 1110=E ⇒ (EE)16
Example: 3A16 to binary
3=0011, A=1010 ⇒ (00111010)2 ⇒ (111010)2 (leading zeros drop)
5) Octal ↔ Hex conversion (via binary)
Direct octal↔hex fast method: octal → binary → hex (or reverse).
Example: 578 to hex
578 → binary: 5=101, 7=111 ⇒ 1011112
Binary group 4: 0010 1111 ⇒ 2F16
6) Validity check (exam trick)
Base-b me allowed digits 0 to b−1 hote hain.
Agar kisi number me digit ≥ base, number invalid.
(128)8 invalid (because digit 8 not allowed in base-8)
(1021)2 invalid (because digit 2 not allowed in base-2)
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
243 + 034
Units: 3+4=7 ⇒ 125 ⇒ write 2 carry 1
Next: 4+3+1=8 ⇒ 135 ⇒ write 3 carry 1
Next: 2+0+1=3
Answer: (332)5
8) Common traps
Grouping bits always from right side (LSB), left side padding with zeros allowed.
Hex digits A–F ko decimal values (10–15) yaad rakho.
Base-b me digit “b” allowed nahi (0..b−1 only).
9) Practice (SSC CGL) + Answers
Convert (231)4 to decimal.
Convert 4510 to base-4.
Convert 11010112 to octal.
Convert 7458 to binary.
Convert 3A16 to decimal.
Is (129)8 valid? (Yes/No)
Show Answers
45
(231)4
(153)8
(111100101)2
3A16 = 3×16 + 10 = 58
No (digit 9 not allowed in base-8)