How to Convert Text to Binary

Converting text to binary turns every character into its 8-bit code of ones and zeros — the form in which computers actually store your words. A browser converter does it in one click, handles any language through UTF-8, and converts binary back to text just as easily.

How text becomes binary

Every character is a number in binary

Computers store everything as bits — ones and zeros — and text is no exception. Each character is stored as a number, and that number is written in binary. The letter A is the number 65, which in binary is 01000001. The letter a is 97, or 01100001. A space is 32, or 00100000. String those bytes together and you have the binary form of a whole sentence.

ASCII and UTF-8: the mappings

This mapping comes from character encodings. The oldest common one, ASCII, covers English letters, digits and basic punctuation in a single byte each. The modern standard, UTF-8, keeps ASCII for English text and uses two to four bytes for everything else — accented letters, Arabic script, Chinese characters, emoji. A good converter uses UTF-8, so it handles any language, not just English.

Why binary output is so long

Eight digits per character

Binary is verbose by nature: every character takes eight digits, so a ten-character word becomes eighty digits. That is why programmers rarely read binary directly and use hexadecimal instead, where each byte takes only two characters. Binary is the language of the machine; hexadecimal is the shorthand humans use to talk about it.

The spaces are only for readability

The spaces between bytes are there for your eyes only. They make the output readable — you can see where each character starts — but they carry no information, and the decoder ignores them. Turn the spacing off and you get one long stream of digits, which is how binary actually looks inside a computer.

Convert text to binary in four steps

  1. Type your text. Write the word or sentence you want to convert. Start with something short, like Hi, so you can see the pattern clearly.
  2. Open the converter. Go to the Text to Binary Converter. It runs entirely in your browser, so nothing you type is uploaded anywhere.
  3. Click Text to Binary. Each character becomes one or more 8-bit groups. Leave Spaces between bytes on to read the output, or turn it off for one continuous stream.
  4. Copy the result. Click Copy output to share the binary — or paste binary back in and click Binary to Text to decode it.

Decoding binary back to text

Binary decodes by the same rule in reverse: the digits are read in groups of eight, each group becomes a byte, and the bytes are read as UTF-8 text. That is why the digit count must be a multiple of eight — a group of seven digits is not a whole byte, and the converter says so plainly instead of guessing.

The decoder ignores anything that is not a 0 or a 1, so spaces, line breaks and labels are all fine. But the bytes must form valid UTF-8: a random string of bytes usually does not, and the converter reports that honestly rather than producing garbled text.

Where you will meet binary

Binary shows up in computer science classes, where converting text by hand is a standard first exercise, and in puzzles, where a string of ones and zeros is a classic hidden message. It appears in debugging too: file formats and network protocols are often inspected byte by byte, and recognising the binary for common letters helps when reading raw data.

One pattern worth noticing is the difference between upper and lower case. A capital A is 01000001 and a small a is 01100001 — they differ in exactly one bit, the sixth one. That is not a coincidence: the ASCII designers placed the two alphabets exactly 32 apart so that flipping a single bit changes the case.

Related guides

Questions people ask

Why does one letter sometimes become more than 8 bits?

Because this converter uses UTF-8. English letters take one byte, but accented letters take two, most other scripts take three, and emoji take four. The decoder handles all of them.

Do the spaces between bytes matter?

No. They are only for readability. The decoder ignores spaces and any other characters that are not 0 or 1, so you can paste binary with spaces, line breaks or none at all.

Why does my binary say it is invalid?

Binary must form whole 8-bit bytes, so the digit count has to be a multiple of 8, and the bytes must be valid UTF-8. Check for a missing digit or a mistyped character.

What is the difference between binary and hexadecimal?

Both represent the same bytes. Binary writes each byte as 8 digits of 0 and 1; hexadecimal writes each byte as 2 characters from 0 to 9 and A to F. Hex is shorter and easier to read.