Convert text to binary and binary to text with ASCII and Unicode support.
Binary is the base-2 representation that computers use internally, where every value is a sequence of zeros and ones. This tool converts readable text into its binary form and back again, showing each character as the 8 bits of the byte (or bytes) that encode it. It is a handy way to see exactly how text is stored, to work through computer-science exercises, or to debug low-level data.
The converter runs entirely in your browser. When encoding, each character is turned into its UTF-8 bytes and every byte is displayed as an 8-bit group: plain ASCII characters take a single byte, while accented characters and emoji take several, so the round-trip stays lossless. An optional hex view shows the same bytes in hexadecimal alongside the binary.
Decoding accepts binary with or without spaces between bytes and validates the input as it goes — only 0, 1, and whitespace are allowed, and the total bit count must be a multiple of 8. If the bytes do not form valid UTF-8 text, the tool reports the problem instead of returning garbled output. Nothing you enter is uploaded or stored.
One byte is 8 bits, and text is stored as bytes. Each byte is padded to a full 8-bit group so the binary lines up cleanly and can be decoded back one byte at a time.
No. Decoding works with or without spaces. The tool strips whitespace and then reads the bits in groups of eight, so the total number of bits must be a multiple of 8.
Characters are encoded as UTF-8, so anything outside basic ASCII uses more than one byte. Those extra bytes are shown as additional 8-bit groups and reassembled correctly when decoding.
Hex shows the exact same bytes as the binary output, written in base-16. It is a more compact way to read the underlying byte values.
No. All conversion happens locally in your browser, so the text you enter never leaves your device.