Binary Translator

Type text to see it as binary code, the zeros and ones that computers store, or paste binary to read it as text: the translator recognises which one you entered. Each character becomes one or more bytes of eight bits, separated by spaces.

Runs in your browser — nothing is uploadedUseful for:School studentsUniversity studentsDevelopers

Characters are encoded in UTF-8, the standard of the web, so Cyrillic, Arabic, Chinese and emoji work as well as English letters. You can also show the bytes in hexadecimal, decimal or octal, and look up letters and digits in the table below.

How to use it

  1. Type or paste text, or binary code made of 0 and 1.
  2. The direction is detected automatically, or you can choose it.
  3. For text, choose binary, HEX, decimal or octal, and whether to separate the bytes with spaces.
  4. Copy the result, or press Swap to translate it back.

Common uses

  • Learning how computers store text in a computer science lesson.
  • Writing a secret message or a greeting for a friend in binary.
  • Decoding binary from a puzzle, a T-shirt or an escape room.
  • Checking the UTF-8 bytes of a character while programming.

Examples

TextBinary
Hi01001000 01101001
A01000001Byte 65 in decimal.
Я11010000 10101111Cyrillic letters take two bytes in UTF-8.
I ❤01001001 00100000 11100010 10011101 10100100The heart takes three bytes.

Frequently asked questions

How is text converted to binary?

Each character is first turned into bytes with UTF-8, then every byte is written as eight binary digits. The letter A is byte 65, which is 01000001 in binary; a lowercase a is 97, or 01100001.

Why do some letters take two or more bytes?

UTF-8 uses one byte for English letters, digits and common symbols, two bytes for Cyrillic, Greek, Arabic and Hebrew letters, three for most Chinese characters and four for most emoji. That is why Я becomes 11010000 10101111.

Do I need spaces between the bytes to decode?

No. The translator reads bytes separated by spaces, commas or line breaks, and an unbroken string of bits is cut into groups of eight.

Why can't my binary be decoded?

Binary may contain only 0 and 1. An unbroken string must have a multiple of eight digits, and the bytes must form valid UTF-8 text; the message under the result says which of these failed.