Text to Binary Converter
Convert text to binary code as you type. Choose 8-bit UTF-8 for any language and emoji or 7-bit ASCII for plain English, pick a separator and copy the binary, hex or decimal bytes.
UTF-8 handles every language and emoji. 7-bit ASCII is the classic format for plain English text.
| Hex bytes | | |
|---|---|---|
| Decimal bytes | |
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 |
|---|
Turn Any Text into Binary Code
Every character you type is stored as a number, and every number is stored as bits. This text to binary converter shows those bits for any word, sentence or emoji, updating with each keystroke.
Pick 8-bit UTF-8, the encoding used across the web, or 7-bit ASCII for classic computer-science exercises. You also get the same bytes in hex and decimal, and a table that explains every character.
How to convert text to binary
- Type or paste your text into the Text box.
- Choose the encoding and separator. 8-bit UTF-8 with spaces is the most common format.
- Copy the binary code, or copy the hex or decimal bytes instead.
How text to binary conversion works
Each character is looked up in the character table to get its number: lowercase a is 97, a space is 32. That number is then written in base 2 and padded with leading zeros to fill a byte. For "hi":
| Character | Decimal | Binary |
|---|---|---|
h | 104 | 01101000 |
i | 105 | 01101001 |
Characters outside ASCII take more bytes in UTF-8: é is two bytes (11000011 10101001) and the Chinese character 你 is three.
Lowercase letters in binary
| Letter | Binary | Letter | Binary |
|---|---|---|---|
a | 01100001 | n | 01101110 |
b | 01100010 | o | 01101111 |
c | 01100011 | p | 01110000 |
d | 01100100 | q | 01110001 |
e | 01100101 | r | 01110010 |
f | 01100110 | s | 01110011 |
g | 01100111 | t | 01110100 |
h | 01101000 | u | 01110101 |
i | 01101001 | v | 01110110 |
j | 01101010 | w | 01110111 |
k | 01101011 | x | 01111000 |
l | 01101100 | y | 01111001 |
m | 01101101 | z | 01111010 |
Digits, space and punctuation in binary
Note that the digit "7" is the character 55, not the number 7:
| Character | Decimal | Binary | Character | Decimal | Binary |
|---|---|---|---|---|---|
0 | 48 | 00110000 | 5 | 53 | 00110101 |
1 | 49 | 00110001 | 6 | 54 | 00110110 |
2 | 50 | 00110010 | 7 | 55 | 00110111 |
3 | 51 | 00110011 | 8 | 56 | 00111000 |
4 | 52 | 00110100 | 9 | 57 | 00111001 |
␠ space | 32 | 00100000 | ! | 33 | 00100001 |
. | 46 | 00101110 | ? | 63 | 00111111 |
7-bit ASCII or 8-bit UTF-8?
- 7-bit ASCII covers the 128 basic characters: English letters, digits and punctuation. Each character is exactly 7 bits, so A is
1000001. Textbooks and puzzles often use it. - 8-bit UTF-8 is what computers really store. ASCII characters get a leading 0 (A is
01000001) and every other character uses 2 to 4 bytes. Choose it for names with accents, other alphabets and emoji.
Which separator to use
- Space: the easiest to read and the format most decoders expect.
- No separator: a compact string for puzzles, bracelets and messages. The binary to text converter can still decode it.
- Comma or new line: handy when pasting the bytes into code, a spreadsheet or a list.
- Numbers: to convert the number 42 rather than the characters "4" and "2", use decimal to binary.
Ideas for binary text
Binary names make popular gifts: a bracelet with black and white beads for 1 and 0, a cross-stitch pattern or a message on a birthday card. A five-letter name such as "Emily" is 40 bits. Teachers also use text to binary to show how a computer stores a message, and developers use the hex bytes to check exactly what a string contains.
Frequently Asked Questions
Common questions about converting text to binary code.
Type the text above and copy the result. Each character is replaced by its character code written as 8 binary digits.
Lowercase a is 97, which is 01100001. Capital A is 65, which is 01000001.
A space is character 32, which is 00100000.
01001001 00100000 01101100 01101111 01110110 01100101 00100000 01111001 01101111 01110101, ten bytes including the two spaces.
Each character becomes 8 digits, plus a separator. Accented letters and emoji also use two to four bytes each in UTF-8.
The text contains a character outside the 128 ASCII characters, such as é, “curly quotes” or an emoji. Switch to 8-bit UTF-8.
No. It is a standard encoding that anyone can decode, so do not use it to hide private information.
Yes, with the binary to text converter or the two-way binary translator.