Skip to content
ToolMoose

Binary Translator

Convert text to binary and decode binary back to readable text, instantly.

Binary output
01001000 01101001
2 bytes (16 bits)

Worked examples

"Hi" to binary
Hi becomes 01001000 01101001. That is two 8-bit bytes, one per letter.
"A" to binary
The capital A is code point 65, which is 01000001 in 8-bit binary.
Decode 01001000 01101001
Splits into two bytes, 72 and 105, which decode back to the text Hi.
Emoji round trip
A single emoji encodes to four bytes (32 bits) because UTF-8 uses multiple bytes for characters outside the basic ASCII range.

How the binary translator works

Computers do not store letters. They store numbers, and those numbers are written in binary, a base-2 system that uses only two digits: 0 and 1. This tool moves between the text you read and the binary a machine sees, in both directions.

Text to binary

Turning text into binary happens in two steps:

  1. Look up each character’s number. Using the UTF-8 encoding, every character maps to one or more bytes. The letter H is byte number 72, and i is byte number 105.
  2. Write each byte in 8-bit binary. The number 72 in binary is 1001000, padded to eight digits it is 01001000. The number 105 is 01101001.

So Hi becomes:

01001000 01101001

Each group of eight digits is one byte, and one byte here is one letter. The spaces are just for readability; the machine sees a continuous stream of bits.

Binary to text

Decoding reverses the process:

  1. Strip the spaces so you are left with a clean run of 0s and 1s.
  2. Split into 8-bit groups. 0100100001101001 splits into 01001000 and 01101001.
  3. Convert each group to a number. 01001000 is 72, 01101001 is 105.
  4. Map the numbers back to characters with UTF-8. Byte 72 is H, byte 105 is i, giving Hi.

If the input has characters other than 0 and 1, or the bit count is not a multiple of 8, the bytes cannot line up cleanly, so the translator shows a short message instead of guessing.

Bits, bytes, and encodings

A bit and a byte

A bit is the smallest unit of data, a single 0 or 1. Group eight bits into a byte and you can count from 0 to 255, which is 256 distinct values. That range is enough to cover every English letter (upper and lower case), the digits 0 to 9, and common punctuation, which is why classic ASCII text is exactly one byte per character.

ASCII and UTF-8

ASCII is the original scheme, defining 128 characters (codes 0 to 127), each in a single byte. It handles unaccented English perfectly but has no room for anything else.

UTF-8 is the modern standard and a superset of ASCII. Plain ASCII characters still use one byte, so A is 01000001 in both. But UTF-8 can also represent every character in Unicode by using up to four bytes. An accented é takes two bytes, and most emoji take four. This translator uses UTF-8 in both directions, so accented text and emoji survive a round trip intact.

A worked example

Take the word Cat:

  • C is byte 67, which is 01000011.
  • a is byte 97, which is 01100001.
  • t is byte 116, which is 01110100.

The full binary is 01000011 01100001 01110100, three bytes for three letters.

Common uses

  • Learning and teaching: a hands-on way to see how characters map to numbers and bits when studying computer science or the ASCII table.
  • Puzzles and games: escape rooms, geocaching, and CTF challenges often hide messages as strings of 0s and 1s.
  • Debugging and curiosity: checking exactly how many bytes a piece of text takes, or how a particular character is encoded.
  • Fun messages: writing a note in pure binary for someone to decode.

Binary is not encryption. Anyone can decode it in seconds, so treat it as a representation of text, not a way to keep secrets.

Frequently asked questions

How does text turn into binary?
Every character is stored as a number using a character encoding. This tool uses UTF-8: each character becomes one to four bytes, and each byte is written as eight binary digits (bits). The letter H is byte 72, which is 01001000. Stringing those bytes together gives the binary for your whole message.
What is the difference between a bit and a byte?
A bit is a single binary digit, either 0 or 1. A byte is a group of 8 bits and can represent 256 different values (0 to 255). Plain English letters, digits, and punctuation each fit in one byte, so this translator groups its output into 8-bit chunks separated by spaces.
Why does one emoji produce more than 8 bits?
ASCII only covers 128 characters, so it needs just one byte each. UTF-8 extends this to every character in Unicode, and characters beyond the basic set (accented letters, symbols, emoji) use two, three, or four bytes. That is why an emoji can be 32 bits while a plain letter is 8.
Can I decode binary that has no spaces?
Yes. The translator strips all whitespace before decoding, so 0100100001101001 and 01001000 01101001 give the same result. The only requirement is that the total number of bits is a multiple of 8, since each byte is 8 bits.
Why do I get an error when decoding?
Two things cause an error. First, if the input contains anything other than 0s and 1s (spaces aside). Second, if the number of bits is not a multiple of 8, because it cannot be split into whole bytes. Fix the stray characters or pad the length to the nearest multiple of 8.

Last updated: 2026-07-01