Text to Binary Converter

Convert any text to 8-bit binary code, or decode binary back to readable text instantly.

How it works

Each character is converted to its ASCII code, then represented as an 8-bit binary number. For example: A = 01000001, a = 01100001, space = 00100000. Binary bytes are separated by spaces.

What is binary code?

Binary is the fundamental language of computers. Every piece of data — text, images, audio, and video — is ultimately stored and processed as a sequence of 1s and 0s. The binary number system uses base 2, where each digit (called a bit) can only be 0 or 1. Eight bits make up a byte, which can represent 256 different values (0–255). In ASCII encoding, every printable character maps to a specific numeric value between 32 and 126.

Text to binary conversion explained

When you convert text to binary, each character is first mapped to its ASCII (or Unicode) numeric value. That number is then written in base 2 as an 8-bit sequence, padded with leading zeros if necessary. For example, the letter "H" has ASCII code 72. In binary, 72 is 1001000 — padded to 8 bits that becomes 01001000. The word "Hi" in binary is: 01001000 01101001.

How to decode binary to text

To convert binary back to text, paste binary code where each byte is 8 bits separated by spaces. The tool reads each 8-bit group, converts it from base 2 to a decimal number, then looks up the corresponding ASCII character. If a binary sequence doesn't map to a valid character, it will be shown as a question mark.

Common uses

Binary conversion is used in computer science education, programming puzzles, escape room games, and data encoding exercises. Understanding binary helps programmers understand how computers represent data internally, work with bitwise operations, and debug low-level issues. It's also used in some steganography and data obfuscation techniques.