Toolverse

Text to Binary

Convert text to 8-bit binary and back. Encode any message into 0s and 1s, or paste binary to decode it — UTF-8 safe.

How to use it

Pick a direction, then type or paste into the box on the left. The converted result appears on the right and updates on every keystroke, so there is no button to press, and you copy the output when it looks right. Everything runs in your browser, so nothing is uploaded. In the Text to Binary direction, your text is first encoded as UTF-8 bytes, and each byte is written as eight bits with leading zeros, separated by spaces. Plain English letters, digits, and punctuation are single bytes, so each becomes one group of eight bits; accented letters, emoji, and other non-ASCII characters take two to four bytes, so they turn into several groups. The spacing makes it easy to read the output byte by byte. In the Binary to Text direction, paste your bits and they decode back to text. Whitespace is ignored, so it does not matter whether the binary is one long run or neatly spaced into groups of eight. The input must contain only 0 and 1, and the total number of bits must be a multiple of eight, since every character is at least one 8-bit byte. If those rules are not met, or the bytes do not form valid UTF-8, the tool shows a specific error instead of guessing. As a worked example, the two letters Hi encode to 01001000 01101001: capital H is byte value 72, which is 01001000 in binary, and lowercase i is 105, which is 01101001. Decoding those same bits in the other direction returns Hi exactly, and pasting them without the space works just as well. Converting between text and binary is a common exercise when learning how computers store characters, building or solving encoding puzzles, or teaching the link between ASCII, UTF-8, and raw bits. Because the whole conversion happens on your device, it is also safe for text you would rather not paste into an online service.

Frequently asked questions

How is the binary calculated?
Text is encoded as UTF-8 bytes, and each byte is shown as 8 bits. So ASCII letters are one group of 8 bits; emoji and accented characters use several.
Can I paste binary without spaces?
Yes. Spaces and line breaks are ignored on decode; the binary just needs to be a multiple of 8 bits made only of 0s and 1s.
Is my text sent anywhere?
No. The conversion runs entirely in your browser; nothing is uploaded.
Why do I get an error when decoding binary?
Decoding fails if the input contains characters other than 0 and 1, if the total number of bits is not a multiple of eight, or if the bytes do not form valid UTF-8. The error message names which rule was broken so you can fix the input.