Number Converters · Browser · Free
Binary to String Converter
Decodes binary byte values into text. Choose a character encoding, enter the bytes or load a file, and press Convert.
What this tool does
This page decodes binary byte values into text and can convert text back to binary in reverse. You can paste binary numbers directly, drag and drop a file onto the input box, or load a text file or raw binary file with Open File and Open Binary File.
Choose a character encoding from the select: ASCII, UTF-8, UTF-16 little endian, UTF-16 big endian, or legacy regional code pages. The bytes may be separated by spaces or commas, or run together with no separator at all.
The Swap conversion button flips the direction between binary-to-string and string-to-binary while preserving the chosen encoding and delimiter. The Save button downloads the decoded text output as a text-output.txt file, and View selection lets you highlight a range of bytes to see the corresponding decoded characters.
How the result is shown
The form computes when you press Convert, displaying the converted text in the result box below. Copy writes the text to the clipboard and Reset resets the form. Everything runs in the browser and nothing is uploaded.
Byte to character formula
Decoding maps each byte value to the character that the chosen encoding gives it. In the ASCII table below, 01000001 stands for A, 01000010 stands for B and 01011010 stands for Z, while 00110000 stands for 0, 00111001 for 9, 00100001 for ! and 00111111 for ?.
Bytes entered as 01000001 01000010 00100001 come back as AB!, one character per row of that table. The spaces are only separators; under UTF-8 a single character can take one to four of those bytes instead.
| Binary | Character |
|---|---|
| 01000001 | A |
| 01000010 | B |
| 01011010 | Z |
| 01100001 | a |
| 01100010 | b |
| 01111010 | z |
| 00110000 | 0 |
| 00111001 | 9 |
| 00100001 | ! |
| 00111111 | ? |