Binary to Decimal (Bo Ma Hoa Nhi Phan)- Conversion Guide

Binary to Decimal Conversion: What You Actually Need to Know

If you're here, you probably need to convert binary to decimal right now — not tomorrow, not after reading a 20-minute tutorial. This guide gives you the methods, tools, and practical examples to get it done.

Binary (base-2) and decimal (base-10) are just two ways of representing the same numbers. Your computer thinks in 1s and 0s. You think in 0-9. Converting between them is a basic skill that comes up more often than you'd expect — programming, networking, electronics, job interviews.

Why Binary to Decimal Conversion Matters

Binary is the language of computers. Every byte, every IP address, every piece of data in your machine is stored as sequences of 1s and 0s. You don't need to be a programmer to encounter this.

Common situations where you'll need this:

The Two Conversion Methods

You have two approaches. Pick based on how much math you want to do.

Method 1: Positional Notation (Manual Calculation)

This is the standard way. You multiply each binary digit by its place value and add everything up.

Each position in a binary number represents a power of 2, starting from the right:

Example: Convert 1101₂ to decimal

1×2³ + 1×2² + 0×2¹ + 1×2⁰

= 1×8 + 1×4 + 0×2 + 1×1

= 8 + 4 + 0 + 1

= 13

Method 2: Doubling (Running Total)

Easier for long binary strings. Start from the left, double your total, add the next digit.

Example: Convert 1101₂ to decimal

Start with 0

0×2 + 1 = 1

1×2 + 1 = 3

3×2 + 0 = 6

6×2 + 1 = 13

This method works fast once you get the hang of it. Most developers prefer it for quick mental conversions.

Quick Reference Table

Here are the most common binary-decimal conversions you'll encounter:

Binary Decimal Hex
0000 0 0
0001 1 1
0010 2 2
0100 4 4
1000 8 8
1111 15 F
11111111 255 FF

Decimal to Binary: The Reverse Process

Sometimes you need to go the other way. Divide by 2, keep the remainders.

Example: Convert 13 to binary

13 ÷ 2 = 6 remainder 1

6 ÷ 2 = 3 remainder 0

3 ÷ 2 = 1 remainder 1

1 ÷ 2 = 0 remainder 1

Read remainders from bottom to top: 1101

Tools Comparison

Sometimes you just need the answer fast. Here's what's available:

Tool Best For Limitations
Built-in calculators (Windows/Mac) Quick one-off conversions Programmer mode only, learning curve
Online converters Batch conversions, large numbers Requires internet access
Python (int() function) Automated scripts Requires coding knowledge
Mental calculation Interviews, quick checks Error-prone for long numbers

Common Mistakes to Avoid

How to Get Started (Practical Steps)

Step 1: Identify the binary number you need to convert

Step 2: Write out the place values (powers of 2) from right to left

Step 3: Multiply each digit by its place value

Step 4: Add all the results together

Step 5: Verify with a calculator or the doubling method

Practice with small numbers first. Start with 4-bit numbers (0000 to 1111) before moving to 8-bit numbers. Once you can convert 11001010 without thinking, you're set.

Real-World Application: IPv4 Addresses

Every IP address like 192.168.1.1 is four 8-bit binary numbers. The value 192 in decimal is 11000000 in binary. Each octet ranges from 0 to 255 — that's 256 possible values per octet, which comes from 2⁸.

Understanding this makes subnetting and networking configuration actually make sense instead of being magic numbers you copy-paste.

Bottom Line

Binary to decimal conversion is straightforward once you understand place values. Use positional notation for accuracy, the doubling method for speed. Memorize the powers of 2 up to 2¹⁰ (1024) and you'll handle most practical cases without tools.

If you're working with computers professionally, this is a skill worth having solid. Not because you'll use it daily, but because it shows you understand how the systems actually work underneath the abstraction.