Binary Translator
This binary translator turns text into binary code and binary code back into text as you type. It handles any language and emoji (UTF-8), and includes a number converter for binary, octal, decimal and hex.
Type in either box and the other one updates as you type. Binary can be spaced or unspaced, in 8-bit or 7-bit groups.
Show steps
Each character has a code point. UTF-8 stores it in one to four bytes, and each byte is written as 8 binary digits.
| Character | Code point | Binary | Decimal | Hex |
|---|
Translate a number, not text: edit any field and the other three update. Works with numbers of any size.
Translate Between Text and Binary Code
Computers store every letter, digit and emoji as a pattern of 1s and 0s. This binary translator shows you that pattern: type a word and see its binary code, or paste a string of 0s and 1s and read the hidden message.
Both boxes are live, so you can edit either side, and the steps table breaks the translation down character by character. Everything runs in your browser.
How to use the binary translator
- Text to binary: type or paste text into the Text box. The binary code appears on the right, one 8-digit group per byte.
- Binary to text: paste binary into the Binary code box. Spaces between bytes are optional, and 7-bit groups are detected automatically.
- Check the working: open Show steps to see the code point, bits, decimal and hex value of every character.
- Numbers: to convert a number such as 181 rather than the characters "1", "8" and "1", use the number base converter below the translator.
How a binary translator works
Every character has a number, called its code point. The letter H is 72, i is 105 and the euro sign € is 8364. The translator writes those numbers in base 2 using UTF-8, the encoding used by almost every website. Code points from 0 to 127 (the ASCII range) take one byte, while other characters take two, three or four bytes.
For "Hello", each letter fits in one byte:
| Character | Code point | Binary |
|---|---|---|
H | 72 | 01001000 |
e | 101 | 01100101 |
l | 108 | 01101100 |
l | 108 | 01101100 |
o | 111 | 01101111 |
Going the other way, the translator splits the binary into 8-bit groups, turns each group into a number and decodes the bytes as UTF-8 text.
Uppercase alphabet in binary
Capital letters run from 65 (A) to 90 (Z), so they all start with 010. The last five bits give the position of the letter in the alphabet: A = 00001, B = 00010 and so on.
| Letter | Binary | Letter | Binary |
|---|---|---|---|
A | 01000001 | N | 01001110 |
B | 01000010 | O | 01001111 |
C | 01000011 | P | 01010000 |
D | 01000100 | Q | 01010001 |
E | 01000101 | R | 01010010 |
F | 01000110 | S | 01010011 |
G | 01000111 | T | 01010100 |
H | 01001000 | U | 01010101 |
I | 01001001 | V | 01010110 |
J | 01001010 | W | 01010111 |
K | 01001011 | X | 01011000 |
L | 01001100 | Y | 01011001 |
M | 01001101 | Z | 01011010 |
Lowercase letters are the same pattern with one extra bit set (32), so a is 01100001. See the text to binary converter for lowercase letters, digits and punctuation.
Translating text vs translating numbers
A common surprise: typing 42 into a text translator gives 00110100 00110010, not 101010. That is because the translator encodes the characters "4" (code 52) and "2" (code 50). The number forty-two in binary is 101010.
Use the number base converter when you mean a quantity. For a worked solution, use the decimal to binary or binary to decimal converters, which show every step.
What people use a binary translator for
- Learning: seeing how text is stored is a classic first lesson in computer science.
- Puzzles: binary messages appear in escape rooms, geocaches and greeting cards.
- Debugging: checking the exact bytes of a string helps find hidden characters, such as a non-breaking space (
11000010 10100000). - Hex instead of binary: programmers often read bytes in hex. Convert single values with hex to binary or work out bit operations with the binary calculator.
Frequently Asked Questions
Common questions about translating text to binary and binary to text.
Paste the binary code into the Binary code box. The translator splits it into 8-bit bytes, converts each byte to a number and shows the text. For example 01001000 01101001 is "Hi".
Type your name into the Text box and copy the result. Each letter becomes 8 binary digits, so a five-letter name is 40 bits.
Lowercase "hello" is 01101000 01100101 01101100 01101100 01101111. With a capital H, the first byte is 01001000 instead.
A byte is 8 bits and is the basic unit computers store text in. Plain ASCII needs only 7 bits, but text is saved in whole bytes, so a leading 0 is added.
Yes. It uses UTF-8, so accented letters, Chinese, Arabic and emoji all work. An emoji such as 😀 takes four bytes, which is 32 bits.
That works too. The translator splits unspaced binary into groups of 8, or 7 if the length only divides by 7.
No. Morse code uses dots and dashes of different lengths for letters, while binary uses fixed groups of bits that stand for numbers.
No. The translation happens in your browser, so nothing you type is uploaded.