How text becomes binary
Computers store every character as a number, and every number as a pattern of bits, the 0s and 1s of binary. This translator first encodes your text with UTF-8, the encoding used by almost every web page and modern app, and then writes each resulting byte as eight binary digits. The capital letter H is number 72, which is 01001000 in binary, and a lowercase i is 105, or 01101001. So “Hi” becomes 01001000 01101001.
Plain English letters, digits and common punctuation take one byte each, exactly as in the older ASCII standard. Accented letters such as é use two bytes, many symbols use three, and emoji use four. That is why “👋” turns into four groups of eight bits. The Multi-byte characters tile counts how many characters in your text needed more than one byte.
Converting binary back to text
Paste binary with or without spaces, commas or line breaks. If there are no separators, the digits are read in groups of eight from the left, so the total must be a multiple of eight. Groups shorter than eight digits, such as the 7-bit codes found in some textbooks, are padded with leading zeros. Groups written per character, like a 32-bit emoji, are split into bytes automatically.
The translator tells you exactly what is wrong when the input cannot be read: a character other than 0 or 1, a bit count that does not divide into bytes, or bytes that do not form valid UTF-8 text. That last error usually means a byte is missing or was typed incorrectly.
Spacing options
- Space between bytes: the most common style, eight digits per group.
- Space between characters: keeps all bytes of one character together, which makes emoji and accented letters easy to spot.
- No spaces: one long string, useful for puzzles and compact storage.
- One character per line: handy for teaching, since each line lines up with one letter.
Decimal, hexadecimal and octal
The same bytes are also shown in base 10, base 16 and base 8. Hex is what programmers usually see in debuggers and color codes, two digits per byte. Decimal is easiest to read, and octal appears in older systems and file permissions. If you need the bytes as Base64 for an email or a data URL, use the Base64 encoder and decoder. For other secret-message styles, try the Morse code translator, or count what you typed with the character counter.