First time I saw 01001000 01101001 on a screen, I thought someone had typed their password by sitting on the keyboard. Turns out those eight digits spell “Hi” — in the only language every computer on Earth speaks. Let’s decode it together, step by step, and by the end you will read binary like a party trick.

📅 Want a study plan for this topic?

Get a free 7-day learning plan in your calendar — one small lesson every day.

What Is Binary, Really?

Binary is a counting system that uses only two digits: 0 and 1. Your phone, your laptop, your Wi-Fi router — all of them think in binary, because deep inside, a computer is just billions of tiny switches that can only be ON or OFF. ON is 1. OFF is 0. That is the whole secret.

The main idea

We count in tens because we have ten fingers. Computers count in twos because a switch has only two states. Same counting idea, fewer digits — and once you see the pattern, it clicks fast.

In simple words

  1. Every digit in binary is called a bit — short for "binary digit".
  2. Eight bits make one byte, and one byte can store one letter, like A or H.
  3. Each position in a binary number is worth double the one before it: 1, 2, 4, 8, 16, 32, 64, 128.
  4. Add up the positions that have a 1, ignore the 0s — and you get the normal number.

Honestly, the doubling part is the only thing you need to memorise. Everything else is just adding.

Let's Decode 13 Into Binary

Here is the worked example I always use. Take the number 13 and turn it into binary, one divide-by-2 step at a time. Write down the remainder after every step, then read the remainders bottom to top.

Step 1 — 13 divided by 2 is 6, remainder 1. Write down 1.

Step 2 — 6 divided by 2 is 3, remainder 0. Write down 0.

Step 3 — 3 divided by 2 is 1, remainder 1. Write down 1.

Step 4 — 1 divided by 2 is 0, remainder 1. Write down 1. Stop here — we hit 0.

Read the remainders from the bottom up: 1, 1, 0, 1. So 13 in binary is 1101. Check it with the doubling trick: 8 + 4 + 0 + 1 = 13. It works.

Diagram showing how to convert 13 into binary by dividing by 2 and keeping the remainders, giving 13 = 1101
Animation showing the step-by-step conversion of 13 into binary, one divide-by-2 step at a time, giving 13 = 1101
DecimalBinaryHow to read it
00Nothing switched on
11Just the 1s place
210One 2, zero 1s
51014 + 1
81000One 8, the rest off
1311018 + 4 + 1
25511111111All eight switches on

Most beginners get stuck right here: they try to memorise every number. Don't. Just remember the doubling row — 1, 2, 4, 8, 16, 32, 64, 128 — and you can build any number up to 255 on the spot. I messed this up once in a class test by reading the remainders top to bottom instead of bottom to top. One small habit, and the whole answer flips.

Why Only Two Digits?

Inside your computer, a transistor is a switch smaller than a grain of sand — a modern chip packs billions of them. A switch can only be on or off, so the computer's whole world is 0s and 1s. Ten digits would need ten different voltage levels, and the hardware would be slower, hotter, and wrong far more often. Two states is fast, cheap, and almost never misread.

If you want to see what those switches actually build, read how the CPU flips billions of them every second, how RAM holds your open apps as patterns of 0s and 1s, and how algorithms turn those patterns into the apps you use daily.

Try It in Python — 30 Seconds

Open Python and type two lines. First, turn 13 into binary:

print(bin(13))   # 0b1101  (the 0b just means "this is binary")

Now go backwards:

print(int("1101", 2))   # 13

That is it. When I first tried this, I expected something complicated — instead Python did the whole divide-by-2 dance in one line. I recommend starting with bin() whenever binary feels abstract: type a number, see the 0s and 1s, and the pattern stops feeling like magic.

Test Your Understanding

What is the number 5 in binary?

  • A) 101
  • B) 110
  • C) 100
  • D) 111

(Answer: A — 4 + 1 = 5, so the 4s place and the 1s place are on: 101.)

Conclusion

Binary looks like a secret code, but it is just counting with two digits instead of ten. Every photo, song, and message on your devices is a long string of 0s and 1s — switches flipping on and off, billions of times a second. Learn the doubling row, practise bin() in Python, and the "secret code" becomes a party trick you can actually explain.

📅 Want a study plan for this topic?

Get a free 7-day learning plan in your calendar — one small lesson every day.

Related Articles

Written by Muhammad Junaid Niazi

Founder of The Geeks Guru — writing simple, practical tech and programming tutorials from Layyah, Pakistan.

Never miss a new article

Subscribe to The Geeks Guru newsletter and get every new article in your inbox.

Loading