Text to Binary Converter

Acrafto Team Converters
Updated

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

  1. Enter a message in Input Text or Binary Code.
  2. Under Output Format, choose With spaces (every 8 bits) for readable byte groups, or No spaces (continuous stream) for an uninterrupted sequence.
  3. Click Text to Binary. Use Copy Result to copy the output.
  4. 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.

TextUTF-8 bytes in binaryExplanation
A01000001ASCII value 65
a01100001ASCII value 97; case matters
é11000011 10101001One code point using two bytes
🙂11110000 10011111 10011001 10000010One 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.

Frequently asked questions

Why does an accented letter use more bits than A? UTF-8 stores ASCII letters such as A in one byte. Many accented letters need two bytes; other code points need three or four. The spaces in the output show byte boundaries rather than letter boundaries.
Does changing the output spacing change the message? No. Both output options contain the same bits. Separating them into eight-bit groups makes the byte boundaries easier to inspect.

I would appreciate if you could share these pages with friends, bookmark them, or link to them. Thank you! 🙏