T

Text Machine

Powerful text tools, in your browser

Text ↔ Binary Converter

Convert text to binary and binary back to text right in your browser. Full UTF-8 support means letters, numbers, symbols, and even emoji translate correctly — choose space-separated or continuous 8-bit output.

Separator

Text input
Binary output

Enter data above to see the converted result here.

How to use Text to Binary Converter

  1. 1

    Choose a direction

    Use the toggle to pick Text to Binary or Binary to Text. The swap button moves your result into the input so you can convert it back the other way.

  2. 2

    Enter your data

    Type or paste text, or paste a string of binary. The conversion runs automatically as you type, with full UTF-8 support for any character.

  3. 3

    Pick a separator

    For binary output, choose a space between each byte for readability or no separator for a continuous stream. When decoding, spaces are optional.

  4. 4

    Copy the result

    Review the converted output and copy it to your clipboard, ready to paste wherever you need it.

How Text Becomes Binary

What binary is and why computers use it

Binary is the base-2 number system, built from just two digits: 0 and 1. Each digit is called a bit, short for binary digit. Computers use binary because their physical components are switches with two stable states — on or off, high voltage or low — and those two states map naturally onto 1 and 0. Everything a computer stores, including this very sentence, is ultimately a long sequence of bits.

Text is no exception. To store a letter, the computer first agrees on a number for it through a character encoding, then stores that number in binary. Converting text to binary by hand is simply doing those two steps explicitly: look up each character's numeric code, then write that code in base 2. This tool shows the result as groups of bits so you can read the structure.

Bytes and the 8-bit group

A byte is a group of eight bits, and it is the fundamental unit of storage. Eight bits can represent two to the eighth power, which is 256, distinct values, numbered 0 through 255. That range is exactly enough to cover the original ASCII characters plus a great deal more, which is why the byte became the standard size for a single character of basic text.

Because a byte is always eight bits, this converter writes each byte as a fixed eight-digit group, padding with leading zeros when necessary. The letter with code 72 is written 01001000, not just 1001000, so that every byte lines up at the same width. You can choose to separate the groups with spaces for readability or run them together as a continuous stream; the bits are identical either way.

From character to bits, step by step

Converting one character takes two moves. First, find its code point — for plain English letters this is the ASCII value, so capital H is 72 and lowercase i is 105. Second, express that number in eight bits by asking which powers of two add up to it. The bit positions, from left to right, carry the values 128, 64, 32, 16, 8, 4, 2, and 1.

Take 72. It equals 64 plus 8, so you place a 1 in the 64 position and a 1 in the 8 position and 0 everywhere else, giving 01001000. Take 105. It equals 64 plus 32 plus 8 plus 1, so the bits are 01101001. To go the other direction, add up the place values wherever a 1 appears and you recover the original code, which you then look up to get the character.

Worked example: encoding "Hi"

Put the two letters H and i through the process. H has ASCII code 72, which is 64 + 8, giving the byte 01001000. The letter i has ASCII code 105, which is 64 + 32 + 8 + 1, giving the byte 01101001. Joined with a space, "Hi" becomes 01001000 01101001.

Reading it back is the same arithmetic in reverse. The first group 01001000 has 1s in the 64 and 8 positions, summing to 72, which is H. The second group 01101001 sums to 64 + 32 + 8 + 1 = 105, which is i. Two eight-bit groups, two characters — a tidy demonstration of how a short word is stored.

ASCII versus UTF-8 and multibyte characters

The simple one-character-one-byte picture holds only for the original ASCII set, code points 0 through 127, which covers the English letters, digits, and common punctuation. Anything beyond that — accented letters, other scripts, symbols, and emoji — uses UTF-8, the encoding this tool applies. UTF-8 is variable-width: an ASCII character stays one byte, but other characters take two, three, or four bytes, and each byte becomes its own eight-bit group.

The accented é, for instance, is the two bytes 0xC3 and 0xA9 in UTF-8, so it produces two binary groups: 11000011 10101001. A typical emoji is four bytes and therefore four groups. This is why a string of non-English text yields more eight-bit groups than it has visible characters, and why the total bit count is always a multiple of eight.

Reading binary back into text

To decode, the tool slices the bit stream into eight-bit chunks, turns each chunk into a number, and decodes those numbers as UTF-8 to recover the characters. For this to work, the input must contain only the digits 0 and 1, and the total number of bits must be a multiple of eight, because a byte cannot be a fraction of eight bits.

Spaces between groups are optional and are ignored, so both 0100100001101001 and 01001000 01101001 decode to "Hi". If you paste binary and get a conversion error, the usual causes are a stray non-binary character somewhere in the string or a length that is not divisible by eight — perhaps a single missing or extra bit. Clean those up and the decode succeeds.

Where this is useful

Text-to-binary conversion is a teaching staple. It makes the abstract idea that "computers store everything as numbers" concrete and visible, which is why it appears in computer-science classes, coding tutorials, and exercises about character encoding. Seeing "Hi" turn into 01001000 01101001 demystifies what a byte is far better than a definition alone.

Beyond education, the conversion shows up in puzzles, escape rooms, and capture-the-flag challenges, where a string of ones and zeros is a common way to hide a short message. It is also handy for low-level debugging when you want to inspect the exact bit pattern of a character or verify how a particular Unicode symbol is encoded in UTF-8. For real data storage, though, computers handle the conversion invisibly — this tool is for understanding and inspecting it.

Frequently asked questions

How is text converted to binary?
Each character is encoded as UTF-8 bytes, and every byte is written as an 8-bit binary number. Plain English letters map to a single 8-bit group each, while accented characters, symbols, and emoji use two to four bytes, so they produce several 8-bit groups.
Does this support emoji and non-English text?
Yes. Because the tool uses UTF-8, it handles every Unicode character — accented letters, Cyrillic, Greek, Chinese, Japanese, Arabic, emoji, and more. They are encoded to the correct multi-byte sequences and decode back exactly.
What binary format does the decoder expect?
The Binary to Text decoder reads 8-bit groups. Spaces between bytes are optional, so both a continuous stream and space-separated bytes work. The total number of binary digits must be a multiple of 8, and only the digits 0 and 1 are allowed.
Why did I get a conversion error?
Decoding fails if the binary contains characters other than 0 and 1, or if the total length is not a multiple of 8 bits. Remove any stray characters and make sure each byte has exactly 8 digits, then the conversion will succeed.
Is my data uploaded to a server?
No. All conversion happens entirely in your browser. Your text is never uploaded, logged, or stored, so it stays completely private and the tool keeps working even when you are offline.

Related tools

Keep going with these handy tools

Text to Hex Converter

Morse Code Translator

NATO Phonetic Alphabet Translator

Braille Translator

Caesar Cipher

Vigenère Cipher