Skip to content
Binary Translator
Menu

Text to Binary Converter

Type or paste any text to turn it into binary code. Choose spaces between bytes, no spaces, or one byte per line.

Updated · UTF-8 text encoding

Separate bytes with

Binary code

01001000 01100101 01101100 01101100 01101111

5 bytes, 40 bits. Text is encoded as UTF-8.

How English becomes binary

  1. Each character gets a number from the ASCII or Unicode table: H is 72, e is 101, a space is 32.
  2. Each number is written in binary: 72 is 1001000.
  3. The binary is padded to a full byte of 8 digits with zeros on the left: 01001000.

So "Hey" becomes 01001000 01100101 01111001. To see how the number-to-binary step works on its own, try the decimal to binary converter, which shows the division steps.

Text with accents, symbols and emoji

English letters, digits and common punctuation each fit in one byte. Other characters take more, because the converter uses UTF-8, the encoding behind almost all websites:

CharacterBytesBinary
A101000001
é211000011 10101001
€311100010 10000010 10101100
😀411110000 10011111 10011000 10000000

That's also why the byte count under the result can be higher than the number of characters you typed.

Spaces or no spaces?

Spaces between bytes make binary far easier to read and check, so that's the default. Without spaces the message is one long run, which still decodes correctly as long as no digit goes missing. Puzzles and classroom exercises often use the spaced form; programs usually store the bytes with no separator at all. To decode a message back to words, use the binary to text converter.

Questions people ask

How do you write your name in binary?

One 8-digit byte per letter. "Sam" is 01010011 01100001 01101101.

What is a space in binary?

00100000 (character 32).

Are capital letters different in binary?

Yes: A is 01000001 and a is 01100001. Only the bit worth 32 changes.

Sources

More binary converters