🔢 Binary Code Lab

Learn how computers think with 0s and 1s!

What is Binary?

🤔 Binary is the language computers understand. It only uses two digits: 0 and 1.

Think of it like a light switch - it's either OFF (0) or ON (1)!

Computers use billions of tiny switches called transistors. Each one can be on or off, creating all the games, videos, and websites you love!

How to Count in Binary

Each position is worth double the one before it (from right to left):

128
0
64
0
32
0
16
0
8
0
4
0
2
0
1
0

Examples

0
00000000
1
00000001
2
00000010
3
00000011
5
00000101
10
00001010
42
00101010
255
11111111

Interactive Binary Counter

Click the bits to toggle them on (1) or off (0). Watch the decimal number change!

Decimal Value:
0

💡 Challenge: Can you make these numbers?

• Your age • Today's date • 100 • 200 • 255 (maximum!)

Binary Translator

📝 Text to Binary

🔢 Binary to Text

💡 How it works: Each letter has a number (A=65, B=66, a=97, etc.). That number is converted to binary!

Try typing your name and see it in binary! Then copy the binary and convert it back.

What number is this in binary?
00000000
0
Correct
0
Streak 🔥
0
Total

Secret Binary Messages

Decode the secret message! Click "Decode" to reveal it.

01001000 01100101 01101100 01101100 01101111 00100001
???

Create Your Own Secret Message!

0
Best Streak