Binary Translator

Convert text to binary and binary back to text.

Translate text into binary and binary back into text. Each byte of the UTF-8 encoding is shown as eight bits separated by spaces, so ASCII letters take 8 bits and other characters take more. It is useful for learning how text is stored, for puzzles and for checking encoded data.

What is binary text encoding?

Computers store text as numbers, and numbers as bits. In UTF-8, the dominant text encoding, each character is turned into one to four bytes. ASCII characters such as letters and digits use one byte, so the letter H (code 72) is 01001000. Characters outside ASCII, like accented letters, use two or more bytes. A binary translator writes each byte as eight binary digits. Converting back groups the digits into bytes and decodes them as UTF-8, so the number of bits must be a multiple of eight.

How to use Binary Translator

  1. Enter your input Type text, or paste a series of 0 and 1 digits.
  2. Choose a direction Click Text to binary or Binary to text.
  3. Read the output Bytes appear as 8-bit groups, or as decoded text.
  4. Copy the result Use the copy button on the Output box.

Frequently asked questions

Why does one character give more than 8 bits?

Characters beyond ASCII need two to four bytes in UTF-8, and each byte is shown as an 8-bit group.

Can I separate bits without spaces?

Yes. Spaces and commas are removed before decoding, so a continuous string of bits works if the length is a multiple of eight.

Is this the same as ASCII codes?

For ASCII characters the bytes match their ASCII codes. For other characters it shows UTF-8 bytes, not code points.

Does it support 7-bit binary?

No. Every group must be a full 8-bit byte, so pad 7-bit values with a leading zero.

What is the binary for a space?

A space is 00100000, ASCII code 32.