A text to binary converter turns letters, digits, punctuation and emoji into the 0s and 1s a computer actually stores. Type anything into the box above and you'll see its binary code instantly, one byte of eight bits at a time, along with a table showing exactly which bytes each character becomes. This guide explains what happens behind the scenes, so you can convert text to binary by hand and understand every result.
Every character is a number
Computers can't store letters directly. Instead, every character is given a number, called its code point, and that number is stored in binary. The capital letter A is number 65, a space is 32 and an exclamation mark is 33. Converting text to binary is really two steps: look up each character's number, then write that number in base 2. For example, the word Hello becomes the numbers 72, 101, 108, 108 and 111, which in binary are 01001000 01100101 01101100 01101100 01101111.
ASCII and UTF-8
The first widely adopted character code was ASCII, published in 1963. It uses 7 bits to describe 128 characters: the English alphabet in upper and lower case, the digits 0 to 9, common punctuation and a set of invisible control codes such as the line feed. ASCII has no room for accented letters, other alphabets or symbols like €, so many incompatible extensions appeared over the years.
Unicode solved that by giving every character in every writing system its own code point, with room for more than a million of them. UTF-8, designed in 1992, is the most common way to store Unicode as bytes, and it's what the vast majority of websites use today. Its key feature is backward compatibility: the first 128 characters are stored exactly as in ASCII, using a single byte. That's why this text to binary converter gives the same result as an ASCII to binary converter for plain English text, while still handling every other character correctly.
How UTF-8 turns characters into bytes
UTF-8 uses between one and four bytes per character, and the first bits of each byte tell a decoder how long the character is. The x positions below hold the bits of the code point itself:
| Bytes | Bit pattern | Example |
|---|---|---|
| 1 | 0xxxxxxx | A → 01000001 |
| 2 | 110xxxxx 10xxxxxx | é → 11000011 10101001 |
| 3 | 1110xxxx 10xxxxxx 10xxxxxx | € → 11100010 10000010 10101100 |
| 4 | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx | 👋 → 11110000 10011111 10010001 10001011 |
This design means a decoder can always tell where a character starts, even in the middle of a stream of bytes, and it's why a single emoji can take 32 bits. Look at the character breakdown under the converter to see how many bytes each of your characters uses.
Letters, digits and spaces
A few patterns make binary text easier to read once you know them. Capital letters start at 01000001 and lowercase letters at 01100001. The two cases differ by a single bit, worth 32, so switching between A and a flips just one bit. Digits are characters too: the character 7 is stored as 55, or 00110111, which is different from the number 7 in binary, 111. A space is 00100000, and pressing Enter in the text box adds a line feed, 00001010.
Binary isn't encryption
Turning a message into binary code makes it look unreadable, but it doesn't hide anything. Anyone can paste the bits into a binary to text converter and read the original message in seconds, because the mapping between characters and bytes is public. Binary is great for puzzles, classroom exercises and showing how computers store data, but if you need to keep information private, use real encryption instead.
Where text to binary is useful
- Learning and teaching. Seeing a name or sentence as bytes makes character encoding concrete for computer science students.
- Debugging. Developers inspect the exact bytes of a string to track down encoding problems, invisible characters or unexpected line endings.
- Puzzles and messages. Binary-coded messages are popular in escape rooms, geocaches, gifts and social media posts.
- Data formats. Network protocols and file formats store text as UTF-8 bytes, so knowing the encoding helps when you read raw data.
Working with the binary output
- Choose a separator to put spaces, commas or line breaks between bytes, or remove them to get one continuous string of bits.
- Copy the binary code, then paste it into the binary translator to check that it decodes back to the same text.
- To see the same bytes in hexadecimal, decimal or octal, use the text converter on the homepage, or convert the result with the binary to hex converter.
- Everything runs in your browser, so you can convert private text without sending it anywhere.
One rule covers most text: plain English is one byte per character, and anything beyond ASCII takes two to four. Type a word with an accent above and watch the byte count change.