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.

Binary code

                        
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.

CharacterCode pointBinaryDecimalHex

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.

Text converted into binary codeHi01101001 …Text toBinary

How to convert text to binary

  1. Type or paste your text into the Text box.
  2. Choose the encoding and separator. 8-bit UTF-8 with spaces is the most common format.
  3. 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":

CharacterDecimalBinary
h10401101000
i10501101001

Characters outside ASCII take more bytes in UTF-8: é is two bytes (11000011 10101001) and the Chinese character 你 is three.

Lowercase letters in binary

LetterBinaryLetterBinary
a01100001n01101110
b01100010o01101111
c01100011p01110000
d01100100q01110001
e01100101r01110010
f01100110s01110011
g01100111t01110100
h01101000u01110101
i01101001v01110110
j01101010w01110111
k01101011x01111000
l01101100y01111001
m01101101z01111010

Digits, space and punctuation in binary

Note that the digit "7" is the character 55, not the number 7:

CharacterDecimalBinaryCharacterDecimalBinary
0480011000055300110101
1490011000165400110110
2500011001075500110111
3510011001185600111000
4520011010095700111001
␠ space3200100000!3300100001
.4600101110?6300111111

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.