Text to Binary
Type any text and get its binary code straight away. Every character becomes one or more bytes of 0s and 1s, and the table underneath shows exactly which.
The converter could not load. Refresh the page to try again.
Your text in binary, letter by letter
| Character | Unicode | Number | Binary |
|---|
How text turns into binary
A computer can only store numbers, so every character you type is given one. The capital C is 67, a lowercase a is 97, and t is 116. Those numbers come from a shared table, first ASCII and now Unicode, which is why your text looks the same on every phone and laptop.
The second step is writing each number in base 2. Here's the word Cat.
| Letter | Number | Binary |
|---|---|---|
| C | 67 | 01000011 |
| a | 97 | 01100001 |
| t | 116 | 01110100 |
Put the three bytes side by side and Cat becomes 01000011 01100001 01110100.
Why each letter gets eight digits
The original ASCII table only went up to 127, which fits in seven bits. Computers store data in 8-bit bytes, though, so each English letter is padded with a 0 at the front to fill the byte. That's why every one of them starts with 0.
Some puzzles, worksheets and older systems write ASCII with just seven digits, so H appears as 1001000 and not 01001000. Switch "Bits per letter" to 7-bit ASCII to match them. It only works while your text sticks to plain English characters. Anything else needs full bytes, and the converter tells you when it has switched back.
Accents, other alphabets and emoji
Unicode has room for well over a million characters, far more than one byte can count. The web stores them with UTF-8, which uses one to four bytes depending on the character. The first few bits of each byte say how many bytes belong together.
| Unicode range | Examples | Bytes | Pattern |
|---|---|---|---|
| U+0000 to U+007F | English letters, digits, basic punctuation | 1 | 0xxxxxxx |
| U+0080 to U+07FF | é, ñ, ü, Greek, Cyrillic, Arabic | 2 | 110xxxxx 10xxxxxx |
| U+0800 to U+FFFF | Hindi, Chinese, curly quotes, € | 3 | 1110xxxx 10xxxxxx 10xxxxxx |
| U+10000 and up | Most emoji | 4 | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx |
A worked example: é
The letter é is Unicode 233, which is 11101001 in binary. That's too big for one byte in UTF-8, so it's split across two. Pad it to 11 bits, giving 00011101001. The first five bits go after 110 and the last six go after 10.
é = 110 00011 + 10 101001 = 11000011 10101001
The same rule handles everything else. The Hindi letter न becomes three bytes, 11100000 10100100 10101000, and the waving hand 👋 needs four.
How long will my binary be?
For ordinary English, count every character, including spaces and punctuation, and multiply by 8. "Hello world" has 11 characters, so it becomes 88 bits. A full 280-character post on X would run to 2,240 bits. Accented letters and emoji add extra bytes, and the counter under the converter keeps track for you.
Spaces and line breaks count too, even though you can't see them. A space is 00100000 and a new line is 00001010. If your binary has a byte you didn't expect, a stray space at the end is usually why.
Things people make with it
Bracelets and beadwork
Pick two bead colours, one for 0 and one for 1, and string eight beads per letter. Initials work best, since a full name gets long quickly. Two letters need 16 beads.
Cards and gifts
A line of binary on a birthday card is a small puzzle the person can decode later. Paste it into our binary to text decoder to check it reads back properly before you write it out.
Coding lessons
Asking a class to write their name in binary is a quick way to show that text is numbers underneath. The table above lets them check each letter.
Where answers usually go wrong
A curly apostrophe sneaks in
Word processors and phones often swap a straight ' for a curly ’. The straight one is a single byte, 00100111, while the curly one is three: 11100010 10000000 10011001. If "don't" comes out longer than you expected, that's the reason.
Mixing 7-bit and 8-bit
Pick one width and stick to it. A string where some letters have seven digits and others have eight can't be split back into letters reliably.
Forgetting that case matters
A is 01000001 and a is 01100001. They differ by one bit, so a decoded message will come back in exactly the case you typed.
Try these yourself
Use the table above or work them out by hand, then load the word into the converter to check.
Write "Hi" in binary
Write "OK" in binary
Write "yes" in binary
Text to binary FAQ
Is text to binary the same as ASCII to binary?
For English letters, digits and common punctuation, yes. UTF-8 was designed so that those characters get exactly the same bytes as ASCII. The two only differ for characters outside ASCII, such as accents, other alphabets and emoji. To start from ASCII codes or add a parity bit, use ASCII to binary.
What is "a" in binary?
Lowercase a is 97, which is 01100001. Capital A is 65, which is 01000001.
Can I get the codes as numbers instead?
Yes. Choose Decimal to see each byte as a number, or Hex for the two-digit codes programmers use. Copy gives you whichever you're looking at.
Can I paste a whole paragraph?
Yes. The converter handles long text, and the table shows the first 60 characters so the page stays quick.
How do I turn binary back into text?
Use the binary to text decoder, or the binary translator if you want to switch between both directions.
Is my text sent anywhere?
No. The conversion runs in your browser, so what you type never reaches our server.