Text to binary converter
Convert text to binary code, or binary back to text.
Editor
Text to binary converter: what it does
See how a text looks as ones and zeros: every character is written as one or more 8-digit bytes separated by spaces. To go back, paste groups of eight digits and decode them. Accented letters and emoji use several bytes, as in UTF-8.
Text to binary converter: how to use it
- Paste your text, or the binary code.
- Choose Text to binary or Binary to text.
- Select Apply and copy the result.
Text to binary converter: when to use it
- Show how a word is stored as bytes in a lesson or a presentation.
- Decode a binary message from a puzzle, a game or a geocache.
- Create a binary-looking text for a poster or a design.
Text to binary converter: examples
Input
Hi!
Result
01001000 01101001 00100001
Input
01001000 01101001 00100001
Result
Hi!
Input
OK
Result
01001111 01001011
Text to binary converter: questions and answers
Do I need spaces between the bytes?
No. When decoding, spaces and line breaks are optional, but the total number of digits must be a multiple of eight.
Why does é give two bytes?
Characters outside basic ASCII take two to four bytes in UTF-8, so é is written as two groups of eight digits.
Why is each letter eight digits?
Each byte is written with all eight bits, including leading zeros, so the groups line up and decoding is unambiguous.
Can I decode binary written without spaces?
Yes. Binary to text accepts a continuous string as long as its length is a multiple of eight.
Is my text sent to a server?
No. Everything runs in your browser on your own device, so your text never leaves it.
Related tools
Tools people often use together with this one.
- Text to hex converter
Convert text to hexadecimal bytes, or hex back to text.
- Morse code translator
Translate text to Morse code, or Morse back to text.
- Base64 encode and decode
Convert text to Base64, or decode Base64 back to text.
- ROT13 encoder and decoder
Scramble or unscramble letters with ROT13.
- URL encode and decode
Percent-encode text for a URL, or decode it back.
- HTML entities encode and decode
Escape text for HTML, or turn entities back into characters.