TechKoMarg
utility

Binary to Decimal Converter — Number System Guide for Nepal CS Students

Convert binary, octal, decimal, and hexadecimal instantly. Complete guide with step-by-step conversion methods for BIT, BCA, CSIT students in Nepal and India. Free online converter.

·6 min read

Number system conversion is one of the most frequently tested topics in BCA, CSIT, BIT, and +2 Computer Science exams across Nepal and India. This guide explains every conversion method step by step and gives you a free tool to check your work instantly.

Number System Converter

Convert between binary, octal, decimal, and hexadecimal instantly — with step-by-step working shown

Try this free tool

The four number systems you need to know

SystemBaseDigits usedPrefix
Binary20, 10b
Octal80–70o
Decimal100–9none
Hexadecimal160–9, A–F0x

In hexadecimal: A=10, B=11, C=12, D=13, E=14, F=15

Binary to Decimal — step by step

Write the binary number, assign position values (powers of 2 from right to left), multiply, and add.

Example: Convert 1101 (binary) to decimal

Bit1101
Position3210
Power of 22³=82²=42¹=22⁰=1
Value1×8=81×4=40×2=01×1=1

Result = 8 + 4 + 0 + 1 = 13 (decimal)

Example: Convert 10110101 (binary) to decimal = 1×128 + 0×64 + 1×32 + 1×16 + 0×8 + 1×4 + 0×2 + 1×1 = 128 + 0 + 32 + 16 + 0 + 4 + 0 + 1 = 181

Decimal to Binary — step by step (division method)

Divide the number by 2 repeatedly, note the remainder each time, then read remainders bottom to top.

Example: Convert 45 (decimal) to binary

DivisionQuotientRemainder
45 ÷ 2221
22 ÷ 2110
11 ÷ 251
5 ÷ 221
2 ÷ 210
1 ÷ 201

Read remainders bottom to top: 101101 Verify: 32+8+4+1 = 45 ✓

Hexadecimal to Decimal

Each hex digit represents 4 binary bits. Multiply each digit by its power of 16.

Example: Convert 2AF (hex) to decimal

Digit2A (=10)F (=15)
Position210
Power of 1616²=25616¹=1616⁰=1
Value2×256=51210×16=16015×1=15

Result = 512 + 160 + 15 = 687

Decimal to Hexadecimal

Divide by 16, note remainders (using A–F for 10–15).

Example: Convert 255 to hexadecimal

DivisionQuotientRemainder
255 ÷ 161515 = F
15 ÷ 16015 = F

Read bottom to top: FF Verify: 15×16 + 15 = 255 ✓

Binary to Hexadecimal (shortcut — no decimal needed)

Group binary digits into sets of 4 from the right. Convert each group directly.

Example: Convert 11010111 to hexadecimal

  • Group from right: 1101 | 0111
  • 1101 = 8+4+1 = 13 = D
  • 0111 = 4+2+1 = 7 = 7
  • Result: D7

Octal to Decimal

Multiply each digit by its power of 8.

Example: Convert 347 (octal) to decimal = 3×64 + 4×8 + 7×1 = 192 + 32 + 7 = 231

Common conversions quick reference table

DecimalBinaryOctalHex
0000000
1000111
5010155
81000108
10101012A
15111117F
16100002010
25511111111377FF
256100000000400100
1024100000000002000400

Memorize the conversions for 0–15 (0–F in hex) — they are the building blocks of every other conversion.

Why number systems matter for Nepal college exams

In BCA, CSIT, BIT, and +2 Computer Science curricula across Nepal:

  • Number system conversion appears in almost every board exam
  • BCA entrance exams (Tribhuvan University) regularly include 4–6 conversion problems
  • IOE entrance (Pulchowk Engineering) tests binary, hex, and octal
  • NEB +2 Computer Science: number systems are Chapter 1 in all textbooks

Practice with the Number System Converter which shows the step-by-step working for each conversion — ideal for understanding, not just getting the answer.

Share this article