Text to Binary Converter
Convert text to zeros and ones, or read binary bytes as UTF-8 text. The tool supports accented letters and emoji as well as ASCII. Conversion runs in your browser.
How to convert text to binary
- Enter a message in Input Text or Binary Code.
- Under Output Format, choose With spaces (every 8 bits) for readable byte groups, or No spaces (continuous stream) for an uninterrupted sequence.
- Click Text to Binary. Use Copy Result to copy the output.
- To read a binary message, paste the bits into the input and choose Binary to Text. Swap Input and Output helps you check a round trip; Clear All clears both fields.
For example, Hi becomes 01001000 01101001. Spaces between these groups separate bytes; they are not part of the decoded message. An actual space in the message has its own byte, 00100000.
Bytes, ASCII and UTF-8
A bit is a single 0 or 1. A byte contains eight bits. The converter first encodes text as UTF-8 bytes, then writes each byte in binary.
| Text | UTF-8 bytes in binary | Explanation |
|---|---|---|
A | 01000001 | ASCII value 65 |
a | 01100001 | ASCII value 97; case matters |
é | 11000011 10101001 | One code point using two bytes |
🙂 | 11110000 10011111 10011001 10000010 | One code point using four bytes |
ASCII includes letters, digits, punctuation and control characters. UTF-8 represents ASCII with one byte and other code points with two to four bytes. One visible symbol can contain several code points, so it may need more than four bytes in total.
What binary input is accepted?
Use only 0, 1 and whitespace. Separate groups of up to eight bits are treated as individual bytes; shorter groups are left-padded with zeros. For example, 1000001 decodes as A. A group longer than eight bits must contain a whole number of bytes, so its length must be divisible by eight.
Valid groups do not guarantee readable text. These bytes are interpreted as UTF-8, rather than a different character encoding or a machine instruction. Invalid UTF-8 sequences can appear as replacement characters. The tool does not determine what an arbitrary binary file means.
Encoding is not encryption
Binary notation changes how text is written, without protecting its content. Anyone using the same encoding can read the message. Use it for learning about bytes, checking small examples or inspecting an encoded text string.
For decimal, hexadecimal and other number bases, use the number base converter. For text encoded with the Base64 alphabet, use the Base64 encoder and decoder.