Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Unit 3: Number System Inter-Conversions

Lesson 25 of 34 in the free Fundamentals of IT & Computers notes on Siksha Sarovar, written by Rohit Jangra.

Unit III — Number System Inter-Conversions

Inter-conversion between binary, octal, decimal, and hexadecimal is a core exam skill. This lesson provides a structured reference for all 12 possible conversion directions.

---

Conversion Reference Map

        Binary (Base-2)
       ↗          ↖
  Octal             Hexadecimal
(Base-8)            (Base-16)
       ↘          ↙
        Decimal (Base-10)

---

All 12 Conversions — Quick Methods

FromToMethod
BinaryDecimalMultiply each bit by 2^position, sum all
DecimalBinaryDivide repeatedly by 2, read remainders upward
BinaryOctalGroup 3 bits from right; convert each group
OctalBinaryReplace each digit with 3-bit binary equivalent
BinaryHexGroup 4 bits from right; convert each group
HexBinaryReplace each digit with 4-bit binary equivalent
DecimalOctalDivide repeatedly by 8
OctalDecimalMultiply each digit by 8^position, sum
DecimalHexDivide repeatedly by 16
HexDecimalMultiply each digit by 16^position, sum
OctalHexOctal → Binary → Hex
HexOctalHex → Binary → Octal

---

Worked Example 1: Decimal to All Others

Convert (175)₁₀

→ Binary: 175÷2=87R1, 87÷2=43R1, 43÷2=21R1, 21÷2=10R1, 10÷2=5R0, 5÷2=2R1, 2÷2=1R0, 1÷2=0R1 = (10101111)₂

→ Octal: From binary: 010|101|111 → 2|5|7 = (257)₈ Or: 175÷8=21R7, 21÷8=2R5, 2÷8=0R2 → (257)₈

→ Hex: From binary: 1010|1111 → A|F = (AF)₁₆ Or: 175÷16=10R15(F), 10÷16=0R10(A) → (AF)₁₆

---

Worked Example 2: Hex to All Others

Convert (1B3)₁₆

→ Binary: 1=0001, B=1011, 3=0011 → (000110110011)₂ = (110110011)₂

→ Decimal: 1×256 + 11×16 + 3 = 256 + 176 + 3 = (435)₁₀

→ Octal: Binary grouped as 3: 000|110|110|011 → 0|6|6|3 = (0663)₈ = (663)₈

---

Worked Example 3: Octal to All Others

Convert (374)₈

→ Binary: 3=011, 7=111, 4=100 → (011111100)₂ = (11111100)₂

→ Decimal: 3×64 + 7×8 + 4 = 192 + 56 + 4 = (252)₁₀

→ Hex: Binary grouped as 4: 1111|1100 → F|C = (FC)₁₆

---

Summary Powers Table (Memorise These)

PowerValue
2⁰1
2
4
8
2⁴16
2⁵32
2⁶64
2⁷128
2⁸256
8⁰1
8
64
512
16⁰1
16¹16
16²256
Key Takeaway: The fastest conversions use binary as a bridge — Octal↔Binary (3-bit groups) and Hex↔Binary (4-bit groups). For decimal, use repeated division (going into a new base) or multiply by place values (coming from a new base). Practice at least two worked examples from each conversion type before the exam.