Tools
Log in
English

All converters

Text to binary

Write text as ones and zeros, one 8-bit byte per group, in UTF-8 or ASCII.

Result

Binary
Hex
Decimal
Unicode
More octal, code points
Octal
Code points (decimal)

Settings

Text turns into binary by encoding each character as bytes and writing each byte as eight bits. Type a short message and the bits appear in groups of eight, so the word Go becomes 01000111 01101111. UTF-8, UTF-16, EUC-KR and ASCII are all on offer, at no charge.

How to do it by hand

  1. Find the byte value of each character in the chosen encoding. In ASCII, A is 65.
  2. Write that byte in binary.
  3. Pad it on the left to eight digits, so 65 becomes 01000001.
  4. Leave a space between bytes so the message stays readable.

Worked examples

A

65 = 64 + 1

01000001

z

122 = 64 + 32 + 16 + 8 + 2

01111010

7 (the character)

55 = 32 + 16 + 4 + 2 + 1

00110111

Common mistakes

  • Dropping the leading zeros. 1000001 and 01000001 are the same value, but a byte list is far easier to read at a fixed eight bits.
  • Converting the character 7 as the number seven. As text, 7 is byte 55, which is 00110111.
  • Assuming every character is eight bits. In UTF-8 a Korean syllable is 24 bits and most emoji are 32.

Characters as 8-bit binary

CharacterDecimalBinary
A6501000001
B6601000010
C6701000011
a9701100001
b9801100010
c9901100011
04800110000
14900110001
(space)3200100000
!3300100001
?6300111111
@6401000000
가 (Korean, 3 bytes in UTF-8)234 176 12811101010 10110000 10000000

Questions people ask

How do I turn binary back into text?

Switch the direction to code to text, pick binary as the input form and paste the bits with a space between bytes.

Why is a space not empty in binary?

A space is a character too. It is byte 32, written 00100000.

Can I get the bits without spaces?

Yes. Pick no separator and the bytes run together as one long string.