Examples
Common words in binary code
Each letter becomes one 8-bit byte (ASCII). Click a row to load it into the translator.
| Word | Binary (ASCII, 8 bits per character) | Bytes | |
|---|---|---|---|
| HELLO | 01001000 01000101 01001100 01001100 01001111 | 5 | |
| SOS | 01010011 01001111 01010011 | 3 | |
| LOVE | 01001100 01001111 01010110 01000101 | 4 | |
| HI | 01001000 01001001 | 2 | |
| YES | 01011001 01000101 01010011 | 3 | |
| NO | 01001110 01001111 | 2 |
What binary code is
Binary is a way of writing numbers with only two digits, 0 and 1. Each digit is a bit; a group of eight bits is a byte, which can hold any value from 0 to 255. Computers use binary because their circuits have two stable states, off and on, and everything a computer stores (text, images, sound, programs) is ultimately a very long list of those two states.
Reading a binary number works like reading a decimal one, except each position is worth a power of 2 instead of a power of 10. From right to left the positions are worth 1, 2, 4, 8, 16, 32, 64 and 128. So 01000001 is 64 + 1 = 65.
How text becomes bytes: ASCII and UTF-8
Letters are not numbers, so a character encoding assigns a number to each character. The classic one is ASCII: capital A is 65, B is 66, lowercase a is 97, the space is 32, and the digit 0 is 48. Write each of those numbers as an 8-bit byte and you have the binary form of the text:
H= 72 =01001000i= 105 =01101001- so Hi =
01001000 01101001
ASCII only covers 128 characters: English letters, digits and basic punctuation. Everything else, from é to 日 to emoji, is handled by UTF-8, which keeps the ASCII bytes exactly as they are and uses two, three or four bytes for other characters. That is why this translator, which uses UTF-8, gives é as 11000011 10101001 (two bytes) while every English letter stays one byte.
Going the other way, the decoder splits your input into 8-bit groups, converts each to a number and looks up the character. Groups that are not valid binary are flagged, and if you paste a continuous run of bits without spaces it is chunked into bytes automatically.
Tips for reading binary by eye
- Capital letters start with
010, lowercase with011, digits with0011. A byte beginning with1is part of a multi-byte UTF-8 character. - The last five bits of a capital letter give its position in the alphabet:
01000001ends in00001= 1 = A,01011010ends in11010= 26 = Z. - Switching case flips one bit:
Ais01000001,ais01100001. Only the 32s bit changes. 00100000(32) is a space. In long strings it is the easiest byte to spot.
Binary vs Morse code: are they the same idea?
People often call Morse code "binary" because it has two symbols, dots and dashes. The comparison is tempting but not quite right. Binary digits are all the same length and are read in fixed groups of eight, so a byte has no need for separators. Morse uses signals of different lengths, and the silences between them are part of the code: a dash is three times a dot, and the gaps between letters and words carry meaning. Morse is better described as a variable-length code with three or four symbols (dot, dash, short gap, long gap), which is also why common letters like E (.) and T (-) are short and rare ones like Q (--.-) are long.
Both, though, are ways of writing text so that a simple physical signal can carry it: a telegraph key for Morse, a voltage for binary. The full comparison, with the same words shown in both systems, is on our Morse code vs binary code page, and you can try the Morse code translator on the same text to see the difference.
Where you will meet binary
Learning to read a few bytes is practical: it helps you understand file sizes (a kilobyte is about a thousand of those bytes), network addresses, color codes in CSS (each of the three channels is one byte), permissions on a Linux system and the error messages that mention "bit 7". It is also a favorite for puzzles, escape rooms and "secret message" activities in class, where a line of 0s and 1s makes a satisfying cipher that any student can decode with a chart.
ASCII reference
Binary code chart: letters and digits
Decimal value and 8-bit binary for A–Z and 0–9. Lowercase letters are the same with the third bit set to 1.
Click any tile to copy its byte. Need the dots and dashes instead? See the Morse code chart.
FAQ
Frequently asked questions
How do I convert text to binary code?
Look up each character's number in the ASCII/UTF-8 table and write that number in base 2 with eight digits. "H" is 72, which is 01001000. The translator above does this for every character as you type, including spaces (00100000) and punctuation.
How do I translate binary to text?
Split the bits into groups of eight, convert each group to a decimal number and look up the character with that code. 01001000 = 72 = "H". Switch the tool to Binary → Text and paste the bits; spaces between bytes are optional.
What is "I love you" in binary?
01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101 (UTF-8/ASCII, 10 bytes including the two spaces). You can type any phrase into the translator to get the same result and copy it.
Why are some characters two or more bytes?
ASCII only defines 128 characters. Accented letters, other alphabets and emoji are encoded in UTF-8, which uses 2 to 4 bytes per character. English letters, digits and common punctuation always stay at one byte.
Is Morse code a binary code?
Not strictly. Morse has signals of different lengths and uses silence as part of the code, while binary uses fixed-length symbols in fixed groups. Read the full comparison on the Morse code vs binary code page.
Does this binary translator store my text?
No. The conversion runs in your browser and nothing is sent to our servers.
Now try the same text in Morse
See how dots and dashes compare with 0s and 1s.