Coding

Binary translator

Computers store everything as 0s and 1s. Flip the switches or type your name, and watch it happen.

A sloth with glasses typing on a computer, with 0s and 1s floating around

Flip the switches

Each switch is one bit. Eight bits make one letter.

A
65in decimal
How does it work?

64 + 1 = 65, and 65 is the code for “A”.

Each switch is worth double the one to its right: 1, 2, 4, 8, 16, 32, 64, 128. Add up the switches that are on and you get a number from 0 to 255. Computers agree on which number means which letter. That list is called ASCII.

Translate

Tap a letter to load it into the switches.

Numbers

Type in either box. The other one follows.

Questions

What is binary?

Binary is a way of writing numbers with only two digits, 0 and 1. Computers use it because a tiny switch inside a chip is either off (0) or on (1). Everything you see on a screen, from letters to photos, is stored as long rows of these switches.

How do I write my name in binary?

Type your name in the translator. Each letter becomes a group of 8 bits. For example, “A” is 01000001 and “a” is 01100001: capital and small letters have different codes.

Why are emoji longer than letters?

Plain letters fit in one byte (8 bits). Accents and emoji need more, so they use two to four bytes. That system is called UTF-8, and it’s how almost every website stores text.