Binary looks like an endless wall of zeros and ones, but decoding it is mechanical: once you know the three steps, you can read short messages by hand. This guide explains how computers store text as binary, walks through worked examples, and covers the mistakes that turn messages into nonsense. If you just want the answer, paste the code into the binary translator.
How text becomes binary
Computers store everything as numbers, and text is no exception. Every character has a number:
- ASCII, a standard from the 1960s, gives numbers 0 to 127 to English letters, digits, punctuation and control codes. A is 65, a is 97, a space is 32.
- UTF-8, the encoding used by almost every website today, keeps the ASCII numbers for those characters and adds every other script and emoji, using two to four bytes for them.
Binary is just a way of writing those numbers with only two digits. Eight binary digits make a byte, which can hold a number from 0 to 255.
Step 1: Split into bytes
Group the digits into blocks of eight, starting from the left. Spaces usually already separate them:
01001000 01100101 01111001
If the binary has no spaces, count off eight digits at a time. The total number of digits should be a multiple of 8.
Step 2: Turn each byte into a number
Each position in a byte has a value, doubling from right to left:
| Position | 1st | 2nd | 3rd | 4th | 5th | 6th | 7th | 8th |
|---|---|---|---|---|---|---|---|---|
| Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Add up the values wherever there is a 1:
01001000= 64 + 8 = 7201100101= 64 + 32 + 4 + 1 = 10101111001= 64 + 32 + 16 + 8 + 1 = 121
Step 3: Look up the characters
Using the ASCII table, 72 is H, 101 is e and 121 is y. So the message is Hey.
A short ASCII reference
| Range | Caratteri |
|---|---|
| 32 | Spazio |
| 48 to 57 | Digits 0 to 9 |
| 65 to 90 | Capital letters A to Z |
| 97 to 122 | Small letters a to z |
| 33, 44, 46, 63 | ! , . ? |
A handy pattern: capital letters start with 010, small letters with 011. Changing that third bit switches between A (01000001) and a (01100001), because they are exactly 32 apart.
Worked example
Decodifica 01000011 01101111 01100100 01100101:
- Bytes: 01000011, 01101111, 01100100, 01100101
- Numbers: 64+2+1 = 67; 64+32+8+4+2+1 = 111; 64+32+4 = 100; 64+32+4+1 = 101
- Characters: C, o, d, e
The answer is Code.
Letters beyond English
Accented letters, other alphabets and emoji use more than one byte in UTF-8. For example, é is two bytes (11000011 10101001) and 😀 is four. You cannot decode those bytes one by one with the ASCII table; they have to be read together. The binary translator handles UTF-8 automatically, so these come out correctly.
Common mistakes
- A missing or extra digit. One slip shifts every following byte and turns the rest into nonsense. Count the digits.
- Reading right to left. The first digit of each byte is worth 128, the last is worth 1.
- Seven-bit groups. Some puzzles write ASCII in 7 bits without the leading 0. Add a 0 to the front of each group.
- It is not binary at all. Digits 0 to 9 and letters a to f are hexadecimal; use the hex decoder. Letters, digits, + and / ending in = are Base64; use Base64 decode.
Going the other way
To write text in binary, choose Testo in binario in the binary translator. It is a fun way to make a coded message for a friend, a gift engraving or a classroom puzzle. Related tools: ASCII codes shows the decimal numbers, and the Morse code translator writes text in dots and dashes.
Where you meet binary in real life
- Puzzles and escape rooms, where a string of zeros and ones hides a clue or a door code.
- Computer science lessons, where decoding by hand teaches how computers store text.
- Gifts and T-shirts with a name or a message written in binary.
- Debugging, where developers look at the raw bytes of a file or a network message, usually written in hexadecimal rather than binary because it is shorter.
Summary
To decode binary to text, split the digits into bytes, add up the place values (128, 64, 32, 16, 8, 4, 2, 1) for each byte, and look up the characters: 01001000 01101001 is 72 and 105, which is Hi. For anything longer, or for text with accents and emoji, paste it into the free binary translator, which decodes UTF-8 as you type.