Binary to Text and Text to Binary
ED-11Paste binary to read it as text, or paste text to see its bytes in binary. Characters are read and written as UTF-8, 8 bits per byte.
Runs in your browser. Nothing is uploaded.
Binary or text
Result
How to use it
- Paste your binary (groups of 8 bits) or your text into the input box.
- Press Binary to text or Text to binary.
- For binary output, choose a space, no separator or one byte per line.
- Copy the result or download it.
How text becomes binary
The text is converted to UTF-8 bytes, and each byte is written as 8 binary digits. The letter H is 01001000. ASCII characters need one byte, accented letters two and most emoji four, so é gives two groups, 11000011 10101001. The tool does not use 7-bit ASCII or UTF-16, which means the result matches the bytes of a UTF-8 file.
What Binary to text accepts
Groups of 8 bits separated by spaces, commas or line breaks, or one long run of 0s and 1s whose length is a multiple of 8. A leading 0b on a group is allowed. A group of 7 bits, or any digit other than 0 and 1, is reported with its position, and the tool does not pad it for you. The decoded bytes must be valid UTF-8, or you get an error instead of garbled characters.
When this is the wrong tool
This page reads whole bytes as text. If you want to turn a binary number such as 1010 into decimal (10), use the Number Base Converter on this site. For the decimal code of each character, use the ASCII Converter. For the same bytes written in hexadecimal, use the Text to Hex tool.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
The group "0100100" at line 1, column 1 has 7 bits. Each byte is 8 bits, so pad with leading zeros or check for a missing digit. | A group of binary digits is not a multiple of 8 long. | Add leading zeros so each byte has 8 digits, or look for a missing digit. |
"2" at line 1, column 14 is not a binary digit. Use only 0 and 1. | The input has a character other than 0 or 1. | Correct the digit shown. |
The bytes are not valid UTF-8 text: byte 1 of 1 (0xFF) cannot start or continue a character there. | The bytes do not form valid UTF-8, for example a lone byte above 01111111. | Check that the binary holds UTF-8 text and is complete. |
Questions people ask
How do I convert binary to text?
Paste the binary, in groups of 8 bits, and press Binary to text. Each group becomes a byte, and the bytes are read as UTF-8 text. Spaces, commas and line breaks between groups are fine.
How do I convert text to binary?
Paste the text and press Text to binary. Each UTF-8 byte is shown as 8 bits. Pick a separator to get spaces, a continuous string or one byte per line.
Why is a letter with an accent 16 bits long?
In UTF-8, é uses two bytes, so it appears as two groups of 8 bits. Basic English letters use one byte, and emoji use four. The binary here shows bytes, not characters.
Can I use 7-bit binary for ASCII?
No. The tool reads groups of 8 bits only, which is how text is stored. A 7-bit group such as 1001000 gives an error. Add a leading zero to make it 01001000.
What does binary 01001000 01101001 say?
It says Hi. The first byte, 01001000, is 72, the letter H, and the second, 01101001, is 105, the letter i. Paste it with Binary to text selected to check.
Is binary to text the same as binary to decimal?
No. This page turns 8-bit groups into characters. Binary to decimal converts a binary number into its numeric value, such as 1010 into 10, and is done with the Number Base Converter.
About this tool
Text is converted to UTF-8 bytes and each byte is written as 8 bits. ASCII characters are one byte, accented letters two and most emoji four, so the group count can be higher than the number of characters. Binary to text reads groups of 8 bits separated by spaces, commas or line breaks, or one long unbroken run whose length is a multiple of 8. A leading 0b is allowed. Groups of 7 bits are rejected, not padded. The bytes must be valid UTF-8. This reads whole bytes only; for a binary number such as 1010, use the Number Base Converter.