Text to Binary Converter · Tutorial
How to decode a binary message into text
5 min readbeginnerUpdated
Someone sent you a message written in binary, or you found a row of eight-digit binary numbers in a puzzle, a T-shirt slogan or a coding exercise. This tutorial decodes it into text, explains why some characters need more than eight bits, and shows what to check when the result looks wrong.
What you need
- The Text to Binary Converter
- The binary message (the Try it button loads one, already in decoding mode)
Steps
Set the direction to decode
Choose Codes → text under Convert and keep Binary as the number system. When you use the Try it button, this is set for you.
Paste the binary
Paste the zeros and ones into the left box. They can be separated by spaces, commas or new lines, or be one long run, which is split into groups of eight automatically. The sample decodes to
Hello 👋.Look at the byte count
The message says 10 bytes were decoded, but there are only 7 characters. The first six characters,
Helloand the space, take one byte each. The waving hand emoji takes four bytes,11110000 10011111 10010001 10001011, because UTF-8 uses multiple bytes for characters beyond basic English.Try it the other way
Press Swap direction to switch to Text → codes, then type your own reply. Choose Hexadecimal for a more compact form, such as
48 69for "Hi".Hi → 01001000 01101001 (binary) Hi → 48 69 (hex) Hi → 72, 105 (decimal)
Try it yourself
Opens the Text to Binary Converter with this tutorial's sample loaded.
Common mistakes
- A missing or extra digit
- If one byte has seven or nine digits, the message reports it. Check the byte shown in the error, because a digit was probably lost when copying.
- Decoding with the wrong number system
- Binary that's read as decimal, or hex that's read as binary, gives errors or nonsense. Match the number system to the digits you see. If you see A–F, it's hex.
- Expecting one byte per character
- Accented letters and emoji take two to four bytes. Splitting their bytes apart produces �.
Next steps
Go back to the Text to Binary Converter, or keep going with one of these:
FAQ
What does � mean in the result?
It's the replacement character, shown where bytes don't form valid UTF-8. It usually means part of the message is missing or wasn't meant to be text.