Text to Binary Converter

Convert any text to 8-bit binary or decode binary back to readable text. English letters use one byte (their ASCII value); accents, emoji and other scripts are encoded as UTF-8 and may use several bytes.

5 characters
Each byte is 8 bits. English letters use one byte; other characters use UTF-8 (several bytes). Use Decode to turn binary back into text.Client-side · no upload

What Is Binary Code?

Binary code is the base-2 number system that underpins all digital computing. Unlike the decimal (base-10) system humans use daily, binary uses only two digits: 0 and 1. These two states correspond directly to the physical reality of electronic circuits, where a transistor can be either off (0) or on (1). Every piece of digital data — text, images, music, video, software — is ultimately stored and processed as sequences of binary digits (bits).

When we convert text to binary, we use a character encoding standard (typically ASCII or Unicode) to map each character to a number, then express that number in base-2. In ASCII, the letter "A" is assigned the decimal value 65, which in binary is 01000001. The letter "B" is 66 (01000010), "C" is 67 (01000011), and so on. Standard ASCII covers 128 characters (values 0–127), and each is written as one 8-bit byte. Characters outside ASCII — accents, emoji and other scripts — are encoded in UTF-8, where a single character can take several bytes.

How Binary Conversion Works

To convert a decimal number to binary, repeatedly divide by 2 and record the remainders. For 72 (the ASCII code for 'H'): 72 / 2 = 36 remainder 0, 36 / 2 = 18 remainder 0, 18 / 2 = 9 remainder 0, 9 / 2 = 4 remainder 1, 4 / 2 = 2 remainder 0, 2 / 2 = 1 remainder 0, 1 / 2 = 0 remainder 1. Reading the remainders from bottom to top gives 1001000, which padded to 8 bits is 01001000.

To convert binary back to decimal, multiply each bit by its positional power of 2 and sum. For 01001000: 0x128 + 1x64 + 0x32 + 0x16 + 1x8 + 0x4 + 0x2 + 0x1 = 64 + 8 = 72. Look up 72 in the ASCII table to get 'H'. This process is repeated for each 8-bit group to reconstruct the original text.

Why Binary Matters

Understanding binary is fundamental to computer science, electrical engineering, and information technology. Binary arithmetic is the foundation of processor operations — every calculation your computer performs is ultimately binary addition, subtraction, and logical operations (AND, OR, NOT, XOR). Network protocols, file formats, memory addressing, and data compression all rely on binary representation.

For everyday users, binary literacy helps with understanding file sizes (why a kilobyte is 1,024 bytes, not 1,000), color codes (RGB values as 8-bit channels), IP addresses (32-bit values split into octets), and subnet masks. Programmers work with binary through bitwise operations, flags, and low-level data manipulation.

Binary in Popular Culture

Binary code has become an iconic symbol of computing and technology. The scrolling green binary in The Matrix, binary-themed t-shirts, and "There are 10 types of people" jokes all draw from the cultural association between binary and computers. Binary-encoded messages appear in puzzles, geocaching challenges, and escape rooms as a way to add a technical layer to problem-solving.

Teachers use binary conversion as an engaging way to introduce students to number systems, the fundamentals of how computers work, and the concept of encoding information in different representations. The visual simplicity of 0s and 1s makes binary an accessible entry point to computer science concepts that might otherwise seem abstract.

Frequently Asked Questions

Binary code is the most fundamental number system used by computers. It uses only two digits — 0 and 1 — to represent all data. Each binary digit (bit) represents an on/off state in electronic circuits. Eight bits form a byte, which can represent a single character. The text "A" is represented as 01000001 in binary (decimal 65 in ASCII).
Each character in text has a corresponding ASCII (or Unicode) number. To convert text to binary, find each character's ASCII code and convert that number to base-2. For example, "H" has ASCII code 72, which in binary is 01001000. Repeat for each character and separate with spaces for readability.