How text becomes binary
Computers store text as bytes, and a byte is eight bits — eight 0s and 1s. The rules that map characters to bytes are the encoding, and almost everything today uses UTF-8. In UTF-8 the basic English letters, digits and punctuation take one byte each and match ASCII exactly: H is 72, or 01001000. Other characters take two to four bytes — é is 11000011 10101001, and most emoji take four.
This binary translator encodes your text with the browser's own UTF-8 encoder and shows every byte three ways: binary, hex (two digits per byte, 00 to FF) and decimal (0 to 255).
Reading binary back
Binary code is accepted with or without spaces. Groups separated by spaces, commas or new lines can be up to eight bits each and are padded on the left, so the seven-bit groups some other converters produce (1001000 for H) still decode. An unbroken run must be a multiple of eight bits, because there is no way to tell where one byte ends otherwise.
The bytes are then checked against UTF-8's rules before anything is shown. If a byte cannot start a character, or a multi-byte character is cut short, the error names the byte by position — usually a sign that a bit was lost or a group was split in the wrong place.
The encoding is defined in RFC 3629, UTF-8, a transformation format of ISO 10646. For whole numbers in binary rather than text, use the number base converter.