Text to Binary Converter
Convert text into its binary ASCII/UTF-8 representation.
How each character becomes eight digits
The converter takes each character's code number and writes it in base 2, padded with leading zeros to eight digits. Groups are separated by single spaces. The default input Hi gives 01001000 01101001.
| Character | Code | Binary |
|---|---|---|
H | 72 | 01001000 |
i | 105 | 01101001 |
| space | 32 | |
A | 65 | 01000001 |
a | 97 | 01100001 |
0 | 48 | 00110000 |
Spaces, tabs and line breaks are characters too, so they get their own groups: a tab is and a line break is . The digit 0 is not 00000000; it has its own code, 48.
Upper and lower case differ by one bit
Compare A (01000001) with a (01100001). Only the third digit from the left changes, the one worth 32. That holds for every letter from A to Z, which is why lower-case codes are always 32 higher than capitals.
It is a quick way to check your work if you are encoding a word by hand for a puzzle or a class exercise. Capitals start with 010, lower-case letters with 011, and digits with 0011.
Accented letters, symbols and emoji
Outside plain English letters, digits and punctuation, the output is not UTF-8 bytes. Each character's internal code unit is written in binary as a single group, and that group can be longer than eight digits:
| Character | This converter | UTF-8 bytes |
|---|---|---|
é | 11101001 | 11000011 10101001 |
€ | 10000010101100 | 11100010 10000010 10101100 |
| 🌍 | 1101100000111100 | 11110000 10011111 10001100 10001101 |
For the emoji, only the first half of its two-part code is written, so the binary can't be turned back into the emoji: decoding it gives a replacement character. If you need the actual bytes a file or network message would contain, use the UTF-8 column, not this tool's output.
Turning the binary back into text
The Binary to Text Converter reads space-separated groups, so keep the spaces when you copy the result. Plain ASCII text survives the round trip exactly, and so do symbols such as €, because their longer group is still read as one number. Emoji don't, for the reason above.
Frequently asked questions
How many bits does one letter take?+
Eight for the letters, digits and punctuation on a standard English keyboard, because their codes are all below 128 and the output is padded to eight digits. Other characters can produce longer groups.
Can I get the output without spaces?+
There is no option for it, so remove the spaces after copying. Keep in mind that without separators a decoder has to split the string into eight-digit groups, which only works if every character produced exactly eight.
Is this the same as ASCII?+
For codes 0 to 127, yes. ASCII assigns those numbers to characters, and this converter writes the numbers in binary. Characters beyond ASCII use their Unicode code unit instead.
Embed this tool on your website
Free to use on blogs, school sites and intranets. Paste this code into your page's HTML; please keep the credit line.
<iframe src="https://utilityapp.lat/embed/convert/text-to-binary" title="Text to Binary Converter" width="100%" height="420" style="border:0;max-width:760px" loading="lazy"></iframe> <p style="font-size:13px"><a href="https://utilityapp.lat/convert/text-to-binary">Text to Binary Converter</a> by UtilityApp</p>